[Top][All Lists]

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

Re: Caching pkgdatadir in configure

From: Alberto Luaces
Subject: Re: Caching pkgdatadir in configure
Date: Wed, 14 Oct 2009 14:02:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Mike Frysinger writes:

> On Wednesday 14 October 2009 07:37:33 Alberto Luaces wrote:
>> Is it possible to do what I want?
>> 1. If pkgdatadir is not specified at configure time, follow the FHS or
>> GNU guidelines.
>> 2. If pkgdatadir is specified, store its value in the configure cache.
> a lot of people muck around with path vars in configure when they shouldnt.  
> their code tends to be pretty fragile as they have to check multiple vars and 
> expand them manually.
> what i do is append the CPPFLAGS in the like so:
> CPPFLAGS=$CPPFLAGS' -DMY_DATA_PATH="\"$(pkgdatadir)\""'

This is a great idea, thank you. I also think that the simpler the,
the better.



reply via email to

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