diff options
author | Bruno Haible <bruno@clisp.org> | 2005-08-15 10:38:00 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:12:46 +0200 |
commit | 46cd0e98ad2e43c6ef6f0e4eae58cd1b273357c2 (patch) | |
tree | e8efeeec0f1dedfb96a09113df6dc851cb485c7f /gettext-runtime | |
parent | a2543642102d3ebcaad6d014a075a058244c3fcc (diff) | |
download | external_gettext-46cd0e98ad2e43c6ef6f0e4eae58cd1b273357c2.zip external_gettext-46cd0e98ad2e43c6ef6f0e4eae58cd1b273357c2.tar.gz external_gettext-46cd0e98ad2e43c6ef6f0e4eae58cd1b273357c2.tar.bz2 |
Include locale.h, for LC_MESSAGES to be defined.
Diffstat (limited to 'gettext-runtime')
-rw-r--r-- | gettext-runtime/m4/ChangeLog | 4 | ||||
-rw-r--r-- | gettext-runtime/m4/gettext.m4 | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gettext-runtime/m4/ChangeLog b/gettext-runtime/m4/ChangeLog index 128dedf..2ebf327 100644 --- a/gettext-runtime/m4/ChangeLog +++ b/gettext-runtime/m4/ChangeLog @@ -1,3 +1,7 @@ +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 diff --git a/gettext-runtime/m4/gettext.m4 b/gettext-runtime/m4/gettext.m4 index 9ab4bcf..756c0bd 100644 --- a/gettext-runtime/m4/gettext.m4 +++ b/gettext-runtime/m4/gettext.m4 @@ -443,7 +443,8 @@ __fsetlocking]) 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) |