build: make CONFIG_PATH() understand absolute paths
authorAndrew Tridgell <tridge@samba.org>
Sun, 7 Mar 2010 13:26:07 +0000 (00:26 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:46 +0000 (20:26 +1000)
buildtools/wafsamba/samba_autoconf.py

index 297d8d19219980a311ec955947954a28733bfed6..dc4bf8f2202636ca366231b6d3be36db4937c5a9 100644 (file)
@@ -330,7 +330,10 @@ def SAMBA_CONFIG_H(conf, path=None):
 @conf
 def CONFIG_PATH(conf, name, default):
     if not name in conf.env:
-        conf.env[name] = conf.env['PREFIX'] + default
+        if default[0] == '/':
+            conf.env[name] = default
+        else:
+            conf.env[name] = conf.env['PREFIX'] + default
     conf.define(name, conf.env[name], quote=True)
 
 ##############################################################