autoconf
[Top][All Lists]
Advanced

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

Re: trouble adding new macros to my configure.ac


From: Eric Blake
Subject: Re: trouble adding new macros to my configure.ac
Date: Wed, 22 Apr 2009 20:45:46 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to John Calcote on 4/22/2009 5:09 PM:
>> Problem is, how do I do that? I tried to add this macro (and the
>> prerequisites) inside aclocal.m4, but it seems aclocal.m4 gets
>> autogenerated
>> by aclocal whenever autoconf makes the configure script.
>>
> 
> If you use Autoconf alone, then aclocal.m4 is the place to put extra
> macro definitions. However, when you use it with Automake, then the
> aclocal utility gathers macro definitions from multiple locations and
> overwrites aclocal.m4 with these various extra sources. In this case,
> use acinclude.m4, as that's one of the places that aclocal gathers from
> to build the new aclocal.m4 file.

Is there anything we can do to the autoconf documentation to make this
point more clear?  We do want to support both camps of users - those who
use just autoconf (and edit aclocal.m4), and those who use automake (who
edit acinclude.m4 or dump files in the m4 include directory), and the
documentation should make it clear which approach a developer should use
based on the tools they are currently using.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknv1loACgkQ84KuGfSFAYB0BQCfWl6cEmV5ovmZw3qnCUpSoee4
HoQAn1uzsnxnGBkkrFzztJvT5G5ZagN7
=KACe
-----END PGP SIGNATURE-----




reply via email to

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