Fixed test for iconv_t

This commit is contained in:
Sergey Poznyakoff
2004-04-20 11:06:08 +00:00
parent 1b0a1ba7ed
commit 3087f4c1c9

View File

@@ -278,11 +278,15 @@ AM_GNU_GETTEXT_VERSION(0.12.1)
# Iconv
AM_ICONV
AC_CHECK_HEADERS(iconv.h,
[AC_CHECK_TYPE(iconv_t,:,
AC_DEFINE(iconv_t, int,
[Conversion descriptor type]),
[#include <iconv.h>])])
AC_CHECK_HEADERS(iconv.h)
AC_CHECK_TYPE(iconv_t,:,
AC_DEFINE(iconv_t, int,
[Conversion descriptor type]),
[
#ifdef HAVE_ICONV_H
# include <iconv.h>
#endif
])
AC_OUTPUT([Makefile\
doc/Makefile\