summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-06-28 09:01:56 +0000
committerfoobar <sniper@php.net>2002-06-28 09:01:56 +0000
commitf4699170fcffc2760391eaffd06abd2e5df75513 (patch)
tree19fe241435af0e83857fc1c3afbcd9d34199a6a8 /sapi
parent316a8b0b4f338ce45ece0d2fa2d85d2634e77b8a (diff)
downloadphp-git-f4699170fcffc2760391eaffd06abd2e5df75513.tar.gz
Fixed bug: #17491 (honor INSTALL_ROOT)
Diffstat (limited to 'sapi')
-rw-r--r--sapi/apache2filter/config.m48
1 files changed, 5 insertions, 3 deletions
diff --git a/sapi/apache2filter/config.m4 b/sapi/apache2filter/config.m4
index 857b9ec03a..471987b59c 100644
--- a/sapi/apache2filter/config.m4
+++ b/sapi/apache2filter/config.m4
@@ -50,12 +50,14 @@ AC_ARG_WITH(apxs2,
AC_MSG_ERROR([Please note that Apache version >= 2.0.35 is required.])
fi
+ INSTALL_IT="\$(mkinstalldirs) \"\$(INSTALL_ROOT)`$APXS -q LIBEXECDIR`\" && $APXS -S LIBEXECDIR=\"\$(INSTALL_ROOT)`$APXS -q LIBEXECDIR`\" -i `[ -d \`$APXS -q SYSCONFDIR\` ] || echo -a` -n php4"
+
case $host_alias in
*aix*)
APXS_SBINDIR=`$APXS -q SBINDIR`
EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-bI:$APXS_SBINDIR/httpd.exp"
PHP_SELECT_SAPI(apache2filter, shared, sapi_apache2.c apache_config.c php_functions.c)
- INSTALL_IT="$APXS -i -a -n php4 $SAPI_LIBTOOL"
+ INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
;;
*darwin*)
dnl When using bundles on Darwin, we must resolve all symbols. However,
@@ -73,11 +75,11 @@ AC_ARG_WITH(apxs2,
PHP_SUBST(MH_BUNDLE_FLAGS)
PHP_SELECT_SAPI(apache2filter, bundle, sapi_apache2.c apache_config.c php_functions.c)
SAPI_SHARED=libs/libphp4.so
- INSTALL_IT="$APXS -i -a -n php4 $SAPI_SHARED"
+ INSTALL_IT="$INSTALL_IT $SAPI_SHARED"
;;
*)
PHP_SELECT_SAPI(apache2filter, shared, sapi_apache2.c apache_config.c php_functions.c)
- INSTALL_IT="$APXS -i -a -n php4 $SAPI_LIBTOOL"
+ INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
;;
esac