From: Akim Demaille Date: Mon, 18 Jun 2001 18:15:24 +0000 (+0000) Subject: * autoconf.in (M4): Pass --nesting-limit=1024, unless already set X-Git-Tag: AUTOCONF-2.50a~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a89977e147fe5c861b59c4db265405ceb6b6db72;p=thirdparty%2Fautoconf.git * autoconf.in (M4): Pass --nesting-limit=1024, unless already set in $M4. Suggested by Andreas Schwab. --- diff --git a/ChangeLog b/ChangeLog index 3d6fcc642..54435f1e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-06-18 Akim Demaille + + * autoconf.in (M4): Pass --nesting-limit=1024, unless already set + in $M4. + Suggested by Andreas Schwab. + 2001-06-18 Akim Demaille * acfunctions.m4 (AC_FUNC_CHOWN, AC_FUNC_CLOSEDIR_VOID) diff --git a/autoconf.in b/autoconf.in index bd0e19d50..04bc53e59 100644 --- a/autoconf.in +++ b/autoconf.in @@ -105,6 +105,16 @@ case `$M4 --help &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" && diff --git a/bin/autoconf.in b/bin/autoconf.in index bd0e19d50..04bc53e59 100644 --- a/bin/autoconf.in +++ b/bin/autoconf.in @@ -105,6 +105,16 @@ case `$M4 --help &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" &&