[Top][All Lists]

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

Re: Replace AC_FOREACH by m4_foreach_w

From: Paul Eggert
Subject: Re: Replace AC_FOREACH by m4_foreach_w
Date: Tue, 24 May 2005 09:21:33 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Stepan Kasal <address@hidden> writes:

> Some autoconf macros use m4_foreach, some AC_FOREACH, and the difference
> is only in the syntax of the list.  Thus I think the different
> ``namespaces'' are not justified.

I agree, but wouldn't it be better to remove AC_FOREACH rather than
rename it?  The whole idea, as I understand it, was to change the
syntax from white-space separation to m4 lists (which are more reliable).
The problem with AC_FOREACH isn't so much its name, as that it makes it
convenient to support the "wrong" convention.

For example, why not simply remove AC_FOREACH, and replace:

  [AC_FOREACH([AC_File], [$1],
     [_AC_CONFIG_DEPENDENCY(m4_bpatsubst(AC_File, [:], [,]))])dnl


  [m4_foreach([AC_File], m4_split(m4_normalize([$1])),
     [_AC_CONFIG_DEPENDENCY(m4_bpatsubst(AC_File, [:], [,]))])dnl

and similarly with all other calls to AC_FOREACH?

reply via email to

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