]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* autoconf.in (M4): Pass --nesting-limit=1024, unless already set
authorAkim Demaille <akim@epita.fr>
Mon, 18 Jun 2001 18:15:24 +0000 (18:15 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 18 Jun 2001 18:15:24 +0000 (18:15 +0000)
in $M4.
Suggested by Andreas Schwab.

ChangeLog
autoconf.in
bin/autoconf.in

index 3d6fcc642f7fb7c7d58392521d222b1e65469476..54435f1e4fff698d398744e61e7d9c394ef0a034 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-06-18  Akim Demaille  <akim@epita.fr>
+
+       * autoconf.in (M4): Pass --nesting-limit=1024, unless already set
+       in $M4.
+       Suggested by Andreas Schwab.
+
 2001-06-18  Akim Demaille  <akim@epita.fr>
 
        * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID)
index bd0e19d5058410fe956b8ed8075902ce2fa5fece..04bc53e593792cd624ccca6ce21facf11a71f713 100644 (file)
@@ -105,6 +105,16 @@ case `$M4 --help </dev/null 2>&1` in
 *) 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
+
 # Variables.
 : ${autoconf_dir=${AC_MACRODIR=@datadir@}}
 test -z "$AC_ACLOCALDIR" &&
index bd0e19d5058410fe956b8ed8075902ce2fa5fece..04bc53e593792cd624ccca6ce21facf11a71f713 100644 (file)
@@ -105,6 +105,16 @@ case `$M4 --help </dev/null 2>&1` in
 *) 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
+
 # Variables.
 : ${autoconf_dir=${AC_MACRODIR=@datadir@}}
 test -z "$AC_ACLOCALDIR" &&