summaryrefslogtreecommitdiffstats
path: root/modules/aaa
diff options
context:
space:
mode:
authorGuenter Knauf <fuankg@apache.org>2011-10-29 20:36:40 +0200
committerGuenter Knauf <fuankg@apache.org>2011-10-29 20:36:40 +0200
commit7163bcd22cee9e2b96224f33a9e608624926c3c7 (patch)
tree1e096aef1ba1a85d363da23cf60f6227542c242e /modules/aaa
parentRemoved prototype which had no implementation. (diff)
downloadapache2-7163bcd22cee9e2b96224f33a9e608624926c3c7.tar.xz
apache2-7163bcd22cee9e2b96224f33a9e608624926c3c7.zip
Some NetWare build tweaks.
Added check for APR_HAS_LDAP; renamed some build vars. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1194967 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/aaa')
-rw-r--r--modules/aaa/NWGNUmakefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/aaa/NWGNUmakefile b/modules/aaa/NWGNUmakefile
index 7320af5b50..fdb23f6b52 100644
--- a/modules/aaa/NWGNUmakefile
+++ b/modules/aaa/NWGNUmakefile
@@ -18,6 +18,11 @@ include $(AP_WORK)/build/NWGNUhead.inc
#
# Make sure all needed macro's are defined
#
+ifeq "$(wildcard $(APRUTIL)/include/apr_ldap.h)" "$(APRUTIL)/include/apr_ldap.h"
+WITH_LDAP = $(shell $(AWK) '/^\#define APR_HAS_LDAP /{print $$3}' $(APRUTIL)/include/apr_ldap.h)
+else
+WITH_LDAP = 0
+endif
#
# These directories will be at the beginning of the include list, followed by
@@ -168,10 +173,11 @@ TARGET_nlm = \
$(OBJDIR)/accesscompat.nlm \
$(EOLIST)
-# If LDAPSDK has been defined then build the authnz_ldap module
+# If WITH_LDAP and LDAPSDK have been defined then build the authnz_ldap module
+ifeq "$(WITH_LDAP)" "1"
ifneq "$(LDAPSDK)" ""
-TARGET_nlm += $(OBJDIR)/authnzldap.nlm \
- $(EOLIST)
+TARGET_nlm += $(OBJDIR)/authnzldap.nlm
+endif
endif
#