php-01-no-iconv-search.patch 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. Tweak PHP_SETUP_ICONV from aclocal/acinclude.m4 to not
  2. PHP_ADD_INCLUDE $ICONV_DIR/include since the tests use
  3. test instead of AC_TRY_LINK to find headers which is bad,
  4. specially when adding /usr and /usr/local to the mix.
  5. Do basically the same with ext/iconv/config.m4 by tweaking
  6. PHP_ICONV_H_PATH which, again, uses test and absolute paths.
  7. And all this directly in configure since autoreconf isn't
  8. happy with php.
  9. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  10. diff -Nura php-5.5.11.orig/configure php-5.5.11/configure
  11. --- php-5.5.11.orig/configure 2014-04-16 14:55:52.300838499 -0300
  12. +++ php-5.5.11/configure 2014-04-22 21:54:01.499097295 -0300
  13. @@ -45751,12 +45751,6 @@
  14. if test -n "$unique" && test "`eval $cmd`" = "" ; then
  15. eval "INCLUDEPATH$unique=set"
  16. - if test ""; then
  17. - INCLUDES="-I$ai_p $INCLUDES"
  18. - else
  19. - INCLUDES="$INCLUDES -I$ai_p"
  20. - fi
  21. -
  22. fi
  23. fi
  24. @@ -45786,14 +45780,7 @@
  25. PHP_ICONV_PREFIX="$ICONV_DIR"
  26. fi
  27. - CFLAGS="-I$PHP_ICONV_PREFIX/include $CFLAGS"
  28. - LDFLAGS="-L$PHP_ICONV_PREFIX/$PHP_LIBDIR $LDFLAGS"
  29. -
  30. - if test -r "$PHP_ICONV_PREFIX/include/giconv.h"; then
  31. - PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/giconv.h"
  32. - else
  33. - PHP_ICONV_H_PATH="$PHP_ICONV_PREFIX/include/iconv.h"
  34. - fi
  35. + PHP_ICONV_H_PATH="iconv.h"
  36. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv is glibc's" >&5
  37. $as_echo_n "checking if iconv is glibc's... " >&6; }
  38. @@ -46191,8 +46178,6 @@
  39. ext_builddir=ext/iconv
  40. ext_srcdir=$abs_srcdir/ext/iconv
  41. - ac_extra=`echo "-I\"$PHP_ICONV_PREFIX/include\""|$SED s#@ext_srcdir@#$ext_srcdir#g|$SED s#@ext_builddir@#$ext_builddir#g`
  42. -
  43. if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
  44. PHP_ICONV_SHARED=no
  45. @@ -97419,12 +97404,6 @@
  46. if test -n "$unique" && test "`eval $cmd`" = "" ; then
  47. eval "INCLUDEPATH$unique=set"
  48. - if test ""; then
  49. - INCLUDES="-I$ai_p $INCLUDES"
  50. - else
  51. - INCLUDES="$INCLUDES -I$ai_p"
  52. - fi
  53. -
  54. fi
  55. fi