1 diff --git a/build/apu-conf.m4 b/build/apu-conf.m4
2 index 8943f10..aa44305 100644
3 --- a/build/apu-conf.m4
4 +++ b/build/apu-conf.m4
5 @@ -279,6 +279,7 @@ AC_ARG_WITH(ldap,[ --with-ldap=library ldap library to use],
6 APU_FIND_LDAPLIB("ldap", "-llber -lresolv -lsocket -lnsl")
7 APU_FIND_LDAPLIB("ldap", "-ldl -lpthread")
9 + APU_FIND_LDAPLIB($LIBLDAP, "-llber -lcrypto -lssl -lsasl2")
10 APU_FIND_LDAPLIB($LIBLDAP)
11 APU_FIND_LDAPLIB($LIBLDAP, "-lresolv")
12 APU_FIND_LDAPLIB($LIBLDAP, "-lresolv -lsocket -lnsl")