0002-iconv-tweak-iconv-detection.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 1357df0196806d5697b1f84497ef72aab5faa8a3 Mon Sep 17 00:00:00 2001
  2. From: Gustavo Zacarias <gustavo@zacarias.com.ar>
  3. Date: Tue, 9 Aug 2016 11:50:49 +0200
  4. Subject: [PATCH] iconv: tweak iconv detection
  5. Tweak PHP_SETUP_ICONV from aclocal/build/php.m4 to not
  6. PHP_ADD_INCLUDE $ICONV_DIR/include since the tests use
  7. test instead of AC_TRY_LINK to find headers which is bad,
  8. specially when adding /usr and /usr/local to the mix.
  9. Do basically the same with ext/iconv/config.m4 by tweaking
  10. PHP_ICONV_H_PATH which, again, uses test and absolute paths.
  11. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  12. [Gustavo: convert to nice m4 instead of patching configure]
  13. [Gustavo: update for 5.6.10]
  14. Signed-off-by: Adam Duskett <aduskett@gmail.com>
  15. [aduskett@gmail.com: Update for 8.0.7]
  16. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  17. [Bernd: rebased for 7.4.10, 7.4.13 & 8.1.7]
  18. ---
  19. build/php.m4 | 2 +-
  20. 1 file changed, 1 insertion(+), 1 deletion(-)
  21. diff --git a/build/php.m4 b/build/php.m4
  22. index 9586c490..8b3d47ed 100644
  23. --- a/build/php.m4
  24. +++ b/build/php.m4
  25. @@ -1976,7 +1976,7 @@ AC_DEFUN([PHP_SETUP_ICONV], [
  26. dnl Check external libs for iconv funcs.
  27. if test "$found_iconv" = "no"; then
  28. - for i in $PHP_ICONV /usr/local /usr; do
  29. + for i in $PHP_ICONV; do
  30. if test -r $i/include/gnu-libiconv/iconv.h; then
  31. ICONV_DIR=$i
  32. ICONV_INCLUDE_DIR=$i/include/gnu-libiconv
  33. --
  34. 2.31.1