diff options
-rw-r--r-- | configure.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in index cfacf35..545bb98 100644 --- a/configure.in +++ b/configure.in | |||
@@ -84,6 +84,17 @@ dnl now check for const char *msg argument in iconv(..) | |||
84 | [ AC_MSG_RESULT([yes (non const msg)])], | 84 | [ AC_MSG_RESULT([yes (non const msg)])], |
85 | [ AC_DEFINE(HAVE_CONST_ICONV, 1, "iconv") | 85 | [ AC_DEFINE(HAVE_CONST_ICONV, 1, "iconv") |
86 | AC_MSG_RESULT([yes (const msg)])]) | 86 | AC_MSG_RESULT([yes (const msg)])]) |
87 | |||
88 | dnl Check if iconv is part of libiconv | ||
89 | AC_CHECK_LIB(iconv, iconv_close, | ||
90 | AC_MSG_CHECKING([for iconv_close in libiconv]) | ||
91 | AC_TRY_LINK( | ||
92 | #include <iconv.h>, | ||
93 | [int main() { return iconv_close((iconv_t)(-1)); }], | ||
94 | AC_MSG_RESULT([yes]), | ||
95 | LIBS="$LIBS -liconv" | ||
96 | ) | ||
97 | ) | ||
87 | else | 98 | else |
88 | AC_MSG_RESULT([no]) | 99 | AC_MSG_RESULT([no]) |
89 | fi | 100 | fi |