summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 0b26860033..dc1a0b3094 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -125,8 +125,11 @@ def CHECK_DECLS(conf, vars, reverse=False, headers=None):
@runonce
def CHECK_FUNC(conf, f, checklink=False):
'''check for a function'''
+ define='HAVE_%s' % f.upper()
+ if CONFIG_SET(define):
+ return True
if checklink:
- return CHECK_CODE(conf, '%s()' % f, execute=False, define='HAVE_%s' % f.upper())
+ return CHECK_CODE(conf, '%s()' % f, execute=False, define=define)
return conf.check(function_name=f, header_name=conf.env.hlist)