From 9f76195869eb433073718b4ced138510aca0c2d5 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 25 Dec 2006 15:41:56 +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 84b1ff0d08..07571a0a27 100644 --- a/NEWS +++ b/NEWS @@ -22,6 +22,8 @@ PHP NEWS - Fixed bug #39903 (Notice message when executing __halt_compiler() more than once). (Tony) - Fixed bug #39898 (FILTER_VALIDATE_URL validates \r\n\t etc). (Ilia) +- Fixed bug #39890 (using autoconf 2.6x and --with-layout=GNU breaks PEAR + install path). (Tony) - Fixed bug #39884 (ReflectionParameter::getClass() throws exception for type hint self). (thekid at php dot net) - Fixed bug #39873 (number_format() breaks with locale & decimal points). diff --git a/configure.in b/configure.in index 47065dc6ad..885beba409 100644 --- a/configure.in +++ b/configure.in @@ -1100,6 +1100,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` @@ -1191,6 +1200,7 @@ PHP_SUBST(phptempdir) PHP_SUBST(prefix) PHP_SUBST(localstatedir) PHP_SUBST(datadir) +PHP_SUBST(datarootdir) PHP_SUBST(sysconfdir) PHP_SUBST(EXEEXT) -- 2.40.0