From: Stefan Metzmacher Date: Mon, 16 Jul 2007 16:22:05 +0000 (+0000) Subject: r23900: LDAP_OPT_SOCKBUF doesn't exists on all platforms X-Git-Tag: samba-4.0.0alpha6~801^2~5345 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=164f75efea51f4efe5b83bae31f3114ec270c8f4;p=thirdparty%2Fsamba.git r23900: LDAP_OPT_SOCKBUF doesn't exists on all platforms metze (This used to be commit 8455c65be34186e73283bb60b1ef3441d0338d55) --- diff --git a/source3/configure.in b/source3/configure.in index b824d9d37e0..d1ef464202e 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -3481,7 +3481,15 @@ if test x"$with_ldap_support" != x"no"; then # If ber_sockbuf_add_io() is available we can add # SASL wrapping hooks AC_CHECK_FUNC_EXT(ber_sockbuf_add_io,$LDAP_LIBS) - if test x"$ac_cv_func_ext_ber_sockbuf_add_io" = x"yes"; then + + AC_CACHE_CHECK([for LDAP_OPT_SOCKBUF],samba_cv_HAVE_LDAP_OPT_SOCKBUF,[ + AC_TRY_COMPILE([#include ], + [int val = LDAP_OPT_SOCKBUF;], + samba_cv_HAVE_LDAP_OPT_SOCKBUF=yes, + samba_cv_HAVE_LDAP_OPT_SOCKBUF=no)]) + + if test x"$ac_cv_func_ext_ber_sockbuf_add_io" = x"yes" -a \ + x"$samba_cv_HAVE_LDAP_OPT_SOCKBUF" = x"yes"; then AC_DEFINE(HAVE_LDAP_SASL_WRAPPING, 1, [Support for SASL wrapping]) fi