summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2012-05-09 15:33:04 +0200
committerGünther Deschner <gd@samba.org>2012-05-09 17:38:33 +0200
commit5f05eacd27f0dc512748c14cac5f4d6afb327f99 (patch)
treea7bbeebddd62a6b57637fe4dc963575a31c23346 /buildtools/wafsamba
parent67adda0d69558c0bd2236478c8c4d2c76417dc4b (diff)
downloadsamba-5f05eacd27f0dc512748c14cac5f4d6afb327f99.tar.gz
samba-5f05eacd27f0dc512748c14cac5f4d6afb327f99.tar.bz2
samba-5f05eacd27f0dc512748c14cac5f4d6afb327f99.zip
allow to use system iniparser library.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed May 9 17:38:33 CEST 2012 on sn-devel-104
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba3.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba3.py b/buildtools/wafsamba/samba3.py
index 7f05ffe40d..b6a9f1bd3f 100644
--- a/buildtools/wafsamba/samba3.py
+++ b/buildtools/wafsamba/samba3.py
@@ -92,6 +92,12 @@ def s3_fix_kwargs(bld, kwargs):
else:
extra_includes += [ '../lib/popt' ]
+ if bld.CONFIG_SET('USING_SYSTEM_INIPARSER'):
+ (iniparser_includes, iniparser_ldflags, iniparser_cpppath) = library_flags(bld, 'iniparser')
+ extra_includes += iniparser_cpppath
+ else:
+ extra_includes += [ '../lib/iniparser' ]
+
# s3 builds assume that they will have a bunch of extra include paths
includes = []
for d in extra_includes: