Comment 3 for bug 676672

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

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.