diff options
author | Stefan Fritsch <sf@apache.org> | 2011-08-05 08:01:31 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-08-05 08:01:31 +0000 |
commit | 2d0c55080a315b2edf482d5519c25621c430d7f5 (patch) | |
tree | 537dc0f26ca0dec1c6e1f0709690f410538a6114 /acinclude.m4 | |
parent | ab062bfbab08965fb1b7b407c9dfb71c209e04fb (diff) | |
download | httpd-2d0c55080a315b2edf482d5519c25621c430d7f5.tar.gz |
Enable ldap modules in 'all' and 'most' selections if ldap is compiled into
apr-util
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1154114 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 19cd90d1c3..9519ee1408 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -740,3 +740,24 @@ if test "$ap_cv_void_ptr_lt_long" = "yes"; then AC_MSG_ERROR([Size of "void *" is less than size of "long"]) fi ]) + +dnl +dnl APACHE_CHECK_APR_HAS_LDAP +dnl +dnl Check if APR_HAS_LDAP is 1 +dnl Unfortunately, we can't use APR_CHECK_APR_DEFINE (because it only includes apr.h) +dnl or APR_CHECK_DEFINE (because it only checks for defined'ness and not for 0/1). +dnl +AC_DEFUN([APACHE_CHECK_APR_HAS_LDAP], [ + AC_CACHE_CHECK([for ldap support in apr/apr-util],ac_cv_APR_HAS_LDAP,[ + apache_old_cppflags="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $INCLUDES" + AC_EGREP_CPP(YES_IS_DEFINED, [ +#include <apr_ldap.h> +#if APR_HAS_LDAP +YES_IS_DEFINED +#endif + ], ac_cv_APR_HAS_LDAP=yes, ac_cv_APR_HAS_LDAP=no) + CPPFLAGS="$apache_old_cppflags" + ]) +]) |