* autoconf.in (M4): Remove.
+2001-08-01 Akim Demaille <akim@epita.fr>
+
+ * autom4te.in ($m4): Handle the --nesting-limit.
+ * autoconf.in (M4): Remove.
+
2001-08-01 Akim Demaille <akim@epita.fr>
* autoconf.in ($AWK): Remove, no longer used.
status=0
verbose=:
-# Find GNU m4.
-# Handle the case that m4 has moved since we were configured.
-# It may have been found originally in a build directory.
-: ${M4=@M4@}
-case "$M4" in
- [\\/]* | ?:[\\/]*) test -f "$M4" || M4=m4 ;;
-esac
-# Some non-GNU m4's don't reject the --help option, so give them /dev/null.
-case `$M4 --help </dev/null 2>&1` in
-*reload-state*);;
-*) echo "$me: Autoconf requires GNU m4 1.4 or later" >&2; exit 1 ;;
-esac
-
-# Set some high recursion limit as the default limit, 250, has already
-# been hit with AC_OUTPUT.
-case " $M4 " in
- *" --nesting-limit"* | *" -L"* )
- # Don't override the user's choice
- ;;
- *) M4="$M4 --nesting-limit=1024"
- ;;
-esac
-
-
# We test "$dir/autom4te" in case we are in the build tree, in which case
# the names are not transformed yet.
for autom4te in "$AUTOM4TE" \
die "$me: need GNU m4 1.4 or later: $m4\n"
if system "$m4 --help </dev/null 2>&1 | fgrep reload-state >/dev/null";
+# Set some high recursion limit as the default limit, 250, has already
+# been hit with AC_OUTPUT. Don't override the user's choice.
+$m4 .= ' --nesting-limit=1024'
+ if " $m4 " !~ / (--nesting-limit|-L) /;
+
# @M4_BUILTINS -- M4 builtins and a useful comment.
my @m4_builtins = `echo dumpdef | $m4 2>&1 >/dev/null`;
map { s/:.*//;s/\W// } @m4_builtins;
status=0
verbose=:
-# Find GNU m4.
-# Handle the case that m4 has moved since we were configured.
-# It may have been found originally in a build directory.
-: ${M4=@M4@}
-case "$M4" in
- [\\/]* | ?:[\\/]*) test -f "$M4" || M4=m4 ;;
-esac
-# Some non-GNU m4's don't reject the --help option, so give them /dev/null.
-case `$M4 --help </dev/null 2>&1` in
-*reload-state*);;
-*) echo "$me: Autoconf requires GNU m4 1.4 or later" >&2; exit 1 ;;
-esac
-
-# Set some high recursion limit as the default limit, 250, has already
-# been hit with AC_OUTPUT.
-case " $M4 " in
- *" --nesting-limit"* | *" -L"* )
- # Don't override the user's choice
- ;;
- *) M4="$M4 --nesting-limit=1024"
- ;;
-esac
-
-
# We test "$dir/autom4te" in case we are in the build tree, in which case
# the names are not transformed yet.
for autom4te in "$AUTOM4TE" \
die "$me: need GNU m4 1.4 or later: $m4\n"
if system "$m4 --help </dev/null 2>&1 | fgrep reload-state >/dev/null";
+# Set some high recursion limit as the default limit, 250, has already
+# been hit with AC_OUTPUT. Don't override the user's choice.
+$m4 .= ' --nesting-limit=1024'
+ if " $m4 " !~ / (--nesting-limit|-L) /;
+
# @M4_BUILTINS -- M4 builtins and a useful comment.
my @m4_builtins = `echo dumpdef | $m4 2>&1 >/dev/null`;
map { s/:.*//;s/\W// } @m4_builtins;