1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-24 21:49:29 +03:00

build: put config.h in top dir by default

This commit is contained in:
Andrew Tridgell
2010-02-23 08:30:28 +11:00
parent 1cfc330156
commit b1d24c7a8f

View File

@ -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)