This gcc version links with -lintl -liconv by default, making it appear as if
gettext() et al. were defined in libc. But GNU gettext still needs to build a
new libintl.
* gettext-runtime/m4/gettext.m4 (AM_GNU_GETTEXT): On Cygwin, set
USE_INCLUDED_LIBINTL=yes regardless of the gcc version.
fi
fi
- if test "$gt_cv_use_gnu_libintl" = "yes"; then
+ AC_REQUIRE([AC_CANONICAL_HOST])
+ if test "$gt_cv_use_gnu_libintl" = "yes" \
+ || case "$host_os" in cygwin*) true;; *) false;; esac; then
+ dnl GNU gettext is not found in the C library or is,
+ dnl like on Cygwin, a component of the C library.
dnl Mark actions used to generate GNU NLS library.
USE_INCLUDED_LIBINTL=yes
LIBINTL="m4_if([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LIBICONV $LIBTHREAD"