+AC_MSG_CHECKING(for location of iconv)
+if test "$am_cv_lib_iconv" = yes; then
+ AC_MSG_RESULT(libiconv)
+ gedcom_LIBICONV_HAS_ANSEL
+else
+ AC_MSG_RESULT(libc)
+ LCS_SUBDIRS=libcharset
+ LCS_INCLUDES='-I $(srcdir)/libcharset'
+ LCS_LIBADD=libcharset/libcharset.la
+ AC_SUBST(LCS_SUBDIRS)
+ AC_SUBST(LCS_INCLUDES)
+ AC_SUBST(LCS_LIBADD)
+ gedcom_GLIBC22_ICONV
+ if test "$is_glibc22_iconv" = yes; then
+ DIRS="glibc"
+ is_ansel_supported=yes
+ AC_SUBST(DIRS)
+ fi
+fi
+
+if test "$is_ansel_supported" != yes; then
+ AC_MSG_WARN([
+*******************************************************************************
+Your iconv implementation doesn't support ANSEL. Consider installing the
+modified libiconv library if you need ANSEL support in the Gedcom parser
+library (see README).
+*******************************************************************************
+ ])
+fi