automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch: Too many files in AC_OUTPUT cause M4 error


From: Paul Eggert
Subject: Re: Patch: Too many files in AC_OUTPUT cause M4 error
Date: Tue, 3 Dec 2002 00:31:48 -0800 (PST)

In testing my patch I managed to find a old version of GNU m4 that
illustrates the limitation that you mentioned; and my patch tickled
that limitation as well.  So it looks like your "less conservative
patch" is better after all.  So I installed your patch instead,
as follows.  Thanks.

2002-12-02  Martin Frydl  <address@hidden>
        
        * bin/autom4te.in (at_flatten): rewritten to avoid M4 problem when
        \(.*\) match is too long and there is something more to be checked.
        <http://mail.gnu.org/pipermail/autoconf/2002-November/014524.html>

Index: autom4te.in
===================================================================
RCS file: /cvsroot/autoconf/autoconf/bin/autom4te.in,v
retrieving revision 1.77
retrieving revision 1.79
diff -p -u -r1.77 -r1.79
--- autom4te.in 31 Oct 2002 08:37:20 -0000      1.77
+++ autom4te.in 3 Dec 2002 08:30:12 -0000       1.79
@@ -941,9 +941,10 @@ sub handle_traces ($$%)
   # Note that the second pattern is `newline, tab or space'.  Don't lose
   # the tab!
   define([at_flatten],
-  [at_patsubst(at_patsubst(at_patsubst([[[$1]]], [\\\n]),
-                           [[\n\t ]+], [ ]),
-               [^ *\(.*\) *$], [[\1]])])
+  [at_patsubst(at_patsubst(at_patsubst(at_patsubst([[[[$1]]]], [\\\n]),
+                                       [[\n\t ]+], [ ]),
+                           [ *\(.\)$], [\1]),
+              [^ *\(.*\)], [[\1]])])
 
   define([at_args],    [at_shift(at_shift(at_shift(at_shift(at_shift($@)))))])
   define([at_at],      [_$0([$1], at_args($@))])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]