s4-waf: remove PYTHONDIR from config.h
authorAndrew Tridgell <tridge@samba.org>
Wed, 31 Mar 2010 07:05:57 +0000 (18:05 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:21 +0000 (20:27 +1000)
prevent unnecessary rebuilds

source4/wscript

index c9ef96c77d56416de68b9bb5004b1b8c67caf668..b0e2368547748ef9e98f7fce5540332920a84eaf 100644 (file)
@@ -73,6 +73,9 @@ def configure(conf):
     conf.sub_config('lib/smbreadline')
     conf.sub_config('../pidl')
 
+    # we don't want PYTHONDIR in config.h, as otherwise changing
+    # --prefix causes a complete rebuild
+    del(conf.env.defines['PYTHONDIR'])
     conf.SAMBA_CONFIG_H('include/config.h')