]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Jul 2005 06:48:56 +0000 (06:48 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 5 Jul 2005 06:48:56 +0000 (06:48 +0000)
ChangeLog
bin/autom4te.in

index 194d292094a924a8cf1a246153efaeb5bcf5d8cc..b7844ccf72bc18625831f4ce4fba92425aa2bbb5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * bin/autom4te.in ($m4): Catch usages like --nesting-limit=2048.
+       Problem reported by Patrick Welche.
+
 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
 
        * lib/autoconf/general.m4 (AC_ARG_PROGRAM): Use &, not |, in
index f8ea1f8d6c8f66518ce49c93c357cbee9f2862e6..1c607ce0c53c4900c87def942853b28ff2cde998 100644 (file)
@@ -6,7 +6,7 @@ eval 'case $# in 0) exec @PERL@ -S "$0";; *) exec @PERL@ -S "$0" "$@";; esac'
     if 0;
 
 # autom4te - Wrapper around M4 libraries.
-# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -95,7 +95,7 @@ fatal "need GNU m4 1.4 or later: $m4"
 # 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) /;
+  if " $m4 " !~ / (--nesting-limit(=[0-9]+)?|-L[0-9]*) /;
 
 
 # @M4_BUILTIN -- M4 builtins and a useful comment.