X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d5e78944632398a4e31bca0c43cb4df3b30b1640..9291a5f82480f2458e04cb9ea7e6749bc952b308:/m4/iconv.m4 diff --git a/m4/iconv.m4 b/m4/iconv.m4 index efa6939f..4d7c4435 100644 --- a/m4/iconv.m4 +++ b/m4/iconv.m4 @@ -1,10 +1,10 @@ -dnl dnl Check for iconv support. It may be in libiconv and may be iconv() dnl or libiconv() dnl AC_DEFUN([NMH_CHECK_ICONV], -[AC_CHECK_HEADER([iconv.h], +[ICONV_ENABLED=0 +AC_CHECK_HEADER([iconv.h], [AC_CHECK_FUNC([iconv], [dnl This is where iconv is found in the default libraries (LIBS) nmh_found_iconv=yes @@ -21,7 +21,6 @@ AC_DEFUN([NMH_CHECK_ICONV], AS_IF([test "x$nmh_found_iconv" = "xyes"], [ICONVLIB="-liconv"])]) dnl If we came out of that by finding iconv in some form, define dnl HAVE_ICONV - ICONV_ENABLED=0 AS_IF([test "x$nmh_found_iconv" = "xyes"], [AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function.])