--- m4/iconv.m4.orig Fri Jun 15 00:44:35 2001 +++ m4/iconv.m4 Fri Jun 15 00:45:30 2001 @@ -19,16 +19,16 @@ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include -#include ], +#include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], am_cv_func_iconv=yes) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" - LIBS="$LIBS -liconv" + LIBS="$LIBS -lgiconv" AC_TRY_LINK([#include -#include ], +#include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], @@ -43,7 +43,7 @@ AC_CACHE_VAL(am_cv_proto_iconv, [ AC_TRY_COMPILE([ #include -#include +#include extern #ifdef __cplusplus "C" @@ -63,7 +63,7 @@ fi LIBICONV= if test "$am_cv_lib_iconv" = yes; then - LIBICONV="-liconv" + LIBICONV="-lgiconv" fi AC_SUBST(LIBICONV) ])