diff options
Diffstat (limited to 'gl/m4/nl_langinfo.m4')
| -rw-r--r-- | gl/m4/nl_langinfo.m4 | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/gl/m4/nl_langinfo.m4 b/gl/m4/nl_langinfo.m4 index 9b1e0f32..a3ec57f7 100644 --- a/gl/m4/nl_langinfo.m4 +++ b/gl/m4/nl_langinfo.m4 | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # nl_langinfo.m4 | 1 | # nl_langinfo.m4 |
| 2 | # serial 12.1 | 2 | # serial 14 |
| 3 | dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2009-2026 Free Software Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| @@ -16,31 +16,6 @@ AC_DEFUN([gl_FUNC_NL_LANGINFO], | |||
| 16 | AC_REQUIRE([gl_PTHREADLIB]) | 16 | AC_REQUIRE([gl_PTHREADLIB]) |
| 17 | AC_CHECK_HEADERS_ONCE([threads.h]) | 17 | AC_CHECK_HEADERS_ONCE([threads.h]) |
| 18 | if test $ac_cv_func_nl_langinfo = yes; then | 18 | if test $ac_cv_func_nl_langinfo = yes; then |
| 19 | # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken. | ||
| 20 | AC_CACHE_CHECK([whether YESEXPR works], | ||
| 21 | [gl_cv_func_nl_langinfo_yesexpr_works], | ||
| 22 | [AC_RUN_IFELSE( | ||
| 23 | [AC_LANG_PROGRAM([[#include <langinfo.h> | ||
| 24 | ]], [[return !*nl_langinfo(YESEXPR); | ||
| 25 | ]])], | ||
| 26 | [gl_cv_func_nl_langinfo_yesexpr_works=yes], | ||
| 27 | [gl_cv_func_nl_langinfo_yesexpr_works=no], | ||
| 28 | [ | ||
| 29 | case "$host_os" in | ||
| 30 | # Guess no on irix systems. | ||
| 31 | irix*) gl_cv_func_nl_langinfo_yesexpr_works="guessing no";; | ||
| 32 | # Guess yes elsewhere. | ||
| 33 | *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";; | ||
| 34 | esac | ||
| 35 | ]) | ||
| 36 | ]) | ||
| 37 | case $gl_cv_func_nl_langinfo_yesexpr_works in | ||
| 38 | *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;; | ||
| 39 | *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;; | ||
| 40 | esac | ||
| 41 | AC_DEFINE_UNQUOTED([FUNC_NL_LANGINFO_YESEXPR_WORKS], | ||
| 42 | [$FUNC_NL_LANGINFO_YESEXPR_WORKS], | ||
| 43 | [Define to 1 if nl_langinfo (YESEXPR) returns a non-empty string.]) | ||
| 44 | # On macOS 26, Solaris 10, and Solaris 11.3, nl_langinfo is not | 19 | # On macOS 26, Solaris 10, and Solaris 11.3, nl_langinfo is not |
| 45 | # multithread-safe. | 20 | # multithread-safe. |
| 46 | case "$host_os" in | 21 | case "$host_os" in |
| @@ -50,11 +25,9 @@ AC_DEFUN([gl_FUNC_NL_LANGINFO], | |||
| 50 | AC_DEFINE_UNQUOTED([NL_LANGINFO_MTSAFE], [$NL_LANGINFO_MTSAFE], | 25 | AC_DEFINE_UNQUOTED([NL_LANGINFO_MTSAFE], [$NL_LANGINFO_MTSAFE], |
| 51 | [Define to 1 if nl_langinfo is multithread-safe.]) | 26 | [Define to 1 if nl_langinfo is multithread-safe.]) |
| 52 | if test $HAVE_LANGINFO_CODESET = 1 \ | 27 | if test $HAVE_LANGINFO_CODESET = 1 \ |
| 53 | && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \ | ||
| 54 | && test $HAVE_LANGINFO_ALTMON = 1 \ | 28 | && test $HAVE_LANGINFO_ALTMON = 1 \ |
| 55 | && test $HAVE_LANGINFO_ABALTMON = 1 \ | 29 | && test $HAVE_LANGINFO_ABALTMON = 1 \ |
| 56 | && test $HAVE_LANGINFO_ERA = 1 \ | 30 | && test $HAVE_LANGINFO_ERA = 1 \ |
| 57 | && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1 \ | ||
| 58 | && test $NL_LANGINFO_MTSAFE = 1; then | 31 | && test $NL_LANGINFO_MTSAFE = 1; then |
| 59 | : | 32 | : |
| 60 | else | 33 | else |
