diff options
Diffstat (limited to 'dev-php/mod_php/mod_php-4.3.2-r2.ebuild')
-rw-r--r-- | dev-php/mod_php/mod_php-4.3.2-r2.ebuild | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/dev-php/mod_php/mod_php-4.3.2-r2.ebuild b/dev-php/mod_php/mod_php-4.3.2-r2.ebuild index 35bfb12f6a3f..43e452b367fc 100644 --- a/dev-php/mod_php/mod_php-4.3.2-r2.ebuild +++ b/dev-php/mod_php/mod_php-4.3.2-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php/mod_php/mod_php-4.3.2-r2.ebuild,v 1.1 2003/06/10 19:58:08 robbat2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-php/mod_php/mod_php-4.3.2-r2.ebuild,v 1.2 2003/06/12 10:24:05 robbat2 Exp $ inherit php eutils @@ -25,9 +25,16 @@ has_version '=net-www/apache-2*' && HAVE_APACHE2=1 [ -n "${HAVE_APACHE1}" ] && [ -n "${HAVE_APACHE2}" ] && APACHEVER='both' case "${APACHEVER}" in - 1) break ;; - 2) break ;; - both) use apache2 && APACHEVER=2 || APACHEVER=1 ;; + 1) einfo 'Apache1 only detected' ;; + 2) einfo 'Apache2 only detected';; + both) + if [ "`use apache2`" ]; then + einfo "Multiple Apache versions detected, using Apache2 (USE=apache2)" + APACHEVER=2 + else + einfo 'Multiple Apache versions detected, using Apache1 (USE=-apache2)' + APACHEVER=1 + fi ;; *) MSG="Unknown Apache version!"; eerror $MSG ; die $MSG ;; esac |