Ethan Merritt writes:
> Copyied from the newsgroup, in the hope that someone will
> volunteer to add the appropriate checks to ./configure.in
Try this fragment. I added it to GD's configure for 2.0.9.
AM_ICONV
if test -n "$LIBICONV" ; then
LIBS="$LIBS $LIBICONV"
fi
AC_CHECK_HEADERS(iconv.h,
[AC_MSG_CHECKING(whether iconv.h defines iconv_t)
AC_EGREP_HEADER([typedef.*iconv_t],iconv.h,
[AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_ICONV_T_DEF, 1,
[Define if <iconv.h> defines iconv_t.])],
AC_MSG_RESULT(no))])
|