2016-08-09 12:03:08 +02:00
|
|
|
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
|
|
|
|
|
2020-01-31 10:09:55 +01:00
|
|
|
Tweak PHP_SETUP_ICONV from aclocal/build/php.m4 to not
|
2015-04-08 17:39:28 +02:00
|
|
|
PHP_ADD_INCLUDE $ICONV_DIR/include since the tests use
|
|
|
|
test instead of AC_TRY_LINK to find headers which is bad,
|
|
|
|
specially when adding /usr and /usr/local to the mix.
|
|
|
|
Do basically the same with ext/iconv/config.m4 by tweaking
|
|
|
|
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]
|
2015-06-12 21:22:38 +02:00
|
|
|
[Gustavo: update for 5.6.10]
|
2018-02-02 13:50:39 +01:00
|
|
|
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
2021-06-29 18:50:54 +02:00
|
|
|
[aduskett@gmail.com: Update for 8.0.7]
|
2020-09-20 09:13:21 +02:00
|
|
|
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
|
2020-11-26 18:34:30 +01:00
|
|
|
[Bernd: rebased for 7.4.10 & 7.4.13]
|
2016-08-09 12:03:08 +02:00
|
|
|
---
|
2021-06-29 18:50:54 +02:00
|
|
|
build/php.m4 | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
2015-04-08 17:39:28 +02:00
|
|
|
|
2020-01-31 10:09:55 +01:00
|
|
|
diff --git a/build/php.m4 b/build/php.m4
|
|
|
|
index 9586c490..8b3d47ed 100644
|
|
|
|
--- a/build/php.m4
|
|
|
|
+++ b/build/php.m4
|
2021-06-29 18:50:54 +02:00
|
|
|
@@ -1937,7 +1937,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [
|
2020-01-31 10:09:55 +01:00
|
|
|
dnl Check external libs for iconv funcs.
|
2015-04-08 17:39:28 +02:00
|
|
|
if test "$found_iconv" = "no"; then
|
|
|
|
|
|
|
|
- for i in $PHP_ICONV /usr/local /usr; do
|
|
|
|
+ for i in $PHP_ICONV; do
|
2021-06-29 18:50:54 +02:00
|
|
|
if test -r $i/include/gnu-libiconv/iconv.h; then
|
2015-04-08 17:39:28 +02:00
|
|
|
ICONV_DIR=$i
|
2021-06-29 18:50:54 +02:00
|
|
|
ICONV_INCLUDE_DIR=$i/include/gnu-libiconv
|
2016-08-09 12:03:08 +02:00
|
|
|
--
|
2021-06-29 18:50:54 +02:00
|
|
|
2.31.1
|
2016-08-09 12:03:08 +02:00
|
|
|
|