]> granicus.if.org Git - php/commitdiff
apply jan's configure check for apache2 and freebsd (relating to the use
authorSterling Hughes <sterling@php.net>
Sun, 7 Apr 2002 16:16:47 +0000 (16:16 +0000)
committerSterling Hughes <sterling@php.net>
Sun, 7 Apr 2002 16:16:47 +0000 (16:16 +0000)
of tsrm-pth).

configure.in

index 4cf9a58764a00cda490482cdcb1e0b45aeba5de1..30e5133461deaf668aed9ac5f5e915afea637c50 100644 (file)
@@ -1170,6 +1170,15 @@ dnl  else
 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."