[PHP-DEV] PHP 4.0 Bug #586 Updated: configure does not support apache shadow tree

2001-02-24 Thread sas

ID: 586
Updated by: sas
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Compile Problem
Bug Type: Feature/Change Request
Assigned To: 
Comments:

Changing to feature request.

Previous Comments:
---

[2001-02-10 12:57:34] [EMAIL PROTECTED]
really refiled.

---

[2001-02-10 12:24:03] [EMAIL PROTECTED]
refiling as real bug against 4.0. (not verified.)

---

[1999-07-03 12:14:44] [EMAIL PROTECTED]
Looks like Apache's shadow source feature doesn't work in Apache 1.3.6. Moving to 
feature request.

---

[1998-07-27 20:15:31] [EMAIL PROTECTED]
As item 4.2 in the FAQ states, configure only supports being told the location of the 
top level apache dir.  But when apache is built using shadow dirs (as in 
apache/src.sun4u-sun-solaris2.260 configure cannot handle it).

The following patch modifies configure.in (for the APACI case only - sorry) to first 
check if the withval was actually a src dir and if so use it.

Oh and I just noticed that php does not handle being built in a separate dir.

--sjg

*** configure.in.~1~Mon Jul 20 07:55:47 1998
--- configure.inTue Jul 28 09:56:33 1998
***
*** 213,221 
  withval=/usr/local/etc/httpd
fi
if test "$withval" != "no"; then
! if test -f $withval/src/include/httpd.h; then
!   APACHE_INCLUDE="-I$withval/src/include -I$withval/src/os/unix"
!   APACHE_TARGET=$withval/src/modules/php3
if test ! -d $APACHE_TARGET; then
mkdir $APACHE_TARGET
fi
--- 213,228 
  withval=/usr/local/etc/httpd
fi
if test "$withval" != "no"; then
!   x=`dirname $withval`
!   if test -f $x/src/include/httpd.h; then
!   withval_src=$withval
!   withval=$x
!   else
!   withval_src=$withval/src
!   fi
! if test -f $withval_src/include/httpd.h; then
!   APACHE_INCLUDE="-I$withval_src/include -I$withval_src/os/unix"
!   APACHE_TARGET=$withval_src/modules/php3
if test ! -d $APACHE_TARGET; then
mkdir $APACHE_TARGET
fi
***
*** 228,249 
AC_DEFINE(APACHE)
AC_MSG_RESULT(yes - Shared Apache 1.3.x)
STRONGHOLD=
!   if test -f $withval/src/include/ap_config.h; then
AC_DEFINE(HAVE_AP_CONFIG_H)
fi
!   if test -f $withval/src/include/ap_compat.h; then
AC_DEFINE(HAVE_AP_COMPAT_H)
!   if test ! -f $withval/src/include/ap_config_auto.h; then
AC_MSG_ERROR(Please run Apache's configure or src/Configure program once and 
try again)
fi
else
!   if test -f $withval/src/include/compat.h; then
AC_DEFINE(HAVE_OLD_COMPAT_H)
fi
fi
else
AC_MSG_RESULT(no)
!   AC_MSG_ERROR(Invalid Apache directory - unable to find httpd.h under 
$withval/src/include)
  fi
fi
AC_SUBST(APACHE_INCLUDE)
--- 235,256 
AC_DEFINE(APACHE)
AC_MSG_RESULT(yes - Shared Apache 1.3.x)
STRONGHOLD=
!   if test -f $withval_src/include/ap_config.h; then
AC_DEFINE(HAVE_AP_CONFIG_H)
fi
!   if test -f $withval_src/include/ap_compat.h; then
AC_DEFINE(HAVE_AP_COMPAT_H)
!   if test ! -f $withval_src/include/ap_config_auto.h; then
AC_MSG_ERROR(Please run Apache's configure or src/Configure program once and 
try again)
fi
else
!   if test -f $withval_src/include/compat.h; then
AC_DEFINE(HAVE_OLD_COMPAT_H)
fi
fi
else
AC_MSG_RESULT(no)
!   AC_MSG_ERROR(Invalid Apache directory - unable to find httpd.h under 
$withval_src/include)
  fi
