Right, that was the original fail message. The problem is the ldap module's configuration checks for sasl_version *in libldap* but it is a function that should only be in libsasl2. Right after that, the extension adds sasl2, not ldap:
PHP_CHECK_LIBRARY(ldap, sasl_version, [ PHP_ADD_INCLUDE($LDAP_SASL_INCDIR) PHP_ADD_LIBRARY_WITH_PATH(sasl2, $LDAP_SASL_LIBDIR, LDAP_SHARED_LIBADD) AC_DEFINE(HAVE_LDAP_SASL, 1, [LDAP SASL support]) ], [ AC_MSG_ERROR([LDAP SASL check failed. Please check config.log for more information.])
Hence changing it to check against libsasl2... before adding.. libsasl2.
Right, that was the original fail message. The problem is the ldap module's configuration checks for sasl_version *in libldap* but it is a function that should only be in libsasl2. Right after that, the extension adds sasl2, not ldap:
PHP_CHECK_ LIBRARY( ldap, sasl_version, ADD_INCLUDE( $LDAP_SASL_ INCDIR) ADD_LIBRARY_ WITH_PATH( sasl2, $LDAP_SASL_LIBDIR, LDAP_SHARED_LIBADD) DEFINE( HAVE_LDAP_ SASL, 1, [LDAP SASL support]) MSG_ERROR( [LDAP SASL check failed. Please check config.log for more information.])
[
PHP_
PHP_
AC_
], [
AC_
Hence changing it to check against libsasl2... before adding.. libsasl2.