|
@@ -1,3 +1,8 @@
|
|
|
+From 1357df0196806d5697b1f84497ef72aab5faa8a3 Mon Sep 17 00:00:00 2001
|
|
|
+From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
+Date: Tue, 9 Aug 2016 11:50:49 +0200
|
|
|
+Subject: [PATCH] iconv: tweak iconv detection
|
|
|
+
|
|
|
Tweak PHP_SETUP_ICONV from aclocal/acinclude.m4 to not
|
|
|
PHP_ADD_INCLUDE $ICONV_DIR/include since the tests use
|
|
|
test instead of AC_TRY_LINK to find headers which is bad,
|
|
@@ -8,11 +13,16 @@ PHP_ICONV_H_PATH which, again, uses test and absolute paths.
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
[Gustavo: convert to nice m4 instead of patching configure]
|
|
|
[Gustavo: update for 5.6.10]
|
|
|
+---
|
|
|
+ acinclude.m4 | 2 +-
|
|
|
+ ext/iconv/config.m4 | 22 ----------------------
|
|
|
+ 2 files changed, 1 insertion(+), 23 deletions(-)
|
|
|
|
|
|
-diff -Nura php-5.6.10.orig/acinclude.m4 php-5.6.10/acinclude.m4
|
|
|
---- php-5.6.10.orig/acinclude.m4 2015-06-12 16:09:06.274355813 -0300
|
|
|
-+++ php-5.6.10/acinclude.m4 2015-06-12 16:10:10.884544865 -0300
|
|
|
-@@ -2474,7 +2474,7 @@
|
|
|
+diff --git a/acinclude.m4 b/acinclude.m4
|
|
|
+index af4aa06..1bd2652 100644
|
|
|
+--- a/acinclude.m4
|
|
|
++++ b/acinclude.m4
|
|
|
+@@ -2471,7 +2471,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [
|
|
|
dnl
|
|
|
if test "$found_iconv" = "no"; then
|
|
|
|
|
@@ -21,10 +31,11 @@ diff -Nura php-5.6.10.orig/acinclude.m4 php-5.6.10/acinclude.m4
|
|
|
if test -r $i/include/giconv.h; then
|
|
|
AC_DEFINE(HAVE_GICONV_H, 1, [ ])
|
|
|
ICONV_DIR=$i
|
|
|
-diff -Nura php-5.6.10.orig/ext/iconv/config.m4 php-5.6.10/ext/iconv/config.m4
|
|
|
---- php-5.6.10.orig/ext/iconv/config.m4 2015-06-12 16:09:07.792407246 -0300
|
|
|
-+++ php-5.6.10/ext/iconv/config.m4 2015-06-12 16:11:07.752471600 -0300
|
|
|
-@@ -14,28 +14,6 @@
|
|
|
+diff --git a/ext/iconv/config.m4 b/ext/iconv/config.m4
|
|
|
+index 6a05697..694fcb8 100644
|
|
|
+--- a/ext/iconv/config.m4
|
|
|
++++ b/ext/iconv/config.m4
|
|
|
+@@ -14,28 +14,6 @@ if test "$PHP_ICONV" != "no"; then
|
|
|
])
|
|
|
|
|
|
if test "$iconv_avail" != "no"; then
|
|
@@ -53,3 +64,6 @@ diff -Nura php-5.6.10.orig/ext/iconv/config.m4 php-5.6.10/ext/iconv/config.m4
|
|
|
|
|
|
AC_MSG_CHECKING([if iconv is glibc's])
|
|
|
AC_TRY_LINK([#include <gnu/libc-version.h>],[gnu_get_libc_version();],
|
|
|
+--
|
|
|
+2.7.4
|
|
|
+
|