Index: unix/tclAppInit.c =================================================================== diff -u -r9f7fa883bf6ed48f1401f815caca1e34f56584a1 -r76f81e9b67ba799ab8e7ab6ff88a2fb0ecadcff3 --- unix/tclAppInit.c (.../tclAppInit.c) (revision 9f7fa883bf6ed48f1401f815caca1e34f56584a1) +++ unix/tclAppInit.c (.../tclAppInit.c) (revision 76f81e9b67ba799ab8e7ab6ff88a2fb0ecadcff3) @@ -155,11 +155,17 @@ * * where "Mod" is the name of the module. */ +#if 0 if (Xotcl_Init(interp) == TCL_ERROR) { return TCL_ERROR; } Tcl_StaticPackage(interp, "XOTcl", Xotcl_Init, 0); +#else + if (Tcl_PkgRequire(interp, "XOTcl", XOTCLVERSION, 1) == NULL) { + return TCL_ERROR; + } +#endif if (Tcl_Eval(interp, "::xotcl::use xotcl2") != TCL_OK) { return TCL_ERROR; }