AC_MSG_ERROR([iconv is required on non-Windows platforms]);;
esac])
+# If possible, we use libcharset instead of nl_langinfo(CODESET) to
+# determine the current locale's character encoding.
+FP_SEARCH_LIBS_PROTO(
+ [locale_charset],
+ [#include <libcharset.h>],
+ [const char* charset = locale_charset();],
+ [charset],
+ [AC_DEFINE([HAVE_LIBCHARSET], [1], [Define to 1 if you have libcharset.])
+ EXTRA_LIBS="$EXTRA_LIBS $ac_lib"])
+
+
AC_SUBST(EXTRA_LIBS)
AC_CONFIG_FILES([base.buildinfo])