automake-patches
[Top][All Lists]
Advanced

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

Re: [PATCH 1/2] aclocal: multiple local m4 macro dirs with AC_CONFIG_MAC


From: Eric Blake
Subject: Re: [PATCH 1/2] aclocal: multiple local m4 macro dirs with AC_CONFIG_MACRO_DIR
Date: Wed, 04 Jul 2012 10:42:44 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

On 07/04/2012 09:24 AM, Stefano Lattarini wrote:
> It can be done either passing several arguments to a single invocation:
> 
>     AC_CONFIG_MACRO_DIR([dir1 dir2])

I would recommend against this,

> 
> or issuing more invocations:
> 
>     AC_CONFIG_MACRO_DIR([dir1])
>     AC_CONFIG_MACRO_DIR([dir2])

and instead favor this approach only.

My plan for autoconf is to implement AC_CONFIG_MACRO_DIRS, which can be
invoked multiple times and also takes a whitespace-separated list in a
single call, but which will basically then call AC_CONFIG_MACRO_DIR once
per unique entry (that is, AC_CONFIG_MACRO_DIRS will be smart enough to
filter out duplicates).  Tracing code should then trace _just_
AC_CONFIG_MACRO_DIR, which will be called once per directory, and where
the first call is the preferred dumping ground for new macros.  There
shouldn't be a need to trace AC_CONFIG_MACRO_DIRS.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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