]> Savannah Git Hosting - gnulib.git/commitdiff
nl_langinfo: Override the system's nl_langinfo() when needed.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Feb 2018 10:00:38 +0000 (11:00 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Feb 2018 10:00:38 +0000 (11:00 +0100)
Reported by Jim Meyering.

* m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.

ChangeLog
m4/nl_langinfo.m4

index 14be7f241f09637ff01261b336ecb657eda16053..4774307ccc3e8832096afdfbc8dffd6f6cb6667e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-02-04  Bruno Haible  <bruno@clisp.org>
+
+       nl_langinfo: Override the system's nl_langinfo() when needed.
+       Reported by Jim Meyering.
+       * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
+       also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
+
 2018-02-04  Bruno Haible  <bruno@clisp.org>
 
        signal-h, monetary, strings: Fix build failure in some cases.
index 9ac25f032c19fddf9c5d6d4737e1eb86c04145d3..82d475024ac425ae5d1c5f7d90a3208c22f5c068 100644 (file)
@@ -1,4 +1,4 @@
-# nl_langinfo.m4 serial 5
+# nl_langinfo.m4 serial 6
 dnl Copyright (C) 2009-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -36,8 +36,11 @@ AC_DEFUN([gl_FUNC_NL_LANGINFO],
     AC_DEFINE_UNQUOTED([FUNC_NL_LANGINFO_YESEXPR_WORKS],
       [$FUNC_NL_LANGINFO_YESEXPR_WORKS],
       [Define to 1 if nl_langinfo (YESEXPR) returns a non-empty string.])
-    if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
-        && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
+    if test $HAVE_LANGINFO_CODESET = 1 \
+       && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \
+       && test $HAVE_LANGINFO_ALTMON = 1 \
+       && test $HAVE_LANGINFO_ERA = 1 \
+       && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
       :
     else
       REPLACE_NL_LANGINFO=1