From: Akim Demaille Date: Wed, 1 Aug 2001 13:58:44 +0000 (+0000) Subject: * autom4te.in ($m4): Handle the --nesting-limit. X-Git-Tag: AUTOCONF-2.52a~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26056c4bef7d1e284f92bcf3a8df38e2da8705ed;p=thirdparty%2Fautoconf.git * autom4te.in ($m4): Handle the --nesting-limit. * autoconf.in (M4): Remove. --- diff --git a/ChangeLog b/ChangeLog index 43a4c5e45..a2c2ffe00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-08-01 Akim Demaille + + * autom4te.in ($m4): Handle the --nesting-limit. + * autoconf.in (M4): Remove. + 2001-08-01 Akim Demaille * autoconf.in ($AWK): Remove, no longer used. diff --git a/autoconf.in b/autoconf.in index 0027f1fcd..2ea8c71ba 100644 --- a/autoconf.in +++ b/autoconf.in @@ -95,30 +95,6 @@ outfile= 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 &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" \ diff --git a/autom4te.in b/autom4te.in index bee933ad3..0887cb0bf 100644 --- a/autom4te.in +++ b/autom4te.in @@ -268,6 +268,11 @@ my $m4 = $ENV{"M4"} || '@M4@'; die "$me: need GNU m4 1.4 or later: $m4\n" if system "$m4 --help &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; diff --git a/bin/autoconf.in b/bin/autoconf.in index 0027f1fcd..2ea8c71ba 100644 --- a/bin/autoconf.in +++ b/bin/autoconf.in @@ -95,30 +95,6 @@ outfile= 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 &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" \ diff --git a/bin/autom4te.in b/bin/autom4te.in index bee933ad3..0887cb0bf 100644 --- a/bin/autom4te.in +++ b/bin/autom4te.in @@ -268,6 +268,11 @@ my $m4 = $ENV{"M4"} || '@M4@'; die "$me: need GNU m4 1.4 or later: $m4\n" if system "$m4 --help &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;