wafsamba: allow CHECK_BUNDLED_SYSTEM() to check headers without functions
authorStefan Metzmacher <metze@samba.org>
Fri, 14 Mar 2014 09:18:18 +0000 (10:18 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 2 Apr 2014 07:03:41 +0000 (09:03 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_bundled.py

index 1cab6344197c881e928e76e7a6c7f108f71afb50..5926ae2d6eb40a7fd31970b03e7d9c5cb9f9d8bc 100644 (file)
@@ -126,12 +126,15 @@ def CHECK_BUNDLED_SYSTEM(conf, libname, minversion='0.0.0',
 
     def check_functions_headers():
         '''helper function for CHECK_BUNDLED_SYSTEM'''
-        if checkfunctions is None:
-            return True
         if require_headers and headers and not conf.CHECK_HEADERS(headers, lib=libname):
             return False
-        return conf.CHECK_FUNCS_IN(checkfunctions, libname, headers=headers,
-                                   empty_decl=False, set_target=False)
+        if checkfunctions is not None:
+            ok = conf.CHECK_FUNCS_IN(checkfunctions, libname, headers=headers,
+                                     empty_decl=False, set_target=False)
+            if not ok:
+                return False
+        return True
+
 
     # see if the library should only use a system version if another dependent
     # system version is found. That prevents possible use of mixed library