Lines 15-22
Link Here
|
15 |
LICENSE="GPL-2" |
15 |
LICENSE="GPL-2" |
16 |
SLOT="0" |
16 |
SLOT="0" |
17 |
KEYWORDS="~x86 ~amd64 sparc" |
17 |
KEYWORDS="~x86 ~amd64 sparc" |
|
|
18 |
IUSE="apache2" |
18 |
|
19 |
|
19 |
DEPEND="$DEPEND |
20 |
DEPEND="$DEPEND |
|
|
21 |
apache2? >=net-www/apache-2* |
20 |
!dev-php/ioncube_loaders |
22 |
!dev-php/ioncube_loaders |
21 |
!dev-php/php-accelerator |
23 |
!dev-php/php-accelerator |
22 |
!dev-php/PECL-apc |
24 |
!dev-php/PECL-apc |
Lines 26-37
Link Here
|
26 |
# eAccelerator does not work with Zend Thread Safety (ZTS) |
28 |
# eAccelerator does not work with Zend Thread Safety (ZTS) |
27 |
# so about if we are using Apache 2 with an MPM that would |
29 |
# so about if we are using Apache 2 with an MPM that would |
28 |
# require ZTS. |
30 |
# require ZTS. |
29 |
if has_version '>=net-www/apache-2*'; then |
31 |
if use apache2; then |
30 |
APACHE2_MPM="`/usr/sbin/apache2 -l | egrep 'worker|perchild|leader|threadpool|prefork'|cut -d. -f1|sed -e 's/^[[:space:]]*//g;s/[[:space:]]+/ /g;'`" |
32 |
if has_version '>=net-www/apache-2*'; then |
31 |
case "${APACHE2_MPM}" in |
33 |
APACHE2_MPM="`/usr/sbin/apache2 -l | egrep 'worker|perchild|leader|threadpool|prefork'|cut -d. -f1|sed -e 's/^[[:space:]]*//g;s/[[:space:]]+/ /g;'`" |
32 |
*prefork*) ;; |
34 |
case "${APACHE2_MPM}" in |
33 |
*) eerror "eAccelerator does not yet work with the Apache 2 MPM in use." ; die ;; |
35 |
*prefork*) ;; |
34 |
esac; |
36 |
*) eerror "eAccelerator does not yet work with the Apache 2 MPM in use." ; die ;; |
|
|
37 |
esac; |
38 |
fi |
35 |
fi |
39 |
fi |
36 |
|
40 |
|
37 |
myconf="--enable-eaccelerator=shared" |
41 |
myconf="--enable-eaccelerator=shared" |