summaryrefslogtreecommitdiff
path: root/server/external
diff options
context:
space:
mode:
Diffstat (limited to 'server/external')
-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 5e817b82..a17ed7e9 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
+