1 --- autoconf-2.13/autoconf.sh~ Fri Mar 26 20:50:48 1999
2 +++ autoconf-2.13/autoconf.sh Fri Mar 26 20:58:22 1999
4 while test $# -gt 0 ; do
7 - echo "${usage}" 1>&2; exit 0 ;;
8 + echo "${usage}" 1>&2; rm -f $tmpout ; exit 0 ;;
9 --localdir=* | --l*=* )
10 localdir="`echo \"${1}\" | sed -e 's/^[^=]*=//'`"
12 -l | --localdir | --l*)
14 - test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
15 + test $# -eq 0 && { echo "${usage}" 1>&2; rm -f $tmpout; exit 1; }
18 --macrodir=* | --m*=* )
21 -m | --macrodir | --m* )
23 - test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
24 + test $# -eq 0 && { echo "${usage}" 1>&2; rm -f $tmpout; exit 1; }
29 - ) # Use stdin as input.
32 - echo "${usage}" 1>&2; exit 1 ;;
33 + echo "${usage}" 1>&2; rm -f $tmpout; exit 1 ;;
38 version=`sed -n 's/define.AC_ACVERSION.[ ]*\([0-9.]*\).*/\1/p' \
39 $AC_MACRODIR/acgeneral.m4`
40 echo "Autoconf version $version"
46 0) infile=configure.in ;;
48 - *) echo "$usage" >&2; exit 1 ;;
49 + *) echo "$usage" >&2; rm -f $tmpout; exit 1 ;;
52 trap 'rm -f $tmpin $tmpout; exit 1' 1 2 15
55 elif test ! -r "$infile"; then
56 echo "autoconf: ${infile}: No such file or directory" >&2
57 + rm -f $tmpin $tmpout
65 +# Make sure we don't leave those around - they are annoying
66 +trap 'rm -f $tmpin $tmpout' 0
68 # Use the frozen version of Autoconf if available.
71 case `$M4 --help < /dev/null 2>&1` in
72 *reload-state*) test -r $AC_MACRODIR/autoconf.m4f && { r=--reload f=f; } ;;
74 -*) echo Autoconf requires GNU m4 1.1 or later >&2; rm -f $tmpin; exit 1 ;;
75 +*) echo Autoconf requires GNU m4 1.1 or later >&2; rm -f $tmpin $tmpout; exit 1 ;;
78 $M4 -I$AC_MACRODIR $use_localdir $r autoconf.m4$f $infile > $tmpout ||
80 /__oline__/s/^\([0-9][0-9]*\):\(.*\)__oline__/\2\1/
87 --- autoconf-2.13/autoupdate.sh~ Fri Mar 26 20:50:48 1999
88 +++ autoconf-2.13/autoupdate.sh Fri Mar 26 21:02:18 1999
90 while test $# -gt 0 ; do
93 - echo "${usage}" 1>&2; exit 0 ;;
94 + echo "${usage}" 1>&2; rm -f $sedtmp; exit 0 ;;
95 --macrodir=* | --m*=* )
96 AC_MACRODIR="`echo \"${1}\" | sed -e 's/^[^=]*=//'`"
98 -m | --macrodir | --m* )
100 - test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
101 + test $# -eq 0 && { echo "${usage}" 1>&2; rm -f $sedtmp; exit 1; }
104 --version | --versio | --versi | --vers)
106 - ) # Use stdin as input.
109 - echo "${usage}" 1>&2; exit 1 ;;
110 + echo "${usage}" 1>&2; rm -f $sedtmp; exit 1 ;;
115 version=`sed -n 's/define.AC_ACVERSION.[ ]*\([0-9.]*\).*/\1/p' \
116 $AC_MACRODIR/acgeneral.m4`
117 echo "Autoconf version $version"
125 trap 'rm -f $sedtmp $tmpout; exit 1' 1 2 15
126 +trap 'rm -f $sedtmp' 0
128 0) infile=configure.in; out="> $tmpout"
129 # Make sure $infile can be read, and $tmpout has the same permissions.