From: Andrew Tridgell Date: Mon, 22 Feb 2010 21:30:28 +0000 (+1100) Subject: build: put config.h in top dir by default X-Git-Tag: samba-3.6.0pre1~3750 X-Git-Url: http://git.samba.org/samba.git/?p=ira%2Fwip.git;a=commitdiff_plain;h=b1d24c7a8ffcdc3e7041a7e89474b9327bc8a26c build: put config.h in top dir by default --- diff --git a/lib/replace/wafsamba.py b/lib/replace/wafsamba.py index 96e8e7645de..7796dc25bfa 100644 --- a/lib/replace/wafsamba.py +++ b/lib/replace/wafsamba.py @@ -51,8 +51,12 @@ def CHECK_FUNCS_IN(conf, list, library): ################################################# # write out config.h in the right directory @conf -def SAMBA_CONFIG_H(conf, path='config.h'): - if os.path.normpath(conf.curdir) == os.path.normpath(os.environ.get('PWD')): +def SAMBA_CONFIG_H(conf, path=None): + if os.path.normpath(conf.curdir) != os.path.normpath(os.environ.get('PWD')): + return + if path is None: + conf.write_config_header('config.h', top=True) + else: conf.write_config_header(path)