]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Include locale.h, for LC_MESSAGES to be defined.
authorBruno Haible <bruno@clisp.org>
Mon, 15 Aug 2005 10:38:00 +0000 (10:38 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:46 +0000 (12:12 +0200)
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/gettext.m4

index 128dedf3f786f06419f9fa33407a706468a98053..2ebf327158e7bee8f95a8a098eb3f0b2c7becd7e 100644 (file)
@@ -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
index 9ab4bcfa5a0d6dc33816204af5cf502529ebd1a6..756c0bd4ebf5eadd39973877b85184b8381685d4 100644 (file)
@@ -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)