summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-07 14:32:27 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:42 +1000
commit54e26fcb48e385cf62161cd62f102dd34d1c6b3b (patch)
treeed30497488c1e59c0d099e00eb3b416da9591a40 /buildtools/wafsamba
parent8112b4007dd27a003648e425e666fbdc384b5abc (diff)
downloadsamba-54e26fcb48e385cf62161cd62f102dd34d1c6b3b.tar.gz
samba-54e26fcb48e385cf62161cd62f102dd34d1c6b3b.tar.bz2
samba-54e26fcb48e385cf62161cd62f102dd34d1c6b3b.zip
build: added CHECK_DECLS()
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index c5e43e5e93..73ea4360a6 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -71,6 +71,17 @@ def CHECK_VARIABLE(conf, v, define=None, always=False):
conf.DEFINE(define, 0)
return False
+@conf
+def CHECK_DECLS(conf, vars):
+ '''check a list of variable declarations, using the HAVE_DECL_xxx form
+ of define'''
+ ret = True
+ for v in vars.split():
+ if not CHECK_VARIABLE(conf, v, define='HAVE_DECL_%s' % v.upper()):
+ ret = False
+ return ret
+
+
@runonce
def CHECK_FUNC(conf, f):
return conf.check(function_name=f, header_name=conf.env.hlist)