summaryrefslogtreecommitdiffstats
path: root/server/external/ldap.m4
diff options
context:
space:
mode:
Diffstat (limited to 'server/external/ldap.m4')
-rw-r--r--server/external/ldap.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/server/external/ldap.m4 b/server/external/ldap.m4
index 5e817b824..a17ed7e9c 100644
--- a/server/external/ldap.m4
+++ b/server/external/ldap.m4
@@ -38,3 +38,12 @@ else
fi
AC_SUBST(OPENLDAP_LIBS)
+
+SAVE_CFLAGS=$CFLAGS
+SAVE_LIBS=$LIBS
+CFLAGS="$CFLAGS $OPENLDAP_CFLAGS"
+LIBS="$LIBS $OPENLDAP_LIBS"
+AC_CHECK_FUNCS([ldap_control_create])
+CFLAGS=$SAVE_CFLAGS
+LIBS=$SAVE_LIBS
+