summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
Diffstat (limited to 'lang')
-rw-r--r--lang/php4/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/php4/Makefile b/lang/php4/Makefile
index 9b3e1b088617..93566a14846b 100644
--- a/lang/php4/Makefile
+++ b/lang/php4/Makefile
@@ -529,7 +529,9 @@ CONFIGURE_ARGS+=--with-zlib=yes
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_APACHE)
-APXS?= ${LOCALBASE}/sbin/apxs
+.if exists(${LOCALBASE}/include/apache2/apr.h)
+WITH_APACHE2= yes
+.endif
.if defined(WITH_APACHE2)
APACHE_PORT?= ${PORTSDIR}/www/apache2
CONFIGURE_ARGS+=--with-apxs2=${APXS}