summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2021-12-06 18:00:33 +0100
committerAndrew Bartlett <abartlet@samba.org>2021-12-06 22:08:31 +0000
commit61ce2899791dc9a078b1af4ee62ab29436fe95dc (patch)
treeade66f5d8d1820ee541d27c5a7475b63b3a8ef61 /buildtools
parent18788e174edbc0c852eccf7eadb76c1a421778f5 (diff)
downloadsamba-61ce2899791dc9a078b1af4ee62ab29436fe95dc.tar.gz
wafsamba: Pass lib to CHECK_DECLS()
This is needed if you have headers in non-standard include paths. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 4d2aea6c941..8b499825230 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -212,7 +212,7 @@ def CHECK_VARIABLE(conf, v, define=None, always=False,
@conf
-def CHECK_DECLS(conf, vars, reverse=False, headers=None, always=False):
+def CHECK_DECLS(conf, vars, reverse=False, headers=None, lib=None, always=False):
'''check a list of variable declarations, using the HAVE_DECL_xxx form
of define
@@ -227,6 +227,7 @@ def CHECK_DECLS(conf, vars, reverse=False, headers=None, always=False):
if not CHECK_VARIABLE(conf, v,
define=define,
headers=headers,
+ lib=lib,
msg='Checking for declaration of %s' % v,
always=always):
if not CHECK_CODE(conf,
@@ -238,6 +239,7 @@ def CHECK_DECLS(conf, vars, reverse=False, headers=None, always=False):
msg='Checking for declaration of %s (as enum)' % v,
local_include=False,
headers=headers,
+ lib=lib,
define=define,
always=always):
ret = False