Let them share the same tmp dir.
+2000-07-19 Akim Demaille <akim@epita.fr>
+
+ * autoreconf.sh: Forward --debug to sub tools.
+ Let them share the same tmp dir.
+
2000-07-18 Akim Demaille <akim@epita.fr>
* acspecific.m4 (AC_MING32): Rename as AC_MINGW32.
{
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/acXXXXXX") 2>/dev/null` &&
test -n "$tmp" && test -d "$tmp"
-} ||
+} ||
{
tmp=$TMPDIR/ac$$ && (umask 077 && mkdir $tmp)
} ||
{
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/acXXXXXX") 2>/dev/null` &&
test -n "$tmp" && test -d "$tmp"
-} ||
+} ||
{
tmp=$TMPDIR/ac$$ && (umask 077 && mkdir $tmp)
} ||
autoheader="$autoheader `$verbose --verbose`"
automake="$automake `$verbose --verbose`"
aclocal="$aclocal `$verbose --verbose`"
+# --debug
+$debug &&
+{
+ autoconf="$autoconf --debug"
+ autoheader="$autoheader --debug"
+}
# --macrodir
export AC_MACRODIR
# --install and --symlink
exit 1;
}
+# When debugging, it is convenient that all the related temporary
+# files be at the same place.
+TMPDIR=$tmp
+export TMPDIR
+
# alflags.sed -- Fetch the aclocal flags.
cat >$tmp/alflags.sed <<EOF
#n
autoheader="$autoheader `$verbose --verbose`"
automake="$automake `$verbose --verbose`"
aclocal="$aclocal `$verbose --verbose`"
+# --debug
+$debug &&
+{
+ autoconf="$autoconf --debug"
+ autoheader="$autoheader --debug"
+}
# --macrodir
export AC_MACRODIR
# --install and --symlink
exit 1;
}
+# When debugging, it is convenient that all the related temporary
+# files be at the same place.
+TMPDIR=$tmp
+export TMPDIR
+
# alflags.sed -- Fetch the aclocal flags.
cat >$tmp/alflags.sed <<EOF
#n
{
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/acXXXXXX") 2>/dev/null` &&
test -n "$tmp" && test -d "$tmp"
-} ||
+} ||
{
tmp=$TMPDIR/ac$$ && (umask 077 && mkdir $tmp)
} ||
autoheader="$autoheader `$verbose --verbose`"
automake="$automake `$verbose --verbose`"
aclocal="$aclocal `$verbose --verbose`"
+# --debug
+$debug &&
+{
+ autoconf="$autoconf --debug"
+ autoheader="$autoheader --debug"
+}
# --macrodir
export AC_MACRODIR
# --install and --symlink
exit 1;
}
+# When debugging, it is convenient that all the related temporary
+# files be at the same place.
+TMPDIR=$tmp
+export TMPDIR
+
# alflags.sed -- Fetch the aclocal flags.
cat >$tmp/alflags.sed <<EOF
#n