summaryrefslogtreecommitdiff
path: root/wscript_configure_system_mitkrb5
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2012-05-24 16:28:31 +0300
committerAlexander Bokovoy <ab@samba.org>2012-05-24 18:15:36 +0200
commitb452fb30f79c5effa508b891bcb453de8f452286 (patch)
treedc90edefe58e2c8742373d428de32a56bb8dcdce /wscript_configure_system_mitkrb5
parent72029d5547766787afb0a76c3959d1820388e28e (diff)
downloadsamba-b452fb30f79c5effa508b891bcb453de8f452286.tar.gz
samba-b452fb30f79c5effa508b891bcb453de8f452286.tar.bz2
samba-b452fb30f79c5effa508b891bcb453de8f452286.zip
waf: for MIT krb5 build require kerberos version above 1.9
MIT krb5 implementation provides sufficient support for features used in Samba 4 starting with 1.9. Require version above when using system MIT krb5 build. Autobuild-User: Alexander Bokovoy <ab@samba.org> Autobuild-Date: Thu May 24 18:15:36 CEST 2012 on sn-devel-104
Diffstat (limited to 'wscript_configure_system_mitkrb5')
-rw-r--r--wscript_configure_system_mitkrb59
1 files changed, 8 insertions, 1 deletions
diff --git a/wscript_configure_system_mitkrb5 b/wscript_configure_system_mitkrb5
index 7523103556..805c45293b 100644
--- a/wscript_configure_system_mitkrb5
+++ b/wscript_configure_system_mitkrb5
@@ -1,4 +1,4 @@
-import Logs, Options
+import Logs, Options, sys
# Check for kerberos
have_gssapi=False
@@ -30,6 +30,13 @@ if conf.env.KRB5_CONFIG:
if conf.env.KRB5_VENDOR != 'heimdal':
conf.define('USING_SYSTEM_KRB5', 1)
del conf.env.HEIMDAL_KRB5_CONFIG
+ kversion = conf.cmd_and_log("%(path)s --version" % dict(path=conf.env.KRB5_CONFIG), dict()).strip()
+ kversion_split = map(int, kversion.split(" ")[-1].split("."))
+ if kversion_split < [1, 9]:
+ Logs.error('ERROR: MIT krb5 build requires at least 1.9.0. %s is found and cannot be used' % (kversion))
+ sys.exit(1)
+ else:
+ Logs.info('%s is detected, MIT krb5 build can proceed' % (kversion))
conf.check_cfg(args="--cflags --libs", package="com_err", uselib_store="com_err")
conf.CHECK_FUNCS_IN('_et_list', 'com_err')