Default sysconfdir to /etc if the prefix is /usr

This commit is contained in:
Christian Dywan 2009-02-02 01:10:30 +01:00
parent acaa1741bd
commit 8d3d76ed8f

View file

@ -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'):