From 72b547b83639b79a7fd85b4797ed934600024bc4 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 23 Oct 2011 00:10:50 +0200 Subject: [PATCH] Detection: link iconv for libintl Sometimes required for mingw32 cross-builds --- ac/translations.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ac/translations.m4 b/ac/translations.m4 index f2e838601..73e8790ab 100644 --- a/ac/translations.m4 +++ b/ac/translations.m4 @@ -5,7 +5,9 @@ AC_CHECK_FUNCS(gettext, gettext_found=yes, gettext_found=no) if test x"$gettext_found" != xyes ; then AC_CHECK_LIB(intl, gettext, [ LIBINTL_LIBS="-lintl"; - gettext_found=yes ], gettext_found=no) + gettext_found=yes ], + [ gettext_found=no ], + [ -liconv ]) fi if test x"$gettext_found" = xyes ; then AC_CHECK_HEADERS(libintl.h, libintl_h_found=yes, libintl_h_found=no)