summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-07 13:56:40 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:41 +1000
commitabaf9aaba7acc10dde3a0b619209749748df52e2 (patch)
tree5387012f0b577eaaf21ff3c6667e1eacd5253d38
parent465481eecc510d1c1887394d869d52d31bdfa523 (diff)
downloadsamba-abaf9aaba7acc10dde3a0b619209749748df52e2.tar.gz
samba-abaf9aaba7acc10dde3a0b619209749748df52e2.tar.bz2
samba-abaf9aaba7acc10dde3a0b619209749748df52e2.zip
build: add_headers flag to CHECK_HEADER()
This allows you to ask the header not be added to the list of headers for future configure checks
-rw-r--r--buildtools/wafsamba/samba_autoconf.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 898264e474..808428b08c 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -18,14 +18,14 @@ def DEFINE(conf, d, v):
conf.env.append_value('CCDEFINES', d + '=' + str(v))
@runonce
-def CHECK_HEADER(conf, h):
- if conf.check(header_name=h):
+def CHECK_HEADER(conf, h, add_headers=True):
+ if conf.check(header_name=h) and add_headers:
conf.env.hlist.append(h)
@conf
-def CHECK_HEADERS(conf, list):
+def CHECK_HEADERS(conf, list, add_headers=True):
for hdr in list.split():
- CHECK_HEADER(conf, hdr)
+ CHECK_HEADER(conf, hdr, add_header)
@conf
def CHECK_TYPES(conf, list):