Default sysconfdir to /etc if the prefix is /usr
This commit is contained in:
parent
acaa1741bd
commit
8d3d76ed8f
1 changed files with 4 additions and 1 deletions
3
wscript
3
wscript
|
@ -89,6 +89,9 @@ def configure (conf):
|
||||||
dirname_default ('DATADIR', os.path.join (conf.env['PREFIX'], 'share'))
|
dirname_default ('DATADIR', os.path.join (conf.env['PREFIX'], 'share'))
|
||||||
dirname_default ('DOCDIR', os.path.join (conf.env['DATADIR'], 'doc'))
|
dirname_default ('DOCDIR', os.path.join (conf.env['DATADIR'], 'doc'))
|
||||||
dirname_default ('LIBDIR', os.path.join (conf.env['PREFIX'], 'lib'))
|
dirname_default ('LIBDIR', os.path.join (conf.env['PREFIX'], 'lib'))
|
||||||
|
if conf.env['PREFIX'] == '/usr':
|
||||||
|
dirname_default ('SYSCONFDIR', '/etc')
|
||||||
|
else:
|
||||||
dirname_default ('SYSCONFDIR', os.path.join (conf.env['PREFIX'], 'etc'))
|
dirname_default ('SYSCONFDIR', os.path.join (conf.env['PREFIX'], 'etc'))
|
||||||
|
|
||||||
if option_enabled ('apidocs'):
|
if option_enabled ('apidocs'):
|
||||||
|
|
Loading…
Reference in a new issue