]> spindle.queued.net Git - midori/commitdiff
Default sysconfdir to /etc if the prefix is /usr
authorChristian Dywan <christian@twotoasts.de>
Mon, 2 Feb 2009 00:10:30 +0000 (01:10 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 2 Feb 2009 00:10:30 +0000 (01:10 +0100)
wscript

diff --git a/wscript b/wscript
index 96dde91b617f709218cf237d4a8423ec3fabfefc..c8518ddad08e9cec38fdd57c68a905f21db8b309 100644 (file)
--- a/wscript
+++ b/wscript
@@ -89,7 +89,10 @@ def configure (conf):
     dirname_default ('DATADIR', os.path.join (conf.env['PREFIX'], 'share'))
     dirname_default ('DOCDIR', os.path.join (conf.env['DATADIR'], 'doc'))
     dirname_default ('LIBDIR', os.path.join (conf.env['PREFIX'], 'lib'))
-    dirname_default ('SYSCONFDIR', os.path.join (conf.env['PREFIX'], 'etc'))
+    if conf.env['PREFIX'] == '/usr':
+        dirname_default ('SYSCONFDIR', '/etc')
+    else:
+        dirname_default ('SYSCONFDIR', os.path.join (conf.env['PREFIX'], 'etc'))
 
     if option_enabled ('apidocs'):
         conf.find_program ('gtkdoc-scan', var='GTKDOC_SCAN')