summaryrefslogtreecommitdiff
path: root/dynconfig
diff options
context:
space:
mode:
Diffstat (limited to 'dynconfig')
-rwxr-xr-xdynconfig/wscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/dynconfig/wscript b/dynconfig/wscript
index 35af13db7e..d6b07efb5d 100755
--- a/dynconfig/wscript
+++ b/dynconfig/wscript
@@ -107,9 +107,12 @@ Build.BuildContext.dynconfig_cflags = dynconfig_cflags
def build(bld):
cflags = bld.dynconfig_cflags()
+ version_header = 'version.h'
+ if not os.getenv('TOPLEVEL_BUILD'):
+ version_header = 'include/version.h'
bld.SAMBA_SUBSYSTEM('DYNCONFIG',
'dynconfig.c',
deps='replace talloc',
- public_headers=os_path_relpath(os.path.join(Options.launch_dir, 'version.h'), bld.curdir),
+ public_headers=os_path_relpath(os.path.join(Options.launch_dir, version_header), bld.curdir),
header_path='samba',
cflags=cflags)