summaryrefslogtreecommitdiff
path: root/www/mod_php4
diff options
context:
space:
mode:
authorDirk Froemberg <dirk@FreeBSD.org>2000-02-25 23:53:06 +0000
committerDirk Froemberg <dirk@FreeBSD.org>2000-02-25 23:53:06 +0000
commit9b0dd3c11036cfc76e1e26c09da2968c9015d5df (patch)
tree714a42e12166992ee08c5bba2de6497c8756f22f /www/mod_php4
parentMerge openssl related changes from apache13-php3. (diff)
Move "apache performance tuning" from Makefile to scripts/configure.php
and thus make it work again.
Diffstat (limited to 'www/mod_php4')
-rw-r--r--www/mod_php4/Makefile6
-rw-r--r--www/mod_php4/scripts/configure.php4
2 files changed, 3 insertions, 7 deletions
diff --git a/www/mod_php4/Makefile b/www/mod_php4/Makefile
index 53f80b4d8301..db674f72bb83 100644
--- a/www/mod_php4/Makefile
+++ b/www/mod_php4/Makefile
@@ -82,12 +82,6 @@ CONFIGURE_ARGS= --prefix=${PREFIX} \
OPTIM= -DHARD_SERVER_LIMIT=512 \
-DDEFAULT_PATH=\\"${PREFIX}/bin:/bin:/usr/bin\\"
-.if defined(APACHE_PERF_TUNING) && ${APACHE_PERF_TUNING} == YES
-OPTIM+= -DBUFFERED_LOGS -DFD_SETSIZE=1024
-CFLAGS+= -O6 -funroll-loops -fstrength-reduce -fomit-frame-pointer \
- -fexpensive-optimizations -ffast-math
-.endif
-
CONFIGURE_ENV= OPTIM='${OPTIM}' LIBS='-L${PREFIX}/lib'
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
TOUCH="${TOUCH}" \
diff --git a/www/mod_php4/scripts/configure.php b/www/mod_php4/scripts/configure.php
index b639c1284e45..7cc83d96a4c8 100644
--- a/www/mod_php4/scripts/configure.php
+++ b/www/mod_php4/scripts/configure.php
@@ -53,7 +53,9 @@ exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
while [ "$1" ]; do
case $1 in
\"tuning\")
- echo "APACHE_PERF_TUNING= YES"
+ echo "CFLAGS+= -O6 -funroll-loops -fstrength-reduce -fomit-frame-pointer -fexpensive-optimizations -ffast-math"
+ echo "OPTIM+= -DBUFFERED_LOGS -DFD_SETSIZE=1024"
+ echo "CONFIGURE_ENV+= OPTIM='\${OPTIM}'"
;;
\"GD\")
echo "LIB_DEPENDS+= gd.0:\${PORTSDIR}/graphics/gd"