bug-autoconf
[Top][All Lists]
Advanced

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

Re: config.log doesn't show INSTALL or srcdir


From: Eric Blake
Subject: Re: config.log doesn't show INSTALL or srcdir
Date: Thu, 27 Oct 2011 09:04:58 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.4 Thunderbird/3.1.15

On 10/27/2011 05:14 AM, LHB wrote:
Somewhere along the line, these vars managed to escape from being reported!

I did notice that config.status has a little section in it that has the
missing vars all grouped together. Coincidence?

No, this is by design.


:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
s|@configure_input@|$ac_sed_conf_input|;t t
s&@top_builddir@&$ac_top_builddir_sub&;t t
s&@top_build_prefix@&$ac_top_build_prefix&;t t
s&@srcdir@&$ac_srcdir&;t t
s&@abs_srcdir@&$ac_abs_srcdir&;t t
s&@top_srcdir@&$ac_top_srcdir&;t t
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
s&@builddir@&$ac_builddir&;t t
s&@abs_builddir@&$ac_abs_builddir&;t t
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
s&@INSTALL@&$ac_INSTALL&;t t
$ac_datarootdir_hack
"

These are the magic variables, whose contents vary depending on what directory where the substitution occurs.

All the other variables are constant substitutions - it doesn't matter how deep your file with @VAR@ is, the substitution will use the same value of $VAR. But for the variables listed in this hunk, the expansion varies; for example, @top_builddir@ might be "./" or "../" or "../../", and so on. Since they aren't constant over the life of the config.status substitution loop, they aren't listed as environment variables with a constant value. $INSTALL is one of these magic variables, hence its intentional exclusion from the earlier list of substituted names.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

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