+2002-04-01 Vince Darley <vincentdarley@sourceforge.net>
+ * Makefile.in: compilation fix from jcw.
+
2002-03-16 Vince Darley <vincentdarley@sourceforge.net>
* generic/vfs.c: updated for latest cvs head of Tcl 8.4a5.
* library/vfs.tcl: New version from jcw, with better handling
# $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/win/VFS.c` -o $@
#========================================================================
-vfs.$(OBJEXT): $(srcdir)/vfs.c
- $(COMPILE) -c `@CYGPATH@ $(srcdir)/vfs.c` -o $@
+generic/vfs.$(OBJEXT): $(srcdir)/generic/vfs.c
+ $(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/vfs.c` -o $@
#========================================================================
# End of user-definable section
The standard 'configure ; make ; make install' should work, but if it
doesn't, I'm afraid I can't help --- I am not an expert on these issues
and find it amazing that to compile a single C file (generic/vfs.c) a
-dozen or so TEA 'helper' files are required.
+dozen or so TEA 'helper' files are required. I believe 'gmake' may
+be required on some platforms.
For windows, there is a VC++ makefile in the win directory ('nmake -f
makefile.vc') should do the trick.
bufPtr->st_mode |= S_IFDIR;
} else if (!strcmp(str,"file")) {
bufPtr->st_mode |= S_IFREG;
+#ifdef S_ISLNK
+ } else if (!strcmp(str,"link")) {
+ bufPtr->st_mode |= S_IFLNK;
+#endif
} else {
/*
* Do nothing. This means we do not currently
# variable $dir must contain the full path name of this file's
# directory.
+# We don't really want to throw an error with older versions of
+# Tcl, they should just ignore us.
+if {[package provide Tcl] < 8.4} {
+ return
+}
+
package require Tcl 8.4
if {[info tclversion] == 8.4} {
- if {[regexp {8.4a(1|2|3)} [info patchlevel]]} {
- error "Tcl 8.4a4 (Sept 4 2001) or newer is required"
+ if {[regexp {8.4a(1|2|3|4)} [info patchlevel]]} {
+ error "Tcl 8.4a5 (March 20th 2002) or newer is required"
}
}
}
if {[info exists tcl_platform(debug)]} {
- package ifneeded vfs 1.0 [list load [file join $dir vfs10d[info sharedlibextension]]]
+ set file [file join $dir vfs10d[info sharedlibextension]]
} else {
- package ifneeded vfs 1.0 [list load [file join $dir vfs10[info sharedlibextension]]]
+ set file [file join $dir vfs10[info sharedlibextension]]
}
+# Don't do anything if our shared lib doesn't exist. This should
+# help stop a crash on pre-release MacOS X.
+if {![file exists $file]} {
+ unset file
+ return
+}
+
+package ifneeded vfs 1.0 [list load $file]
+unset file
+
package ifneeded scripdoc 0.3 [list source [file join $dir scripdoc.tcl]]
package ifneeded mk4vfs 1.0 [list source [file join $dir mk4vfs.tcl]]
package ifneeded vfslib 0.1 [list source [file join $dir vfs.tcl]]
DLL_VERSION = 10
# comment the following line to compile with symbols
-NODEBUG=0
+NODEBUG=1
!IF "$(NODEBUG)" == "1"
DEBUGDEFINES =