2010/8/5 Luisa <[email protected]>:
> On 8/3/10, Ludovic Rousseau <[email protected]> wrote:
>> 2010/8/2 Luisa <[email protected]>:
>>> What about this:
>>>
>>> std_sysconfdir='${prefix}/etc'
>>>
>>> if test x"${sysconfdir}" == x"${std_sysconfdir}"; then
>>> sysconfdir=/etc
>>> fi
>>>
>>> or even simplier, since herarchy or prefixes aren't likely to change:
>>>
>>> if test x"${sysconfdir}" == x'${prefix}/etc'; then
>>> sysconfdir=/etc
>>> fi
>>
>> That would change the semantic.
>> If you use ./configure with no argument you will get:
>> System binaries: /usr/local/sbin
>> Configuration dir: /etc/reader.conf.d
>>
>> before you got:
>> System binaries: /usr/local/sbin
>> Configuration dir: /usr/local/etc/reader.conf.d
>>
>> I do not want to change the default values, but just the value when
>> prefix=/usr
>>
>
> I got it wrong then, just adapt it to your needs:
>
> if test x"${sysconfdir}" == x"/usr"; then
> sysconfdir="/etc"
> fi
This will not detect the case --prefix=/usr --sysconfdir=/foobar
I now use:
# default value of sysconfdir
if test x"${sysconfdir}" == x'${prefix}/etc'; then
# set sysconfdir to /etc instead of /usr/etc if prefix=/usr
if test x${prefix} = x/usr; then
sysconfdir="/etc"
fi
# add "/reader.conf.d" to the default value
sysconfdir="${sysconfdir}/reader.conf.d"
fi
--
Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle