apache2 on FreeBSD
| From: | Jan Lehnardt | Date: | Sun, 07 Apr 2002 14:05:30 +0000 |
| Subject: | apache2 on FreeBSD | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-82237@lists.php.net to get a copy of this message | ||
Hi,
in order to run apache2 on FreeBSD, you need to add --with-tsrm-pth to
your ./configure line.
I attached a patch to configure.in that throws a WARNING. I hope I
cought all possibilities, but I am sure Jani will find a gotcha; thats
why I have not comitted it directly ;)
Jan
--
Q: Thank Jan? A: http://geschenke.an.dasmoped.net/
Index: configure.in =================================================================== RCS file: /repository/php4/configure.in,v retrieving revision 1.334 diff -u -r1.334 configure.in --- configure.in 6 Apr 2002 13:42:39 -0000 1.334 +++ configure.in 7 Apr 2002 13:59:19 -0000 @@ -1170,6 +1170,15 @@ dnl rm -f main/internal_functions.c.old dnl fi + if test $UNAME = "FreeBSD" && test $PHP_SAPI = "apache2filter" && test $TSRM_PTH != "pth-config" ; then + echo "+--------------------------------------------------------------------+" + echo "| *** WARNING *** |" + echo "| |" + echo "| In order to build PHP as a Apache2 module on FreeBSD, you have to |" + echo "| add --with-tsrm-pth to your ./configure line. Therefore you need |" + echo "| to install gnu-pth from /usr/ports/devel/pth. |" + fi + if test -n "$PHP_APXS_BROKEN"; then echo "+--------------------------------------------------------------------+" echo "| WARNING: Your $APXS script is most likely broken."
Index: configure.in =================================================================== RCS file: /repository/php4/configure.in,v retrieving revision 1.334 diff -u -r1.334 configure.in --- configure.in 6 Apr 2002 13:42:39 -0000 1.334 +++ configure.in 7 Apr 2002 13:59:19 -0000 @@ -1170,6 +1170,15 @@ dnl rm -f main/internal_functions.c.old dnl fi + if test $UNAME = "FreeBSD" && test $PHP_SAPI = "apache2filter" && test $TSRM_PTH != "pth-config" ; then + echo "+--------------------------------------------------------------------+" + echo "| *** WARNING *** |" + echo "| |" + echo "| In order to build PHP as a Apache2 module on FreeBSD, you have to |" + echo "| add --with-tsrm-pth to your ./configure line. Therefore you need |" + echo "| to install gnu-pth from /usr/ports/devel/pth. |" + fi + if test -n "$PHP_APXS_BROKEN"; then echo "+--------------------------------------------------------------------+" echo "| WARNING: Your $APXS script is most likely broken."