From 5f92ac3bab8fdec623cee08d3a33786b31c56788 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 25 Dec 2006 15:42:35 +0000 Subject: [PATCH] MFH: fix bug #39890 (using autoconf 2.6x and --with-layout=GNU breaks PEAR install path) --- NEWS | 2 ++ configure.in | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/NEWS b/NEWS index 2003d4bb5c..c77a39c2f6 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,8 @@ PHP 4 NEWS indexing the page. (Ilia) - Updated PCRE to version 6.7. (Ilia) - Fixed missing open_basedir check inside chdir() function. (Ilia) +- Fixed bug #39890 (using autoconf 2.6x and --with-layout=GNU breaks PEAR + install path). (Tony) - Fixed bug #39653 (ext/dba doesn't check for db-4.5 and db-4.4 when db4 support is enabled). (Tony) - Fixed bug #39583 (ftp_put() does not change transfer mode to ASCII). (Tony) diff --git a/configure.in b/configure.in index e6fa64e726..adcb09fb1f 100644 --- a/configure.in +++ b/configure.in @@ -1045,6 +1045,15 @@ if test -z "$EXTENSION_DIR"; then fi fi +case $PHP_LAYOUT in + GNU) + datarootdir=$prefix/share + ;; + *) + datarootdir=$prefix/php + ;; +esac + dnl Expand all directory names for use in macros/constants EXPANDED_PEAR_INSTALLDIR=`eval echo $PEAR_INSTALLDIR` EXPANDED_EXTENSION_DIR=`eval echo $EXTENSION_DIR` @@ -1135,6 +1144,7 @@ PHP_SUBST(phptempdir) PHP_SUBST(prefix) PHP_SUBST(localstatedir) PHP_SUBST(datadir) +PHP_SUBST(datarootdir) PHP_SUBST(sysconfdir) PHP_SUBST(AWK) -- 2.40.0