1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From: Stefano Zacchiroli <zack@upsilon.cc>
Date: Mon, 8 Sep 2008 21:55:44 +0200
Subject: Force major version for apache to 2
Rationale: in Debian we currently only build against apache 2, and
forcing it enables relaxing the build-dependency against
apache2-mpm-worker (one of the packages shipping /usr/sbin/apache2)
Signed-off-by: Stefano Zacchiroli <zack@upsilon.cc>
---
configure | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 281c918..33147c5 100755
--- a/configure
+++ b/configure
@@ -962,8 +962,8 @@ if [ $enable_apache -gt 0 ]; then
apache=`get_path apache`
fi
- if [ -x "$apxs" ] && [ -x "$apache" ]; then
- apache_major=`$apache -v | head -n1 | sed -e "s,.*/\([1-9]\).*,\1,"`
+ if [ -x "$apxs" ] ; then
+ apache_major=2
apache_libdir="`$apxs -q LIBEXECDIR`"
apache_incdir="`$apxs -q INCLUDEDIR`"
apache_confdir="`$apxs -q SYSCONFDIR`"
|