--with-pear[=DIR] patch
| From: | Jon Parise | Date: | Sat, 07 Apr 2001 04:42:45 +0000 |
| Subject: | --with-pear[=DIR] patch | ||
| Groups: | php.dev php.pear.dev | ||
| Request: | Send a blank email to php-dev+get-51093@lists.php.net to get a copy of this message | ||
Does anyone object to the following patch to the PHP configure system?
It removes the --disable-pear flag in favor of a new --with-pear
option. The --with-pair option also allows the specification of the
PEAR installation directory at compilation time. For example:
./configure --with-pear=/var/www/pear
... would install the PEAR hierarchy in /var/www/pear. The new PEAR
directory is also added to the default 'include_path', too (that
behavior isn't really new, but it's a lot more useful now that the
PEAR location can be specified at compile time).
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member
Index: configure.in =================================================================== RCS file: /repository/php4/configure.in,v retrieving revision 1.230 diff -u -r1.230 configure.in --- configure.in 2001/04/06 16:01:20 1.230 +++ configure.in 2001/04/07 04:37:06 @@ -592,12 +592,25 @@ CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" fi -PHP_ARG_ENABLE(pear,whether to install PEAR, -[ --disable-pear Do not install PEAR],yes) - -if test "$PHP_PEAR" = "yes"; then - PEAR_DIR=pear -fi +AC_MSG_CHECKING(where to install PEAR) +AC_ARG_WITH(pear, +[ --with-pear[=DIR] Install PEAR hierarchy], +[ + if test "$withval" != "no"; then + PEAR_DIR=pear + if test "$withval" = "yes"; then + PEAR_INSTALLDIR="/usr/local/lib/php" + else + PEAR_INSTALLDIR="$withval" + fi + AC_MSG_RESULT($PEAR_INSTALLDIR) + else + AC_MSG_RESULT("PEAR will not be installed") + fi +],[ + PEAR_INSTALLDIR="/usr/local/lib/php" + AC_MSG_RESULT($PEAR_INSTALLDIR) +]) divert(5)
Index: configure.in =================================================================== RCS file: /repository/php4/configure.in,v retrieving revision 1.230 diff -u -r1.230 configure.in --- configure.in 2001/04/06 16:01:20 1.230 +++ configure.in 2001/04/07 04:37:06 @@ -592,12 +592,25 @@ CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" fi -PHP_ARG_ENABLE(pear,whether to install PEAR, -[ --disable-pear Do not install PEAR],yes) - -if test "$PHP_PEAR" = "yes"; then - PEAR_DIR=pear -fi +AC_MSG_CHECKING(where to install PEAR) +AC_ARG_WITH(pear, +[ --with-pear[=DIR] Install PEAR hierarchy], +[ + if test "$withval" != "no"; then + PEAR_DIR=pear + if test "$withval" = "yes"; then + PEAR_INSTALLDIR="/usr/local/lib/php" + else + PEAR_INSTALLDIR="$withval" + fi + AC_MSG_RESULT($PEAR_INSTALLDIR) + else + AC_MSG_RESULT("PEAR will not be installed") + fi +],[ + PEAR_INSTALLDIR="/usr/local/lib/php" + AC_MSG_RESULT($PEAR_INSTALLDIR) +]) divert(5)