fi
AC_SUBST(APACHE_INCLUDE)


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=586&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #586 Updated: configure does not support apache shadow tree

2001-02-10 Thread jimw

ID: 586
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Problem
Assigned To: 
Comments:

really refiled.

Previous Comments:
---

[2001-02-10 12:24:03] [EMAIL PROTECTED]
refiling as real bug against 4.0. (not verified.)

---

[1999-07-03 12:14:44] [EMAIL PROTECTED]
Looks like Apache's shadow source feature doesn't work in Apache 1.3.6. Moving to 
feature request.

---

[1998-07-27 20:15:31] [EMAIL PROTECTED]
As item 4.2 in the FAQ states, configure only supports being told the location of the 
top level apache dir.  But when apache is built using shadow dirs (as in 
apache/src.sun4u-sun-solaris2.260 configure cannot handle it).

The following patch modifies configure.in (for the APACI case only - sorry) to first 
check if the withval was actually a src dir and if so use it.

Oh and I just noticed that php does not handle being built in a separate dir.

--sjg

*** configure.in.~1~Mon Jul 20 07:55:47 1998
--- configure.inTue Jul 28 09:56:33 1998
***
*** 213,221 
  withval=/usr/local/etc/httpd
fi
if test "$withval" != "no"; then
! if test -f $withval/src/include/httpd.h; then
!   APACHE_INCLUDE="-I$withval/src/include -I$withval/src/os/unix"
!   APACHE_TARGET=$withval/src/modules/php3
if test ! -d $APACHE_TARGET; then
mkdir $APACHE_TARGET
fi
--- 213,228 
  withval=/usr/local/etc/httpd
fi
if test "$withval" != "no"; then
!   x=`dirname $withval`
!   if test -f $x/src/include/httpd.h; then
!   withval_src=$withval
!   withval=$x
!   else
!   withval_src=$withval/src
!   fi
! if test -f $withval_src/include/httpd.h; then
!   APACHE_INCLUDE="-I$withval_src/include -I$withval_src/os/unix"
!   APACHE_TARGET=$withval_src/modules/php3
if test ! -d $APACHE_TARGET; then
mkdir $APACHE_TARGET
fi
***
*** 228,249 
AC_DEFINE(APACHE)
AC_MSG_RESULT(yes - Shared Apache 1.3.x)
STRONGHOLD=
!   if test -f $withval/src/include/ap_config.h; then
AC_DEFINE(HAVE_AP_CONFIG_H)
fi
!   if test -f $withval/src/include/ap_compat.h; then
AC_DEFINE(HAVE_AP_COMPAT_H)
!   if test ! -f $withval/src/include/ap_config_auto.h; then
AC_MSG_ERROR(Please run Apache's configure or src/Configure program once and 
try again)
fi
else
!   if test -f $withval/src/include/compat.h; then
AC_DEFINE(HAVE_OLD_COMPAT_H)
fi
fi
else
AC_MSG_RESULT(no)
!   AC_MSG_ERROR(Invalid Apache directory - unable to find httpd.h under 
$withval/src/include)
  fi
fi
AC_SUBST(APACHE_INCLUDE)
--- 235,256 
AC_DEFINE(APACHE)
AC_MSG_RESULT(yes - Shared Apache 1.3.x)
STRONGHOLD=
!   if test -f $withval_src/include/ap_config.h; then
AC_DEFINE(HAVE_AP_CONFIG_H)
fi
!   if test -f $withval_src/include/ap_compat.h; then
AC_DEFINE(HAVE_AP_COMPAT_H)
!   if test ! -f $withval_src/include/ap_config_auto.h; then
AC_MSG_ERROR(Please run Apache's configure or src/Configure program once and 
try again)
fi
else
!   if test -f $withval_src/include/compat.h; then
AC_DEFINE(HAVE_OLD_COMPAT_H)
fi
fi
else
AC_MSG_RESULT(no)
!   AC_MSG_ERROR(Invalid Apache directory - unable to find httpd.h under 
$withval_src/include)
  fi
