]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - configure.in
some more exception correctness
[thirdparty/pdns.git] / configure.in
index 6d8c4d95034fabed86fac9c94376debbeef3db4a..b30a8f287832c2150186102998781ce37c619b8e 100644 (file)
@@ -1,6 +1,6 @@
 dnl intro
 AC_INIT(pdns/receiver.cc)
-AM_INIT_AUTOMAKE(pdns, 2.9.21)
+AM_INIT_AUTOMAKE(pdns, 2.9.22-snapshot)
 AC_CANONICAL_HOST
 AM_CONFIG_HEADER(config.h)
 AC_C_BIGENDIAN 
@@ -180,7 +180,7 @@ AC_ARG_ENABLE(gcc-skip-locking,
 
 AC_MSG_CHECKING(whether we will be building the recursor)
 AC_ARG_ENABLE(recursor, 
- [  --enable-recursor  If we should build the server],
+ [  --enable-recursor  If we should build the recursor],
        enable_recursor=$enableval,
        enable_recursor=no )
 
@@ -226,6 +226,36 @@ do
                pdns )
                        needmysql=yes
                ;;
+               ldap)
+                       AC_CHECK_HEADERS([ldap.h], , [AC_MSG_ERROR([ldap header (ldap.h) not found])])
+                       AC_CHECK_HEADERS([lber.h], , [AC_MSG_ERROR([ldap header (lber.h) not found])])
+                       AC_SUBST([LIBLDAP])
+                       AC_CHECK_LIB(
+                               [ldap_r], [ldap_set_option],
+                               [AC_DEFINE([HAVE_LIBLDAP_R], 1, [Have -lldap_r]) LIBLDAP="ldap_r"],
+                               [AC_CHECK_LIB(
+                                       [ldap], [ldap_set_option],
+                                       [AC_DEFINE([HAVE_LIBLDAP], 1, [Have -lldap]) LIBLDAP="ldap"],
+                                       [AC_MSG_ERROR([ldap library (libldap) not found])]
+                               )]
+                       )
+                       AC_CHECK_LIB(
+                               [$LIBLDAP], [ldap_initialize],
+                               [AC_DEFINE([HAVE_LDAP_INITIALIZE], 1, [Define to 1 if you have ldap_initialize])]
+                       )
+                       AC_CHECK_LIB(
+                               [$LIBLDAP], [ldap_sasl_bind],
+                               [AC_DEFINE([HAVE_LDAP_SASL_BIND], 1, [Define to 1 if you have ldap_sasl_bind])]
+                       )
+               ;;
+               opendbx)
+                       AC_CHECK_HEADERS([odbx.h], , [AC_MSG_ERROR([opendbx header (odbx.h) not found])])
+                       AC_SUBST([LIBOPENDBX])
+                       AC_CHECK_LIB(
+                               [opendbx], [odbx_init],
+                               [AC_DEFINE([HAVE_LIBOPENDBX], 1, [Have -lopendbx]) LIBOPENDBX="opendbx"]
+                       )
+               ;;
        esac
 done