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