summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-08 00:26:07 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:46 +1000
commitb2f7e4b5e2bf3da9bf2aca9a0c0ffd5d8408b2e8 (patch)
tree6575294c4ffef2f4dd36f6ca85ba053062057852 /buildtools
parent1726ba92cf70c86a9ca2eb852c3eb6f18eb89591 (diff)
downloadsamba-b2f7e4b5e2bf3da9bf2aca9a0c0ffd5d8408b2e8.tar.gz
samba-b2f7e4b5e2bf3da9bf2aca9a0c0ffd5d8408b2e8.tar.bz2
samba-b2f7e4b5e2bf3da9bf2aca9a0c0ffd5d8408b2e8.zip
build: make CONFIG_PATH() understand absolute paths
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 297d8d1921..dc4bf8f220 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -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)
##############################################################