]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Some fixes for LDAP
authorShawn Routhier <sar@isc.org>
Fri, 18 Feb 2011 18:44:42 +0000 (18:44 +0000)
committerShawn Routhier <sar@isc.org>
Fri, 18 Feb 2011 18:44:42 +0000 (18:44 +0000)
[ISC-Bugs #21783] - Include lber library when building ldap
[ISC-Bugs #22888] - Enable the ldap code when buidling common

RELNOTES
common/Makefile.am
configure.ac

index 325482a1a7cb3949d7a55d4dd9bc0a9d703f672a..5bdf94a50aaecbfb938b51d2efab644c11a87ebd 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -55,6 +55,11 @@ work on other platforms. Please report any problems and suggested fixes to
   when removing the ddns information.  
   [ISC-Bugs #23103]
 
+- Some fixes for LDAP
+  [ISC-Bugs #21783] - Include lber library when building ldap
+  [ISC-Bugs #22888] - Enable the ldap code when buidling common
+  The above fixes are from Jiri Popelka at Red Hat.
+
                        Changes since 4.2.0
 
 - 'get-host-names true;' now also works even if 'use-host-decl-names true;'
index a771df37331d55706003cb4a97789d451c5c6749..e4d4f9c85ae98ead45dd04b51d5b1b4d6c0b5ce3 100644 (file)
@@ -1,4 +1,5 @@
 AM_CPPFLAGS = -I.. -DLOCALSTATEDIR='"@localstatedir@"'
+AM_CFLAGS = $(LDAP_CFLAGS)
 
 noinst_LIBRARIES = libdhcp.a
 libdhcp_a_SOURCES = alloc.c bpf.c comapi.c conflex.c ctrace.c discover.c \
index 86458b1e4bc60501803e9b17ac1fe6088541e996..6418023bd66a7e075019a13d9d9c8f34e8a89931 100644 (file)
@@ -523,6 +523,8 @@ AC_ARG_WITH(ldapcrypto,
 if test x$ldap = xyes || test x$ldapcrypto = xyes ; then
     AC_SEARCH_LIBS(ldap_initialize, [ldap], ,
                   AC_MSG_FAILURE([*** Cannot find ldap_initialize with -lldap - do you need to install an OpenLDAP2 Devel package?]))
+    AC_SEARCH_LIBS(ber_pvt_opt_on, [lber], ,
+                  AC_MSG_FAILURE([*** Cannot find ber_pvt_opt_on with -llber - do you need to install an OpenLDAP2 Devel package?]))
 
     if test x$ldapcrypto = xyes ; then
        AC_SUBST(LDAP_CFLAGS, ["-DLDAP_CONFIGURATION -DLDAP_USE_SSL"])