|
|
883b0e |
--- autoconf-2.13/autoconf.sh~ Fri Mar 26 20:50:48 1999
|
|
|
883b0e |
+++ autoconf-2.13/autoconf.sh Fri Mar 26 20:58:22 1999
|
|
|
883b0e |
@@ -52,13 +52,13 @@
|
|
|
883b0e |
while test $# -gt 0 ; do
|
|
|
883b0e |
case "${1}" in
|
|
|
883b0e |
-h | --help | --h* )
|
|
|
883b0e |
- echo "${usage}" 1>&2; exit 0 ;;
|
|
|
883b0e |
+ echo "${usage}" 1>&2; rm -f $tmpout ; exit 0 ;;
|
|
|
883b0e |
--localdir=* | --l*=* )
|
|
|
883b0e |
localdir="`echo \"${1}\" | sed -e 's/^[^=]*=//'`"
|
|
|
883b0e |
shift ;;
|
|
|
883b0e |
-l | --localdir | --l*)
|
|
|
883b0e |
shift
|
|
|
883b0e |
- test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
|
|
|
883b0e |
+ test $# -eq 0 && { echo "${usage}" 1>&2; rm -f $tmpout; exit 1; }
|
|
|
883b0e |
localdir="${1}"
|
|
|
883b0e |
shift ;;
|
|
|
883b0e |
--macrodir=* | --m*=* )
|
|
|
883b0e |
@@ -66,7 +66,7 @@
|
|
|
883b0e |
shift ;;
|
|
|
883b0e |
-m | --macrodir | --m* )
|
|
|
883b0e |
shift
|
|
|
883b0e |
- test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
|
|
|
883b0e |
+ test $# -eq 0 && { echo "${usage}" 1>&2; rm -f $tmpout; exit 1; }
|
|
|
883b0e |
AC_MACRODIR="${1}"
|
|
|
883b0e |
shift ;;
|
|
|
883b0e |
--version | --v* )
|
|
|
883b0e |
@@ -76,7 +76,7 @@
|
|
|
883b0e |
- ) # Use stdin as input.
|
|
|
883b0e |
break ;;
|
|
|
883b0e |
-* )
|
|
|
883b0e |
- echo "${usage}" 1>&2; exit 1 ;;
|
|
|
883b0e |
+ echo "${usage}" 1>&2; rm -f $tmpout; exit 1 ;;
|
|
|
883b0e |
* )
|
|
|
883b0e |
break ;;
|
|
|
883b0e |
esac
|
|
|
883b0e |
@@ -86,13 +86,14 @@
|
|
|
883b0e |
version=`sed -n 's/define.AC_ACVERSION.[ ]*\([0-9.]*\).*/\1/p' \
|
|
|
883b0e |
$AC_MACRODIR/acgeneral.m4`
|
|
|
883b0e |
echo "Autoconf version $version"
|
|
|
883b0e |
+ rm -f $tmpout
|
|
|
883b0e |
exit 0
|
|
|
883b0e |
fi
|
|
|
883b0e |
|
|
|
883b0e |
case $# in
|
|
|
883b0e |
0) infile=configure.in ;;
|
|
|
883b0e |
1) infile="$1" ;;
|
|
|
883b0e |
- *) echo "$usage" >&2; exit 1 ;;
|
|
|
883b0e |
+ *) echo "$usage" >&2; rm -f $tmpout; exit 1 ;;
|
|
|
883b0e |
esac
|
|
|
883b0e |
|
|
|
883b0e |
trap 'rm -f $tmpin $tmpout; exit 1' 1 2 15
|
|
|
883b0e |
@@ -103,6 +104,7 @@
|
|
|
883b0e |
infile=$tmpin
|
|
|
883b0e |
elif test ! -r "$infile"; then
|
|
|
883b0e |
echo "autoconf: ${infile}: No such file or directory" >&2
|
|
|
883b0e |
+ rm -f $tmpin $tmpout
|
|
|
883b0e |
exit 1
|
|
|
883b0e |
fi
|
|
|
883b0e |
|
|
|
883b0e |
@@ -111,6 +113,8 @@
|
|
|
883b0e |
else
|
|
|
883b0e |
use_localdir=
|
|
|
883b0e |
fi
|
|
|
883b0e |
+# Make sure we don't leave those around - they are annoying
|
|
|
883b0e |
+trap 'rm -f $tmpin $tmpout' 0
|
|
|
883b0e |
|
|
|
883b0e |
# Use the frozen version of Autoconf if available.
|
|
|
883b0e |
r= f=
|
|
|
883b0e |
@@ -118,7 +122,7 @@
|
|
|
883b0e |
case `$M4 --help < /dev/null 2>&1` in
|
|
|
883b0e |
*reload-state*) test -r $AC_MACRODIR/autoconf.m4f && { r=--reload f=f; } ;;
|
|
|
883b0e |
*traditional*) ;;
|
|
|
883b0e |
-*) echo Autoconf requires GNU m4 1.1 or later >&2; rm -f $tmpin; exit 1 ;;
|
|
|
883b0e |
+*) echo Autoconf requires GNU m4 1.1 or later >&2; rm -f $tmpin $tmpout; exit 1 ;;
|
|
|
883b0e |
esac
|
|
|
883b0e |
|
|
|
883b0e |
$M4 -I$AC_MACRODIR $use_localdir $r autoconf.m4$f $infile > $tmpout ||
|
|
|
883b0e |
@@ -154,6 +158,6 @@
|
|
|
883b0e |
/__oline__/s/^\([0-9][0-9]*\):\(.*\)__oline__/\2\1/
|
|
|
883b0e |
' >&4
|
|
|
883b0e |
|
|
|
883b0e |
-rm -f $tmpout
|
|
|
883b0e |
+rm -f $tmpout $tmpin
|
|
|
883b0e |
|
|
|
883b0e |
exit $status
|
|
|
883b0e |
--- autoconf-2.13/autoupdate.sh~ Fri Mar 26 20:50:48 1999
|
|
|
883b0e |
+++ autoconf-2.13/autoupdate.sh Fri Mar 26 21:02:18 1999
|
|
|
883b0e |
@@ -35,13 +35,13 @@
|
|
|
883b0e |
while test $# -gt 0 ; do
|
|
|
883b0e |
case "${1}" in
|
|
|
883b0e |
-h | --help | --h* )
|
|
|
883b0e |
- echo "${usage}" 1>&2; exit 0 ;;
|
|
|
883b0e |
+ echo "${usage}" 1>&2; rm -f $sedtmp; exit 0 ;;
|
|
|
883b0e |
--macrodir=* | --m*=* )
|
|
|
883b0e |
AC_MACRODIR="`echo \"${1}\" | sed -e 's/^[^=]*=//'`"
|
|
|
883b0e |
shift ;;
|
|
|
883b0e |
-m | --macrodir | --m* )
|
|
|
883b0e |
shift
|
|
|
883b0e |
- test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
|
|
|
883b0e |
+ test $# -eq 0 && { echo "${usage}" 1>&2; rm -f $sedtmp; exit 1; }
|
|
|
883b0e |
AC_MACRODIR="${1}"
|
|
|
883b0e |
shift ;;
|
|
|
883b0e |
--version | --versio | --versi | --vers)
|
|
|
883b0e |
@@ -51,7 +51,7 @@
|
|
|
883b0e |
- ) # Use stdin as input.
|
|
|
883b0e |
break ;;
|
|
|
883b0e |
-* )
|
|
|
883b0e |
- echo "${usage}" 1>&2; exit 1 ;;
|
|
|
883b0e |
+ echo "${usage}" 1>&2; rm -f $sedtmp; exit 1 ;;
|
|
|
883b0e |
* )
|
|
|
883b0e |
break ;;
|
|
|
883b0e |
esac
|
|
|
883b0e |
@@ -61,6 +61,7 @@
|
|
|
883b0e |
version=`sed -n 's/define.AC_ACVERSION.[ ]*\([0-9.]*\).*/\1/p' \
|
|
|
883b0e |
$AC_MACRODIR/acgeneral.m4`
|
|
|
883b0e |
echo "Autoconf version $version"
|
|
|
883b0e |
+ rm -f $sedtmp
|
|
|
883b0e |
exit 0
|
|
|
883b0e |
fi
|
|
|
883b0e |
|
|
|
883b0e |
@@ -68,6 +69,7 @@
|
|
|
883b0e |
|
|
|
883b0e |
tmpout=acupo.$$
|
|
|
883b0e |
trap 'rm -f $sedtmp $tmpout; exit 1' 1 2 15
|
|
|
883b0e |
+trap 'rm -f $sedtmp' 0
|
|
|
883b0e |
case $# in
|
|
|
883b0e |
0) infile=configure.in; out="> $tmpout"
|
|
|
883b0e |
# Make sure $infile can be read, and $tmpout has the same permissions.
|