build: fixed the build without sasl libraries
authorAndrew Tridgell <tridge@samba.org>
Tue, 16 Mar 2010 22:05:43 +0000 (09:05 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:49 +0000 (20:26 +1000)
We need to only enable the cyrus_sasl module if we have sasl/sasl.h

source4/auth/gensec/wscript_build
source4/auth/wscript_configure

index 444608d644712e66a743f418f0bcf4a79502334a..b9fa5f4c4958c33266b36ea29b6ef1e7037e3560 100644 (file)
@@ -28,7 +28,8 @@ bld.SAMBA_MODULE('cyrus_sasl',
        source='cyrus_sasl.c',
        subsystem='gensec',
        init_function='gensec_sasl_init',
-       deps='CREDENTIALS SASL'
+       deps='CREDENTIALS SASL',
+        enabled=bld.CONFIG_SET('HAVE_SASL')
        )
 
 
index 842870cca34b8442aa380aef39db523c25492e81..7a932697c6ca0c74e103331844d6c067efee151b 100644 (file)
@@ -1,6 +1,6 @@
 conf.CHECK_HEADERS('security/pam_appl.h')
 conf.CHECK_FUNCS_IN('pam_start', 'pam')
 
-conf.CHECK_HEADERS('sasl/sasl.h')
-conf.CHECK_FUNCS_IN('sasl_client_init', 'sasl2')
-
+if (conf.CHECK_HEADERS('sasl/sasl.h') and
+    conf.CHECK_FUNCS_IN('sasl_client_init', 'sasl2')):
+    conf.DEFINE('HAVE_SASL', 1)