+2005-08-15 Bruno Haible <bruno@clisp.org>
+
+ * gettext.m4 (AM_INTL_SUBDIR): Fix test for NL_LOCALE_NAME macro.
+
2005-07-28 Stepan Kasal <kasal@ucw.cz>
* gettext.m4 (AM_GNU_GETTEXT): Don't use changequote, add pairs of
dnl glibc >= 2.4 has a NL_LOCALE_NAME macro when _GNU_SOURCE is defined,
dnl and a _NL_LOCALE_NAME macro always.
AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name,
- [AC_TRY_LINK([#include <langinfo.h>],
+ [AC_TRY_LINK([#include <langinfo.h>
+#include <locale.h>],
[char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));],
gt_cv_nl_locale_name=yes,
gt_cv_nl_locale_name=no)