Blame gettext-runtime/gnulib-m4/setlocale.m4
|
Packit Bot |
06c835 |
# setlocale.m4 serial 4
|
|
Packit Bot |
06c835 |
dnl Copyright (C) 2011-2015 Free Software Foundation, Inc.
|
|
Packit Bot |
06c835 |
dnl This file is free software; the Free Software Foundation
|
|
Packit Bot |
06c835 |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit Bot |
06c835 |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
AC_DEFUN([gl_FUNC_SETLOCALE],
|
|
Packit Bot |
06c835 |
[
|
|
Packit Bot |
06c835 |
AC_REQUIRE([gl_LOCALE_H_DEFAULTS])
|
|
Packit Bot |
06c835 |
AC_REQUIRE([AC_CANONICAL_HOST])
|
|
Packit Bot |
06c835 |
case "$host_os" in
|
|
Packit Bot |
06c835 |
dnl On native Windows systems, setlocale(category,NULL) does not look at
|
|
Packit Bot |
06c835 |
dnl the environment variables LC_ALL, category, and LANG.
|
|
Packit Bot |
06c835 |
mingw*) REPLACE_SETLOCALE=1 ;;
|
|
Packit Bot |
06c835 |
dnl On Cygwin 1.5.x, setlocale always succeeds but setlocale(LC_CTYPE,NULL)
|
|
Packit Bot |
06c835 |
dnl is then still "C".
|
|
Packit Bot |
06c835 |
cygwin*)
|
|
Packit Bot |
06c835 |
case `uname -r` in
|
|
Packit Bot |
06c835 |
1.5.*) REPLACE_SETLOCALE=1 ;;
|
|
Packit Bot |
06c835 |
esac
|
|
Packit Bot |
06c835 |
;;
|
|
Packit Bot |
06c835 |
esac
|
|
Packit Bot |
06c835 |
])
|
|
Packit Bot |
06c835 |
|
|
Packit Bot |
06c835 |
# Prerequisites of lib/setlocale.c.
|
|
Packit Bot |
06c835 |
AC_DEFUN([gl_PREREQ_SETLOCALE],
|
|
Packit Bot |
06c835 |
[
|
|
Packit Bot |
06c835 |
:
|
|
Packit Bot |
06c835 |
])
|