diff options
-rw-r--r-- | src/external/ldap.m4 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/external/ldap.m4 b/src/external/ldap.m4 index f2435094..8899df9d 100644 --- a/src/external/ldap.m4 +++ b/src/external/ldap.m4 @@ -64,7 +64,10 @@ SAVE_CFLAGS=$CFLAGS SAVE_LIBS=$LIBS CFLAGS="$CFLAGS $OPENLDAP_CFLAGS" LIBS="$LIBS $OPENLDAP_LIBS" -AC_CHECK_FUNCS([ldap_control_create ldap_init_fd]) +AC_CHECK_FUNCS([ldap_control_create ldap_init_fd \ + ldap_create_deref_control_value \ + ldap_parse_derefresponse_control \ + ldap_derefresponse_free]) AC_CHECK_MEMBERS([struct ldap_conncb.lc_arg], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( @@ -79,6 +82,11 @@ AC_CHECK_MEMBERS([struct ldap_conncb.lc_arg], [])], [], [[#include <ldap.h>]]) +AC_CHECK_TYPE([LDAPDerefRes], + [], + [AC_MSG_ERROR([The OpenLDAP version found does not contain the required type LDAPDerefRes])], + [[#include <ldap.h>]]) + CFLAGS=$SAVE_CFLAGS LIBS=$SAVE_LIBS |