]> granicus.if.org Git - php/commitdiff
MFH: fix bug #39890 (using autoconf 2.6x and --with-layout=GNU breaks PEAR install...
authorAntony Dovgal <tony2001@php.net>
Mon, 25 Dec 2006 15:42:35 +0000 (15:42 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 25 Dec 2006 15:42:35 +0000 (15:42 +0000)
NEWS
configure.in

diff --git a/NEWS b/NEWS
index 2003d4bb5c048417cecf7d962f1b844862d2f39a..c77a39c2f6aaec1b6162fc74cac6d86b0dbb5bf4 100644 (file)
--- 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)
index e6fa64e726cf54e720456c7f0175daf046e924c4..adcb09fb1f35d28f6912f21bc990952808d5d49f 100644 (file)
@@ -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)