autoconf
[Top][All Lists]
Advanced

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

Re: AC_INIT receiving PACKAGE_VERSION from outside


From: Sam Steingold
Subject: Re: AC_INIT receiving PACKAGE_VERSION from outside
Date: Fri, 11 Mar 2005 11:49:58 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

> * Bruno Haible <address@hidden> [2005-03-11 17:31:51 +0100]:
>
> Sam Steingold wrote:
>> > But this one works:
>> >
>> >   AC_INIT
>> >   AC_CONFIG_SRCDIR(foo.c)
>> >   . $srcdir/version.sh
>> >   AM_INIT_AUTOMAKE(my package, $VERSION_NUMBER)
>>
>> Are you _sure_ it works?
>> ...
>> Specifically, the code above will result in empty PACKAGE_* variables.
>
> Yes, the PACKAGE_* variables are empty afterwards. If you need them, you
> have to assign them explicitly:
>   PACKAGE_NAME='my package'
>   PACKAGE_VERSION=$VERSION_NUMBER
>   etc.

no, this does _not_ work.
all the substitution code is done when AC_INIT is over.
nothing you can do in configure.ac after AC_INIT can change what
configure will substitute for @address@hidden
look at clisp/src/configure.

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.jihadwatch.org/> <http://www.memri.org/>
<http://www.iris.org.il> <http://www.mideasttruth.com/>
Sufficiently advanced stupidity is indistinguishable from malice.




reply via email to

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