From 80ad59d16dd450121be0cb20f4ccb67a944b3b56 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 19 Jul 2000 08:54:44 +0000 Subject: [PATCH] * autoreconf.sh: Forward --debug to sub tools. Let them share the same tmp dir. --- ChangeLog | 5 +++++ autoconf.in | 2 +- autoconf.sh | 2 +- autoreconf.in | 11 +++++++++++ autoreconf.sh | 11 +++++++++++ bin/autoconf.in | 2 +- bin/autoreconf.in | 11 +++++++++++ 7 files changed, 41 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b3367960..70631020 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-07-19 Akim Demaille + + * autoreconf.sh: Forward --debug to sub tools. + Let them share the same tmp dir. + 2000-07-18 Akim Demaille * acspecific.m4 (AC_MING32): Rename as AC_MINGW32. diff --git a/autoconf.in b/autoconf.in index a484d6f8..1d009709 100644 --- a/autoconf.in +++ b/autoconf.in @@ -236,7 +236,7 @@ $debug || { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/acXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" -} || +} || { tmp=$TMPDIR/ac$$ && (umask 077 && mkdir $tmp) } || diff --git a/autoconf.sh b/autoconf.sh index a484d6f8..1d009709 100644 --- a/autoconf.sh +++ b/autoconf.sh @@ -236,7 +236,7 @@ $debug || { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/acXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" -} || +} || { tmp=$TMPDIR/ac$$ && (umask 077 && mkdir $tmp) } || diff --git a/autoreconf.in b/autoreconf.in index fc544840..45aae5c7 100644 --- a/autoreconf.in +++ b/autoreconf.in @@ -210,6 +210,12 @@ autoconf="$autoconf `$verbose --verbose`" 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 @@ -239,6 +245,11 @@ $debug || 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 <$tmp/alflags.sed </dev/null` && test -n "$tmp" && test -d "$tmp" -} || +} || { tmp=$TMPDIR/ac$$ && (umask 077 && mkdir $tmp) } || diff --git a/bin/autoreconf.in b/bin/autoreconf.in index fc544840..45aae5c7 100644 --- a/bin/autoreconf.in +++ b/bin/autoreconf.in @@ -210,6 +210,12 @@ autoconf="$autoconf `$verbose --verbose`" 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 @@ -239,6 +245,11 @@ $debug || 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 <