sniper Sun Feb 23 02:34:32 2003 EDT Modified files: (Branch: PHP_4_3) /php4/sapi/apache config.m4 /php4/sapi/apache2filter config.m4 Log: MFH: - Fixed bug #22376 (wrong httpd.conf modified when using INSTALL_ROOT) Index: php4/sapi/apache/config.m4 diff -u php4/sapi/apache/config.m4:1.62.4.4 php4/sapi/apache/config.m4:1.62.4.5 --- php4/sapi/apache/config.m4:1.62.4.4 Thu Feb 13 02:48:00 2003 +++ php4/sapi/apache/config.m4 Sun Feb 23 02:34:32 2003 @@ -1,5 +1,5 @@ dnl -dnl $Id: config.m4,v 1.62.4.4 2003/02/13 07:48:00 sniper Exp $ +dnl $Id: config.m4,v 1.62.4.5 2003/02/23 07:34:32 sniper Exp $ dnl AC_MSG_CHECKING(for Apache 1.x module support via DSO through APXS) @@ -70,7 +70,19 @@ if test "$?" != "0"; then APACHE_INSTALL="$APXS -i -a -n php4 $SAPI_SHARED" # Old apxs does not have -S option else - APACHE_INSTALL="\$(mkinstalldirs) \"\$(INSTALL_ROOT)`$APXS -q LIBEXECDIR`\" && $APXS -S LIBEXECDIR=\"\$(INSTALL_ROOT)`$APXS -q LIBEXECDIR`\" -i -a -n php4 $SAPI_SHARED" + APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` + if test -z `$APXS -q SYSCONFDIR`; then + APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php4 $SAPI_SHARED" + else + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + APACHE_INSTALL="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php4 $SAPI_SHARED" + fi fi if test -z "`$APXS -q LD_SHLIB`" || test "`$APXS -q LIBEXECDIR`" = "modules"; then Index: php4/sapi/apache2filter/config.m4 diff -u php4/sapi/apache2filter/config.m4:1.25.2.2 php4/sapi/apache2filter/config.m4:1.25.2.3 --- php4/sapi/apache2filter/config.m4:1.25.2.2 Mon Feb 3 12:35:39 2003 +++ php4/sapi/apache2filter/config.m4 Sun Feb 23 02:34:32 2003 @@ -1,5 +1,5 @@ dnl -dnl $Id: config.m4,v 1.25.2.2 2003/02/03 17:35:39 sniper Exp $ +dnl $Id: config.m4,v 1.25.2.3 2003/02/23 07:34:32 sniper Exp $ dnl AC_MSG_CHECKING(for Apache 2.0 module support via DSO through APXS) @@ -52,12 +52,17 @@ APXS_LIBEXECDIR='$(INSTALL_ROOT)'`$APXS -q LIBEXECDIR` if test -z `$APXS -q SYSCONFDIR`; then - optarg= + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -i -n php4" else - optarg=-a + APXS_SYSCONFDIR='$(INSTALL_ROOT)'`$APXS -q SYSCONFDIR` + INSTALL_IT="\$(mkinstalldirs) '$APXS_LIBEXECDIR' && \ + \$(mkinstalldirs) '$APXS_SYSCONFDIR' && \ + $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' \ + -S SYSCONFDIR='$APXS_SYSCONFDIR' \ + -i -a -n php4" fi - - INSTALL_IT='$(mkinstalldirs) '"$APXS_LIBEXECDIR && $APXS -S LIBEXECDIR='$APXS_LIBEXECDIR' -i ${optarg} -n php4" case $host_alias in *aix*)
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php