build: go into system includes for dependencies on configure
authorAndrew Tridgell <tridge@samba.org>
Wed, 17 Mar 2010 04:39:24 +0000 (15:39 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:50 +0000 (20:26 +1000)
lib/replace/wscript

index ab7ef9783d582efbccf3d77e5fad924a849b2ab0..44cf6462f7d794867ff9ffc71bd4058ecdcc8bbb 100644 (file)
@@ -6,7 +6,7 @@ blddir = 'bin'
 import sys
 sys.path.insert(0, srcdir+"/buildtools/wafsamba")
 import wafsamba
-import Options, os
+import Options, os, preproc
 
 def set_options(opt):
     opt.tool_options('compiler_cc')
@@ -35,6 +35,12 @@ def configure(conf):
     conf.env.hlist = []
     conf.env.srcdir = conf.srcdir
 
+    # during the configure checks we want the waf dependency checker
+    # to go into system includes. This ensures that if you add/remove
+    # a system library, that 'waf configure' will detect that, and
+    # it won't be fooled by the waf cache
+    preproc.go_absolute = True
+
     if Options.options.timestamp_dependencies:
         conf.ENABLE_TIMESTAMP_DEPENDENCIES()