autoconf
[Top][All Lists]
Advanced

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

Re: using $datadir in a file that is processed by configure


From: Eric Blake
Subject: Re: using $datadir in a file that is processed by configure
Date: Fri, 07 Sep 2012 12:04:06 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0

On 09/07/2012 11:55 AM, Vincent Torri wrote:
> 
> One solution is to use a sed command in a make rule in Makefile.am.

In fact, that is the ideal solution.  According to GNU Coding Standards,
datadir can be modified at make time, so you WANT it to be computed at
make time.

> 
> Is there a better solution to do what we want ?

Have a look at the gnulib 'configmake' module, which includes rules for
making a "configmake.h" header with all of the make-time substitutions
for all of the special configure-time directories, such as $datadir.

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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