+2007-03-26 Matthew Barnes <mbarnes@redhat.com>
+
+ * configure.in: Use AC_TRY_RUN instead of AC_TRY_LINK when checking
+ for iconv() in -liconv (#388788). Patch from Elijah Newren.
+
+ * iconv-detect.c: Fix an implicit function declaration.
+
2007-03-26 Harish Krishnaswamy <harish.krishnaswamy@gmail.com>
* MAINTAINERS : Updates on the new guards.
save_LIBS="$LIBS"
CFLAGS="$CFLAGS $ICONV_CFLAGS"
LIBS="$LIBS $ICONV_LIBS -liconv"
-AC_CACHE_CHECK(for iconv in -liconv, ac_cv_libiconv, AC_TRY_LINK([
+AC_CACHE_CHECK(for iconv in -liconv, ac_cv_libiconv, AC_TRY_RUN([
#include <iconv.h>
-], [
+
+int main (int argc, char **argv)
+{
iconv_t cd;
cd = iconv_open ("UTF-8", "ISO-8859-1");
-], ac_cv_libiconv=yes, ac_cv_libiconv=no))
+}
+], ac_cv_libiconv=yes, ac_cv_libiconv=no, ac_cv_libiconv=no))
if test $ac_cv_libiconv = yes; then
ICONV_LIBS="$ICONV_LIBS -liconv"
have_iconv=yes