5a3797e
diff -up dhcp-4.2.0/configure.ac.ldap dhcp-4.2.0/configure.ac
5a3797e
--- dhcp-4.2.0/configure.ac.ldap	2010-07-10 05:25:51.000000000 +0200
5a3797e
+++ dhcp-4.2.0/configure.ac	2010-07-21 13:06:20.000000000 +0200
5a3797e
@@ -521,6 +521,8 @@ AC_ARG_WITH(ldapcrypto,
5a3797e
 if test x$ldap = xyes || test x$ldapcrypto = xyes ; then
5a3797e
     AC_SEARCH_LIBS(ldap_initialize, [ldap], ,
5a3797e
 		   AC_MSG_FAILURE([*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?]))
5a3797e
+    AC_SEARCH_LIBS(ber_pvt_opt_on, [lber], ,
5a3797e
+		   AC_MSG_FAILURE([*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?]))
5a3797e
 
5a3797e
     if test x$ldapcrypto = xyes ; then
5a3797e
 	AC_SUBST(LDAP_CFLAGS, ["-DLDAP_CONFIGURATION -DLDAP_USE_SSL"])