Re: config.h vs. -D (fwd)

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

 



Hi,

Benjamin Sailer <Benjamin.Sailer@xxxxxxxxx> writes:

> Hello again,
>
>> 
>> <snip configure.in>
>> MY_CONFIG_FILE="@datadir@/my_config_file"
>> AC_DEFINE_UNQUOTED([MY_CONFIG_FILE], "$MY_CONFIG_FILE",
>> [default configuration file])
>> <snip>
>> 
>
>> what an i doing wrong?  I'm using
>> 
>
> sorry, i found it after all in the mailinglist's archive:
> @datadir@ seems to be the wrong way at all.  I tried
>
> <snip configure.in>
> MY_CONFIG_FILE=`eval echo ${datadir}/my_config_file`
> AC_DEFINE_UNQUOTED([MY_CONFIG_FILE], "$MY_CONFIG_FILE",
> [default configuration file])
> <snip>
>
> and it seems to work fine both with and without config.h

Actually, that works only if you invoke configure with a --prefix
argument.  Look at

  http://www.gnu.org/software/ac-archive/htmldoc/ac_define_dir.html

for a possible solution.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@xxxxxxxxxx



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux