Bug #653: configuration script does not detect Stronghold 2.4 properly

From: Date: Thu, 13 Aug 1998 21:37:13 +0000
Subject: Bug #653: configuration script does not detect Stronghold 2.4 properly
Groups: php.dev 
Request: Send a blank email to php-dev+get-185@lists.php.net to get a copy of this message
From: scotts@global2000.net Operating system: Linux 2.0.35 PHP version: 3.0 Final Release PHP Bug Type: Installation problem Bug description: The 'configure' script, when using --with-apache, does not properly detect a Stronghold 2.4 installation, and incorrectly configures PHP for an Apache 1.3 installation instead. Here are diffs for the 3.0 configure script that got it to work for me: diff configure ~/php-3.0.modified.configure 3357c3357 < elif test -f $withval/src/main/httpd.h; then --- > elif [ -f $withval/src/main/httpd.h ]; then 3390c3390 < elif test -f $withval/src/include/httpd.h; then --- > elif test -f $withval/src/include/httpd.h -a ! -d $withval/ssl; then 3451a3452,3485 > > # For StrongHold 2.4 > elif test -f $withval/src/include/httpd.h; then > APACHE_INCLUDE=-"I$withval/src/include -I$withval/ssl/include > -I$withval/src/os/unix" > APACHE_TARGET=$withval/src/modules/php3 > BINNAME=libmodphp3.a > CFLAGS="$CFLAGS -DSHBUILDCODE=\\\"C2NetEU/2407\\\" > -DSHVERSION=\\\"2.4\\\"" > if test "$with_dbase" = "yes"; then > PHP_LIBS="-Lmodules/php3 -L../modules/php3 -lmodphp3 -ldbf" > INSTALL_IT="cp $BINNAME mod_php3.* php_version.h libphp3.module dbase/libdbf.a > $APACHE_TARGET; cp apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp apMakefile.libdir > $APACHE_TARGET/Makefile.libdir; cp libphp3.module $APACHE_TARGET" > else > PHP_LIBS="-Lmodules/php3 -L../modules/php3 -lmodphp3" > INSTALL_IT="cp $BINNAME mod_php3.* php_version.h libphp3.module > $APACHE_TARGET; cp apMakefile.tmpl $APACHE_TARGET/Makefile.tmpl; cp apMakefile.libdir > $APACHE_TARGET/Makefile.libdir; cp libphp3.module $APACHE_TARGET" > fi > STRONGHOLD=-DSTRONGHOLD=1 > cat >> confdefs.h <<\EOF > #define APACHE 1 > EOF > > echo "$ac_t""yes - StrongHold" 1>&6 > if test -f $withval/src/include/ap_config.h; then > cat >> confdefs.h <<\EOF > #define HAVE_AP_CONFIG_H 1 > EOF > > fi > if test -f $withval/src/include/compat.h; then > cat >> confdefs.h <<\EOF > #define HAVE_AP_COMPAT_H 1 > EOF > > fi > > -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#185) next »