patch-configure_ac 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --- weechat-0.4.3.orig/configure.ac 2014-02-09 09:52:53.000000000 +0100
  2. +++ weechat-0.4.3/configure.ac 2014-06-24 08:07:06.000000000 +0200
  3. @@ -232,33 +232,7 @@ fi
  4. ICONV_LFLAGS=""
  5. -iconv_found="no"
  6. -AC_CHECK_HEADER(iconv.h,ac_found_iconv_header="yes",ac_found_iconv_header="no")
  7. -if test "x$ac_found_iconv_header" = "xyes" ; then
  8. - AC_CHECK_LIB(iconv,iconv_open,ac_found_iconv_lib="yes",ac_found_iconv_lib="no")
  9. - if test "x$ac_found_iconv_lib" = "xno" ; then
  10. - AC_CHECK_LIB(iconv,libiconv_open,ac_found_iconv_lib="yes",ac_found_iconv_lib="no")
  11. - fi
  12. - if test "x$ac_found_iconv_lib" = "xyes" ; then
  13. - ICONV_LFLAGS="-liconv"
  14. - LIBS="$LIBS $ICONV_LFLAGS"
  15. - fi
  16. - AC_MSG_CHECKING(for iconv usability in programs)
  17. - AC_TRY_RUN([
  18. - #include <iconv.h>
  19. - int main(int argc, char **argv) {
  20. - iconv_t conv = iconv_open("ISO8859-1", "UTF-8");
  21. - if (conv != (iconv_t) -1) {
  22. - return 0;
  23. - }
  24. - return 1;
  25. - }],iconv_found="yes")
  26. - if test "x$iconv_found" = "xno" ; then
  27. - AC_MSG_RESULT(no)
  28. - else
  29. - AC_MSG_RESULT(yes)
  30. - fi
  31. -fi
  32. +iconv_found="yes"
  33. if test "x$iconv_found" = "xno" ; then
  34. AC_MSG_ERROR([