autoconf
[Top][All Lists]
Advanced

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

Re: Quick divert() 2.13/2.6x portability macro


From: Eric Blake
Subject: Re: Quick divert() 2.13/2.6x portability macro
Date: Sat, 28 Nov 2009 12:19:50 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

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

According to Rasmus Lerdorf on 11/28/2009 12:07 PM:
> ok, the docs only say that it has to come before AC_ARG_ENABLE/AC_ARG_WITH
> 
> http://www.gnu.org/software/hello/manual/autoconf/Help-.html
> 
> and it worked fine in 2.64/2.65 before the AC_INIT, but you are right.
> Putting it after the AC_INIT fixed it for 2.61 and 2.62.

In general, AC_INIT should always be first.  Over recent releases, I've
tried to make other macros work earlier as well, but the manual documents
that only AC_PREREQ and AC_DEFUN are guaranteed to work prior to AC_INIT
(and anything else in the AC_ namespace is luck of the draw if invoked
before initialization).

- --
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/

iEYEARECAAYFAksRd9YACgkQ84KuGfSFAYBHpwCbBCrMl6OEXjPbAP9s0zMmNnxg
wsoAn0dLNXZ9BjiZFyxfYGn3uRbzd+ue
=0pKu
-----END PGP SIGNATURE-----




reply via email to

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