Mercurial > hg > octave-shane > gnulib-hg
annotate m4/setlocale.m4 @ 16201:8250f2777afc
maint: update all copyright year number ranges
Run "make update-copyright".
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sun, 01 Jan 2012 10:04:58 +0100 |
parents | e5a3db1759c6 |
children | e542fd46ad6f |
rev | line source |
---|---|
15091
e5a3db1759c6
setlocale: Move AC_LIBOBJ invocations to module description.
Bruno Haible <bruno@clisp.org>
parents:
14860
diff
changeset
|
1 # setlocale.m4 serial 4 |
16201
8250f2777afc
maint: update all copyright year number ranges
Jim Meyering <meyering@redhat.com>
parents:
15091
diff
changeset
|
2 dnl Copyright (C) 2011-2012 Free Software Foundation, Inc. |
14330 | 3 dnl This file is free software; the Free Software Foundation |
4 dnl gives unlimited permission to copy and/or distribute it, | |
5 dnl with or without modifications, as long as this notice is preserved. | |
6 | |
7 AC_DEFUN([gl_FUNC_SETLOCALE], | |
8 [ | |
9 AC_REQUIRE([gl_LOCALE_H_DEFAULTS]) | |
10 AC_REQUIRE([AC_CANONICAL_HOST]) | |
11 case "$host_os" in | |
12 dnl On native Windows systems, setlocale(category,NULL) does not look at | |
13 dnl the environment variables LC_ALL, category, and LANG. | |
14 mingw*) REPLACE_SETLOCALE=1 ;; | |
14860
c12e3d2438e8
setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents:
14685
diff
changeset
|
15 dnl On Cygwin 1.5.x, setlocale always succeeds but setlocale(LC_CTYPE,NULL) |
c12e3d2438e8
setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents:
14685
diff
changeset
|
16 dnl is then still "C". |
c12e3d2438e8
setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents:
14685
diff
changeset
|
17 cygwin*) |
c12e3d2438e8
setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents:
14685
diff
changeset
|
18 case `uname -r` in |
c12e3d2438e8
setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents:
14685
diff
changeset
|
19 1.5.*) REPLACE_SETLOCALE=1 ;; |
c12e3d2438e8
setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents:
14685
diff
changeset
|
20 esac |
c12e3d2438e8
setlocale: Enable replacement on Cygwin 1.5.
Bruno Haible <bruno@clisp.org>
parents:
14685
diff
changeset
|
21 ;; |
14330 | 22 esac |
23 ]) | |
24 | |
25 # Prerequisites of lib/setlocale.c. | |
26 AC_DEFUN([gl_PREREQ_SETLOCALE], | |
27 [ | |
28 : | |
29 ]) |