s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
[samba.git] / source4 / selftest / wscript
index 6c48b8f65b2b9f8b92bd58ce8fdbbe80a06ab896..b588648af93ea3703350d39bcfa5540a453b4976 100644 (file)
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
 # selftest main code.
 
 import Scripting, os, Options, Utils, Environment, optparse, sys
@@ -75,6 +77,9 @@ def cmd_testonly(opt):
     # this is needed for systems without rpath, or with rpath disabled
     ADD_LD_LIBRARY_PATH('bin/shared')
 
+    # tell build system where to find config.h
+    os.environ['CONFIG_H'] = 'bin/default/source4/include/config.h'
+
     st_done = os.path.join(env.SELFTEST_PREFIX, 'st_done')
     if os.path.exists(st_done):
         os.unlink(st_done)