From 3087f4c1c9928b666dda1f1a84bb3c9708ea3e7c Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 20 Apr 2004 11:06:08 +0000 Subject: [PATCH] Fixed test for iconv_t --- configure.ac | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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\ -- 2.45.2