if {[package vsatisfies [package provide Tcl] 9]} {
    package ifneeded nsf 2.4.0 \
	    [list load [file join $dir libtcl9nsf2.4.0.dylib] Nsf]
} else {
    package ifneeded nsf 2.4.0 \
	    [list load [file join $dir libnsf2.4.0.dylib] Nsf]
}

