Add tmpfile module, which fixes the use of the tmpfile function under
[pspp-builds.git] / Smake
diff --git a/Smake b/Smake
index d92510bd567e5485d860ffb7d42e6cf8cfbfbb2b..d2a29f376541b7b1239ce68cbededa5465659926 100644 (file)
--- a/Smake
+++ b/Smake
@@ -9,6 +9,7 @@ GNULIB_MODULES = \
        alloca-opt \
        assert \
        byteswap \
+       canonicalize \
        c-ctype \
        c-strtod \
        exit \
@@ -30,10 +31,9 @@ GNULIB_MODULES = \
        memmove \
        mempcpy \
        memset \
+       mkstemp \
        progname \
-       readlink \
        snprintf \
-       stat-macros \
        stdarg \
        stdbool \
        stdint \
@@ -43,17 +43,17 @@ GNULIB_MODULES = \
        strerror \
        strftime \
        strsep \
-       strstr \
        strtod \
        strtok_r \
        strtol \
        strtoul \
+       sys_stat \
+       tmpfile \
        unistd \
        unlocked-io \
        vsnprintf \
        xalloc \
        xalloc-die \
-       xreadlink \
        xsize \
        xstrndup \
        xvasprintf
@@ -69,6 +69,7 @@ all: po/POTFILES.in
        echo '*' > gl/m4/.cvsignore
        test -d intl || mkdir intl
        echo '*' > intl/.cvsignore
+       libtoolize --force --automake
        autopoint --force
        aclocal -I m4 -I gl/m4
        autoconf
@@ -100,6 +101,10 @@ _build: all
        test -d _build || mkdir _build
        cd _build && ../configure $(CONFIGUREFLAGS)
 
+_debug: all
+       test -d _debug || mkdir _debug
+       cd _debug && ../configure $(CONFIGUREFLAGS) --enable-debug
+
 PO_FILES = po/ChangeLog po/Makefile po/Makefile.in po/Makefile.in.in   \
 po/POTFILES po/POTFILES.in po/Rules-quot po/boldquot.sed               \
 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header                        \
@@ -123,5 +128,6 @@ clean:
        rm -f config.h.in~
        find . -name Makefile.in -exec rm -f {} \; 
        rm -f compile
+       rm -f ltmain.sh
 
 .PHONY: all gettextize potfiles clean