From 5f05eacd27f0dc512748c14cac5f4d6afb327f99 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 9 May 2012 15:33:04 +0200 Subject: allow to use system iniparser library. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Autobuild-User: Günther Deschner Autobuild-Date: Wed May 9 17:38:33 CEST 2012 on sn-devel-104 --- buildtools/wafsamba/samba3.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'buildtools') 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: -- cgit