diff options
author | Günther Deschner <gd@samba.org> | 2010-12-07 12:20:09 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-12-07 13:07:51 +0100 |
commit | 6b1ba79fbf64afd7a8bc77eec7c8bdce48bb620f (patch) | |
tree | 8252c59a8330e62e68ed1d2890a3aaaf2e6e8042 | |
parent | 0745f3fef920d81228366ecaa90f224718ad29dc (diff) | |
download | samba-6b1ba79fbf64afd7a8bc77eec7c8bdce48bb620f.tar.gz samba-6b1ba79fbf64afd7a8bc77eec7c8bdce48bb620f.tar.bz2 samba-6b1ba79fbf64afd7a8bc77eec7c8bdce48bb620f.zip |
s3-waf: add support for --with-dnsupdate.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Dec 7 13:07:51 CET 2010 on sn-devel-104
-rw-r--r-- | source3/libaddns/wscript_build | 2 | ||||
-rw-r--r-- | source3/wscript | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/source3/libaddns/wscript_build b/source3/libaddns/wscript_build index 24f8c74ced..69a4716245 100644 --- a/source3/libaddns/wscript_build +++ b/source3/libaddns/wscript_build @@ -2,6 +2,6 @@ bld.SAMBA_LIBRARY('addns', source='dnsrecord.c dnsutils.c dnssock.c dnsgss.c dnsmarshall.c error.c', - public_deps='talloc krb5 k5crypto com_err gssapi gssapi_krb5', + public_deps='talloc krb5 k5crypto com_err gssapi gssapi_krb5 uuid', private_library=True, vars=locals()) diff --git a/source3/wscript b/source3/wscript index b91c6fa41d..264bda2de1 100644 --- a/source3/wscript +++ b/source3/wscript @@ -62,6 +62,7 @@ def set_options(opt): opt.SAMBA3_ADD_OPTION('avahi', with_name="enable", without_name="disable") opt.SAMBA3_ADD_OPTION('iconv') opt.SAMBA3_ADD_OPTION('acl-support') + opt.SAMBA3_ADD_OPTION('dnsupdate') def configure(conf): @@ -855,7 +856,15 @@ int i; i = PAM_RADIO_TYPE; execute=True, mandatory=True, msg="Checking whether setuidx is available") - + if Options.options.with_dnsupdate: + conf.CHECK_HEADERS('uuid/uuid.h') + conf.CHECK_FUNCS_IN('uuid_generate', 'uuid') + if not conf.CONFIG_SET('HAVE_UUID_UUID_H') and not conf.CONFIG_SET('HAVE_UUID_GENERATE'): + print "--with-dnsupdate=yes but uuid support not sufficient" + sys.exit(1) + conf.DEFINE('WITH_DNS_UPDATES', 1) + else: + conf.SET_TARGET_TYPE('uuid', 'EMPTY') conf.SAMBA_CONFIG_H('include/config.h') |