From:             [EMAIL PROTECTED]
Operating system: Linux Redhat 7.3
PHP version:      4.2.1
PHP Bug Type:     Apache2 related
Bug description:  "make INSTALL_ROOT=/foo install" fails

Author: Juergen Strobel (eWave) [EMAIL PROTECTED]

This fixes a "make INSTALL_ROOT=foo install" for apache 2 builds. I
guess I had to fix this in 2 places because ./configure is built from
sapi/.../config.m4 by automake, which I don't want to wrestle with.

Note that I suppress the -a option if httpd's config file does not exist,
so make install won't choke if it can't add the PHP module to httpd.conf.
Useful for rpm packaging.

This html textarea may wrap some of the following lines, you'll have to
unwrap by hand.

--- sapi/apache2filter/config.m4.orig   Fri Apr 26 05:13:00 2002
+++ sapi/apache2filter/config.m4        Tue May 28 19:27:24 2002
@@ -51,7 +51,7 @@
 
   PHP_ADD_INCLUDE($APXS_INCLUDEDIR)
   PHP_SAPI=apache2filter
-  INSTALL_IT="$APXS -i -a -n php4 $SAPI_LIBTOOL"
+  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 $SAPI_LIBTOOL"
   PHP_BUILD_SHARED
   PHP_BUILD_THREAD_SAFE
   AC_MSG_RESULT(yes)
--- ./configure.orig    Tue May 28 20:17:53 2002
+++ ./configure Tue May 28 20:19:52 2002
@@ -4168,7 +4168,7 @@
   fi
 
   PHP_SAPI=apache2filter
-  INSTALL_IT="$APXS -i -a -n php4 $SAPI_LIBTOOL"
+  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 $SAPI_LIBTOOL"
   
   php_build_target=shared
 

-- 
Edit bug report at http://bugs.php.net/?id=17491&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17491&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17491&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17491&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17491&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17491&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17491&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17491&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17491&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17491&r=globals

Reply via email to