summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_autoconf.py
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-12-10 02:36:24 +0300
committerMatthieu Patou <mat@matws.net>2010-12-10 02:39:42 +0300
commit301d59caf2ee6f49e108b748b0e38221dec9bb96 (patch)
tree7560b0cf1b9e4e4601eb2b52e990ede80b9ce2b1 /buildtools/wafsamba/samba_autoconf.py
parent87337383572324e3d1d00ed710614ebe217aa2b2 (diff)
downloadsamba-301d59caf2ee6f49e108b748b0e38221dec9bb96.tar.gz
samba-301d59caf2ee6f49e108b748b0e38221dec9bb96.tar.bz2
samba-301d59caf2ee6f49e108b748b0e38221dec9bb96.zip
build: use CPP and CC values when calling pidl
Diffstat (limited to 'buildtools/wafsamba/samba_autoconf.py')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index b6d0b358d6..1babe7b62d 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -448,10 +448,19 @@ def CHECK_LDFLAGS(conf, ldflags):
@conf
+def CONFIG_GET(conf, option):
+ '''return True if a configuration option was found'''
+ if (option in conf.env):
+ return conf.env[option]
+ else:
+ return None
+
+@conf
def CONFIG_SET(conf, option):
'''return True if a configuration option was found'''
return (option in conf.env) and (conf.env[option] != ())
Build.BuildContext.CONFIG_SET = CONFIG_SET
+Build.BuildContext.CONFIG_GET = CONFIG_GET
def library_flags(conf, libs):