diff options
author | jcid <devnull@localhost> | 2008-01-30 18:49:39 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-01-30 18:49:39 +0100 |
commit | 04b9283ab8718eea29b17bd97b7807caf6fd8de5 (patch) | |
tree | 926e2fe90a029d35b5d2f0e24f77d316e91e7217 | |
parent | 2adb84ae5ffb30bc8d5f426266d7af47938ae4f2 (diff) |
- Another try at iconv detection for OpenBSD
-rw-r--r-- | configure.in | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 21ad38a1..36e4285c 100644 --- a/configure.in +++ b/configure.in @@ -300,15 +300,21 @@ if test "x$ssl_ok" = "xyes"; then AC_DEFINE([ENABLE_SSL], [], [Enable SSL support]) fi -dnl ---------------------- +dnl -------------------------------------------------------------- dnl Test for iconv functionality in libc or for libiconv usability -dnl ---------------------- +dnl -------------------------------------------------------------- AC_CHECK_HEADER(iconv.h, iconv_ok=yes, iconv_ok=no) if test "x$iconv_ok" = "xyes"; then AC_CHECK_LIB(c, iconv_open, LIBICONV_LIBS="", AC_CHECK_LIB(iconv, iconv_open, LIBICONV_LIBS="-liconv", iconv_ok=no)) fi if test "x$iconv_ok" = "xno"; then + dnl Test for OpenBSD + AC_TRY_COMPILE([#include <iconv.h>],[iconv_open("","");], + iconv_ok=yes, iconv_ok=no) +fi + +if test "x$iconv_ok" = "xno"; then AC_ERROR(libiconv must be installed!) fi |