fi
AC_SUBST(APACHE_INCLUDE)


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=586&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #586 Updated: configure does not support apache shadow tree

2001-02-10 Thread jimw

ID: 586
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Feature/Change Request
Bug Type: Compile Problem
Assigned To: 
Comments:

refiling as real bug against 4.0. (not verified.)

Previous Comments:
---

[1999-07-03 12:14:44] [EMAIL PROTECTED]
Looks like Apache's shadow source feature doesn't work in Apache 1.3.6. Moving to 
feature request.

---

[1998-07-27 20:15:31] [EMAIL PROTECTED]
As item 4.2 in the FAQ states, configure only supports being told the location of the 
top level apache dir.  But when apache is built using shadow dirs (as in 
apache/src.sun4u-sun-solaris2.260 configure cannot handle it).

The following patch modifies configure.in (for the APACI case only - sorry) to first 
check if the withval was actually a src dir and if so use it.

Oh and I just noticed that php does not handle being built in a separate dir.

--sjg

*** configure.in.~1~Mon Jul 20 07:55:47 1998
--- configure.inTue Jul 28 09:56:33 1998
***
*** 213,221 
  withval=/usr/local/etc/httpd
fi
if test "$withval" != "no"; then
! if test -f $withval/src/include/httpd.h; then
!   APACHE_INCLUDE="-I$withval/src/include -I$withval/src/os/unix"
!   APACHE_TARGET=$withval/src/modules/php3
if test ! -d $APACHE_TARGET; then
mkdir $APACHE_TARGET
fi
--- 213,228 
  withval=/usr/local/etc/httpd
fi
if test "$withval" != "no"; then
!   x=`dirname $withval`
!   if test -f $x/src/include/httpd.h; then
!   withval_src=$withval
!   withval=$x
!   else
!   withval_src=$withval/src
!   fi
! if test -f $withval_src/include/httpd.h; then
!   APACHE_INCLUDE="-I$withval_src/include -I$withval_src/os/unix"
!   APACHE_TARGET=$withval_src/modules/php3
if test ! -d $APACHE_TARGET; then
mkdir $APACHE_TARGET
fi
***
*** 228,249 
AC_DEFINE(APACHE)
AC_MSG_RESULT(yes - Shared Apache 1.3.x)
STRONGHOLD=
!   if test -f $withval/src/include/ap_config.h; then
AC_DEFINE(HAVE_AP_CONFIG_H)
fi
!   if test -f $withval/src/include/ap_compat.h; then
AC_DEFINE(HAVE_AP_COMPAT_H)
!   if test ! -f $withval/src/include/ap_config_auto.h; then
AC_MSG_ERROR(Please run Apache's configure or src/Configure program once and 
try again)
fi
else
!   if test -f $withval/src/include/compat.h; then
AC_DEFINE(HAVE_OLD_COMPAT_H)
fi
fi
else
AC_MSG_RESULT(no)
!   AC_MSG_ERROR(Invalid Apache directory - unable to find httpd.h under 
$withval/src/include)
  fi
fi
AC_SUBST(APACHE_INCLUDE)
--- 235,256 
AC_DEFINE(APACHE)
AC_MSG_RESULT(yes - Shared Apache 1.3.x)
STRONGHOLD=
!   if test -f $withval_src/include/ap_config.h; then
AC_DEFINE(HAVE_AP_CONFIG_H)
fi
!   if test -f $withval_src/include/ap_compat.h; then
AC_DEFINE(HAVE_AP_COMPAT_H)
!   if test ! -f $withval_src/include/ap_config_auto.h; then
AC_MSG_ERROR(Please run Apache's configure or src/Configure program once and 
try again)
fi
else
!   if test -f $withval_src/include/compat.h; then
AC_DEFINE(HAVE_OLD_COMPAT_H)
fi
fi
else
AC_MSG_RESULT(no)
!   AC_MSG_ERROR(Invalid Apache directory - unable to find httpd.h under 
$withval_src/include)
  fi
fi
AC_SUBST(APACHE_INCLUDE)


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=586&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]