|
@@ -3,7 +3,7 @@ From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
Date: Tue, 9 Aug 2016 11:50:49 +0200
|
|
Date: Tue, 9 Aug 2016 11:50:49 +0200
|
|
Subject: [PATCH] iconv: tweak iconv detection
|
|
Subject: [PATCH] iconv: tweak iconv detection
|
|
|
|
|
|
-Tweak PHP_SETUP_ICONV from aclocal/acinclude.m4 to not
|
|
|
|
|
|
+Tweak PHP_SETUP_ICONV from aclocal/build/php.m4 to not
|
|
PHP_ADD_INCLUDE $ICONV_DIR/include since the tests use
|
|
PHP_ADD_INCLUDE $ICONV_DIR/include since the tests use
|
|
test instead of AC_TRY_LINK to find headers which is bad,
|
|
test instead of AC_TRY_LINK to find headers which is bad,
|
|
specially when adding /usr and /usr/local to the mix.
|
|
specially when adding /usr and /usr/local to the mix.
|
|
@@ -16,16 +16,16 @@ Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
|
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
|
[aduskett@gmail.com: Update for 7.3.0]
|
|
[aduskett@gmail.com: Update for 7.3.0]
|
|
---
|
|
---
|
|
- acinclude.m4 | 2 +-
|
|
|
|
|
|
+ build/php.m4 | 2 +-
|
|
ext/iconv/config.m4 | 22 ----------------------
|
|
ext/iconv/config.m4 | 22 ----------------------
|
|
2 files changed, 1 insertion(+), 23 deletions(-)
|
|
2 files changed, 1 insertion(+), 23 deletions(-)
|
|
|
|
|
|
-diff --git a/acinclude.m4 b/acinclude.m4
|
|
|
|
-index af4aa06..1bd2652 100644
|
|
|
|
---- a/acinclude.m4
|
|
|
|
-+++ b/acinclude.m4
|
|
|
|
-@@ -2444,7 +2444,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [
|
|
|
|
- dnl
|
|
|
|
|
|
+diff --git a/build/php.m4 b/build/php.m4
|
|
|
|
+index 9586c490..8b3d47ed 100644
|
|
|
|
+--- a/build/php.m4
|
|
|
|
++++ b/build/php.m4
|
|
|
|
+@@ -1971,7 +1971,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [
|
|
|
|
+ dnl Check external libs for iconv funcs.
|
|
if test "$found_iconv" = "no"; then
|
|
if test "$found_iconv" = "no"; then
|
|
|
|
|
|
- for i in $PHP_ICONV /usr/local /usr; do
|
|
- for i in $PHP_ICONV /usr/local /usr; do
|
|
@@ -34,10 +34,10 @@ index af4aa06..1bd2652 100644
|
|
AC_DEFINE(HAVE_GICONV_H, 1, [ ])
|
|
AC_DEFINE(HAVE_GICONV_H, 1, [ ])
|
|
ICONV_DIR=$i
|
|
ICONV_DIR=$i
|
|
diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4
|
|
diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4
|
|
-index 72334f79..29c358ad 100644
|
|
|
|
|
|
+index fe9b47aa..70599694 100644
|
|
--- a/ext/iconv/config.m4
|
|
--- a/ext/iconv/config.m4
|
|
+++ b/ext/iconv/config.m4
|
|
+++ b/ext/iconv/config.m4
|
|
-@@ -12,28 +12,6 @@ if test "$PHP_ICONV" != "no"; then
|
|
|
|
|
|
+@@ -13,28 +13,6 @@ if test "$PHP_ICONV" != "no"; then
|
|
])
|
|
])
|
|
|
|
|
|
if test "$iconv_avail" != "no"; then
|
|
if test "$iconv_avail" != "no"; then
|