From 72910c34dff23958587f73ac27e38d6e92cb7bea Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 4 Feb 2011 16:49:30 +0100 Subject: s3-waf: add support for iprint. Guenther --- source3/wscript | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/wscript') diff --git a/source3/wscript b/source3/wscript index 61e00aadac..3f226a8bbc 100644 --- a/source3/wscript +++ b/source3/wscript @@ -41,6 +41,7 @@ def set_options(opt): opt.SAMBA3_ADD_OPTION('krb5') opt.SAMBA3_ADD_OPTION('ldap') opt.SAMBA3_ADD_OPTION('cups', with_name="enable", without_name="disable") + opt.SAMBA3_ADD_OPTION('iprint', with_name="enable", without_name="disable") opt.SAMBA3_ADD_OPTION('merged-build', with_name="enable", without_name="disable") opt.SAMBA3_ADD_OPTION('pam') opt.SAMBA3_ADD_OPTION('quotas') @@ -548,6 +549,13 @@ return acl_get_perm_np(permset_d, perm); # define an empty subsystem for cups, to allow it to be used as an empty dependency conf.SET_TARGET_TYPE('cups', 'EMPTY') + if Options.options.with_iprint: + if conf.CONFIG_SET('HAVE_CUPS'): + conf.DEFINE('HAVE_IPRINT', '1') + else: + print "--enable-iprint=yes but cups support not sufficient" + sys.exit(1) + # Check for LDAP if Options.options.with_ldap: conf.CHECK_HEADERS('ldap.h lber.h') -- cgit