From 16465a0f1712f22813c26f82a2315f7bc2d42f82 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Fri, 26 Aug 2005 20:30:19 +0000 Subject: [PATCH] Using AM_ICONV for better detection of libiconv. --- SConstruct | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/SConstruct b/SConstruct index 5d90333e..5a2b6a6f 100644 --- a/SConstruct +++ b/SConstruct @@ -1164,11 +1164,28 @@ AM_SANITY_CHECK AM_PROG_LIBTOOL AM_PROG_CC_C_O +AM_ICONV + # # Some checks # +# -- iconv +AC_MSG_CHECKING([if an usable version of iconv exists (required)]) +AC_TRY_LINK( +[ + #include +],[ + iconv_t x = iconv_open("", ""); + return 0; +],[ + AC_MSG_RESULT(yes) +],[ + AC_MSG_RESULT(no) + AC_ERROR(no usable version of iconv has been found) +]) + # -- global constructors (stolen from 'configure.in' in libsigc++) AC_MSG_CHECKING([if linker supports global constructors]) cat > mylib.$ac_ext <