diff options
author | Günther Deschner <gd@samba.org> | 2011-02-04 16:49:30 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-02-07 10:01:50 +0100 |
commit | 72910c34dff23958587f73ac27e38d6e92cb7bea (patch) | |
tree | 06a4f9f046b0f234292b69e6f4610f14d7301204 /source3/wscript | |
parent | 4d3de16b8b9e69408582ea9aa995b44b7a1e83f4 (diff) | |
download | samba-72910c34dff23958587f73ac27e38d6e92cb7bea.tar.gz samba-72910c34dff23958587f73ac27e38d6e92cb7bea.tar.bz2 samba-72910c34dff23958587f73ac27e38d6e92cb7bea.zip |
s3-waf: add support for iprint.
Guenther
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 8 |
1 files changed, 8 insertions, 0 deletions
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') |