EXIT AUTOCRAP \o/
[apps/madmutt.git] / configure.ac
index d49abb1..8076e94 100644 (file)
@@ -442,7 +442,6 @@ AM_GNU_GETTEXT
 if test "$am_cv_func_iconv" != "yes"; then
     AC_MSG_WARN([Configuring without iconv support. See INSTALL for details])
 else
-
     AC_CHECK_HEADERS(iconv.h,
         [AC_MSG_CHECKING(whether iconv.h defines iconv_t)
          AC_EGREP_HEADER([typedef.*iconv_t],iconv.h,
@@ -450,37 +449,6 @@ else
                  AC_DEFINE(HAVE_ICONV_T_DEF, 1,
                         [Define if <iconv.h> defines iconv_t.])],
                  AC_MSG_RESULT(no))])
-
-    dnl (1) Some implementations of iconv won't convert from UTF-8 to UTF-8.
-    dnl (2) In glibc-2.1.2 and earlier there is a bug that messes up ob and
-    dnl     obl when args 2 and 3 are 0 (fixed in glibc-2.1.3).
-    AC_CACHE_CHECK([whether this iconv is good enough], mutt_cv_iconv_good,
-                   LIBS="$LIBICONV"
-                   AC_TRY_RUN([
-#include <iconv.h>
-int main()
-{
-  iconv_t cd;
-changequote(, )dnl
-  char buf[4];
-changequote([, ])dnl
-  char *ob;
-  size_t obl;
-  ob = buf, obl = sizeof(buf);
-  return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
-          (iconv(cd, 0, 0, &ob, &obl) ||
-           !(ob == buf && obl == sizeof(buf)) ||
-           iconv_close(cd)));
-}
-                   ],
-                   mutt_cv_iconv_good=yes,
-                   mutt_cv_iconv_good=no,
-                   mutt_cv_iconv_good=yes)
-                   LIBS="")
-    if test "$mutt_cv_iconv_good" = no; then
-        AC_MSG_ERROR(Try using libiconv instead)
-    fi
-
 fi # libiconv
 
 dnl -- locales --