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."
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php