[openib-general] libsdp.conf placement

Eitan Zahavi eitan at mellanox.co.il
Tue Dec 26 03:57:26 PST 2006


Michael S. Tsirkin wrote:
>>> I noticed autotools have sysconfdir variable.
>>> So it seems to me this would be the best, standard, place to keep the
>>> libsdp.conf file.
>>>
>>> Eitan?
>>>
>>>   
>>>       
>> Unfortunately autotools are not doing the right thing.
>> Quoting from libsdp Makefile.am:
>> AM_CFLAGS = -Wall -DSYSCONFDIR=\"$(sysconfdir)\"
>>
>> And then internally in the port.c code:
>> #define LIBSDP_DEFAULT_CONFIG_FILE  SYSCONFDIR "/libsdp.conf"
>>
>> Somehow when you run ./configure you get $prefix/etc as the $sysconfdir
>>     
>
> So, that's what all other libraries that use autotools will get
> (e.g. libibverbs) and that's the best default place then.
>
> If we want to, OFED can override sysconfdir with a configure switch, can it not?
>   
Yes it can but some people might want to upgrade just libsdp. For those 
I would preferably use a more reasonable sysconfig then $prefix/etc

EZ





More information about the general mailing list