summaryrefslogtreecommitdiff
path: root/source4/heimdal_build/wscript_configure
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-16 01:49:41 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-16 01:32:06 +0000
commit6852cc4a7a5601261ba31ee05388a4078e69c77c (patch)
treea4dc4dd64278ae87780b56351923ad6edd461b5a /source4/heimdal_build/wscript_configure
parent2e038a78fdcc9dc8a9f65de48176323ad68a3420 (diff)
downloadsamba-6852cc4a7a5601261ba31ee05388a4078e69c77c.tar.gz
samba-6852cc4a7a5601261ba31ee05388a4078e69c77c.tar.bz2
samba-6852cc4a7a5601261ba31ee05388a4078e69c77c.zip
heimdal_build: Put version objects in a separate subsystem.
Diffstat (limited to 'source4/heimdal_build/wscript_configure')
-rw-r--r--source4/heimdal_build/wscript_configure16
1 files changed, 10 insertions, 6 deletions
diff --git a/source4/heimdal_build/wscript_configure b/source4/heimdal_build/wscript_configure
index b51bc71661..e8f50841c6 100644
--- a/source4/heimdal_build/wscript_configure
+++ b/source4/heimdal_build/wscript_configure
@@ -65,19 +65,23 @@ conf.DEFINE('SAMBA4_INTERNAL_HEIMDAL', 1)
if conf.CHECK_BUNDLED_SYSTEM('com_err', checkfunctions='com_right_r com_err', headers='com_err.h'):
conf.define('USING_SYSTEM_COM_ERR', 1)
-def check_bundled_heimdal_lib(name, functions='', headers='', onlyif=None):
+def check_system_heimdal_lib(name, functions='', headers='', onlyif=None):
# Only use system library if the user requested the bundled one not be used.
if conf.LIB_MAY_BE_BUNDLED(name):
- return
+ return False
setattr(conf.env, "CPPPATH_%s" % name.upper(), ["/usr/include/heimdal"])
setattr(conf.env, "LIBPATH_%s" % name.upper(), ["/usr/lib/heimdal"])
conf.CHECK_BUNDLED_SYSTEM(name, checkfunctions=functions, headers=headers,
onlyif=onlyif)
conf.define('USING_SYSTEM_%s' % name.upper(), 1)
-
-
-check_bundled_heimdal_lib("roken")
-check_bundled_heimdal_lib("wind", "wind_stringprep", "wind.h", onlyif="roken")
+ return True
+
+if check_system_heimdal_lib("roken"):
+ conf.env.CPPPATH_ROKEN_HOSTCC = conf.env.CPPPATH_ROKEN
+ conf.env.LIBPATH_ROKEN_HOSTCC = conf.env.LIBPATH_ROKEN
+ conf.env.LIB_ROKEN_HOSTCC = "roken"
+ conf.SET_TARGET_TYPE("ROKEN_HOSTCC", 'SYSLIB')
+check_system_heimdal_lib("wind", "wind_stringprep", "wind.h", onlyif="roken")
# disable trying to use an external compile_et until we have a configure
# test that checks that the system one actually works. On some systems it