This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Patch: Too many files in AC_OUTPUT cause M4 error
- From: Alexandre Duret-Lutz <duret_g at lrde dot epita dot fr>
- To: Martin Frydl <martin at systinet dot com>
- Cc: autoconf at gnu dot org, automake at gnu dot org, autoconf-patches at gnu dot org
- Date: Tue, 26 Nov 2002 21:19:04 +0100
- Subject: Re: Patch: Too many files in AC_OUTPUT cause M4 error
- References: <3DDE7188.6080105@systinet.com>
- Reply-to: autoconf-patches at gnu dot org
[M-F-T: autoconf-patches@gnu.org]
>>> "Martin" == Martin Frydl <martin@systinet.com> writes:
[...]
Martin> I've created a patch which is aware of M4 problem and
Martin> separates the task into two expressions - first removes the
Martin> terminating space, then strips the leading one and puts brackets
Martin> around.
[...]
Martin> + [at_patsubst(at_patsubst(at_patsubst(at_patsubst([[[[$1]]]], [\\\n]),
Martin> + [[\n\t ]+], [ ]),
Martin> + [ *\(.\)$],[\1]),
Martin> + [^ *\(.*\)], [[\1]])])
This doesn't seem to do what you want. `[ *\(.\)$],[\1]' will leave the
last trailing space, or strip non trailing whitespaces.
How about something like
[at_patsubst(at_patsubst(at_patsubst(at_patsubst([[[[$1]]]], [\\\n]),
[[\n\t ]+], [ ]),
[ *$]),
[^ *\(.*\)], [[\1]])])
--
Alexandre Duret-Lutz