summaryrefslogtreecommitdiff
path: root/www/apache2/Makefile
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2005-05-09 21:57:05 +0000
committerdillo <dillo@pkgsrc.org>2005-05-09 21:57:05 +0000
commit8230b6252627bd4dcaba4c77495962adc38b1dc0 (patch)
treed252234e84fb1e1221edfdd6a41e5f58db28a90e /www/apache2/Makefile
parentbe2e5dd266cbb5e58ef19d4dafc4a56261ba3d28 (diff)
downloadpkgsrc-8230b6252627bd4dcaba4c77495962adc38b1dc0.tar.gz
Check if a variable is defined before matching against it in .if
Noted by kristerw.
Diffstat (limited to 'www/apache2/Makefile')
-rw-r--r--www/apache2/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/apache2/Makefile b/www/apache2/Makefile
index 421926b6b4e..6b6ba96311f 100644
--- a/www/apache2/Makefile
+++ b/www/apache2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.71 2005/04/25 09:13:14 adam Exp $
+# $NetBSD: Makefile,v 1.72 2005/05/09 21:57:05 dillo Exp $
.include "Makefile.common"
@@ -51,7 +51,7 @@ DFLT_APACHE_MODULES+= proxy proxy_connect proxy_ftp proxy_http
DFLT_APACHE_MODULES+= ssl deflate
# LDAP support
-.if !empty(PKG_OPTIONS.apr:Mldap)
+.if defined(PKG_OPTIONS.apr) && !empty(PKG_OPTIONS.apr:Mldap)
DFLT_APACHE_MODULES+= ldap auth_ldap
.endif