s4-waf: Skip header-not-found cache if a library is specified, as it may provide
authorJelmer Vernooij <jelmer@samba.org>
Tue, 25 Jan 2011 02:09:27 +0000 (18:09 -0800)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 25 Jan 2011 02:59:32 +0000 (03:59 +0100)
additional C flags.

Tridge, please check.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Jan 25 03:59:32 CET 2011 on sn-devel-104

buildtools/wafsamba/samba_autoconf.py

index 91d8a56fe3866c2111713c9097de60415fa530f5..ec0ed16e5289686f4308950aa30cb46e085d67ce 100644 (file)
@@ -80,7 +80,7 @@ def nolink(self):
 
 def CHECK_HEADER(conf, h, add_headers=False, lib=None):
     '''check for a header'''
-    if h in missing_headers:
+    if h in missing_headers and lib is None:
         return False
     d = h.upper().replace('/', '_')
     d = d.replace('.', '_')