autoconf
[Top][All Lists]
Advanced

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

Re: generating pc file


From: Russ Allbery
Subject: Re: generating pc file
Date: Thu, 20 Sep 2012 13:14:40 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Nick Bowler <address@hidden> writes:

> I wonder if all that's needed is an option to override a configure- time
> decision when you run config.status?  Then you could use the
> config.status machinery to perform substitutions by calling it at make
> time, and not have to maintain your own code that does the same thing.
> Then the makefile could have a rule (either automatically provided by
> Automake or hand-written by the user) that looks something like:

config.status also doesn't fully expand the variables, though, which is
something that you'd want for this sort of application.  Otherwise, you
have to know all of the possible ways in which one variable could
reference another so that you can set all of them (and you can only write
files that have a variable resolution system, although pkg-config does
have one).  Note that the user can do things like
--libdir='${datadir}/foo' at configure time, even if it's not common.

So yes, you could use config.status, but only if it also had a flag that
said to fully expand the variables before substituting them in, and I
suspect that's a fair amount of change to the script.

-- 
Russ Allbery (address@hidden)             <http://www.eyrie.org/~eagle/>



reply via email to

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