From b1d24c7a8ffcdc3e7041a7e89474b9327bc8a26c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 23 Feb 2010 08:30:28 +1100 Subject: build: put config.h in top dir by default --- lib/replace/wafsamba.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/replace') diff --git a/lib/replace/wafsamba.py b/lib/replace/wafsamba.py index 96e8e7645d..7796dc25bf 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) -- cgit