From: Sergey Poznyakoff Date: Tue, 20 Apr 2004 11:06:08 +0000 (+0000) Subject: Fixed test for iconv_t X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=3087f4c1c9928b666dda1f1a84bb3c9708ea3e7c;p=chaz%2Ftar Fixed test for iconv_t --- diff --git a/configure.ac b/configure.ac index 9279683..cdeb3bf 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ])]) +AC_CHECK_HEADERS(iconv.h) +AC_CHECK_TYPE(iconv_t,:, + AC_DEFINE(iconv_t, int, + [Conversion descriptor type]), + [ +#ifdef HAVE_ICONV_H +# include +#endif +]) AC_OUTPUT([Makefile\ doc/Makefile\