diff options
author | Bruno Haible <bruno@clisp.org> | 2018-02-24 12:59:59 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2018-02-24 12:59:59 +0100 |
commit | ddd23eb80039b54284e18cba299a5764f1b65bc6 (patch) | |
tree | 8d6fa574644f16fd38a634f295a0dd7a9db652e9 /m4 | |
parent | d9ff660d1908a02733946f7f19a96ebd2feff3b9 (diff) | |
download | gnulib-ddd23eb80039b54284e18cba299a5764f1b65bc6.tar.gz |
localename: Add support for musl libc.
* m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
* lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
on Linux platforms which define NL_LOCALE_NAME.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/localename.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/localename.m4 b/m4/localename.m4 index 0ac4529a06..a0e136754e 100644 --- a/m4/localename.m4 +++ b/m4/localename.m4 @@ -1,4 +1,4 @@ -# localename.m4 serial 2 +# localename.m4 serial 3 dnl Copyright (C) 2007, 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, @@ -8,6 +8,7 @@ AC_DEFUN([gl_LOCALENAME], [ AC_REQUIRE([gt_LC_MESSAGES]) AC_REQUIRE([gt_INTL_MACOSX]) + AC_CHECK_HEADERS_ONCE([langinfo.h]) AC_CHECK_FUNCS([setlocale uselocale]) dnl Solaris 12 provides getlocalename_l, while Illumos doesn't have dnl it nor the equivalent. |