Mercurial > hg > octave-lojdl > gnulib-hg
annotate modules/locale @ 14894:b22360ddefc4
gnulib-tool: Better isolation between different gnulib-tool invocations.
* gnulib-tool: New option --witness-c-macro.
(witness_c_macro): New variable.
(func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
AM_CPPFLAGS define it as a C macro.
(func_emit_tests_Makefile_am): Likewise.
(func_import): Store witness_c_macro setting in gnulib-cache.m4 and
read it from there.
* m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
m4_define, not AC_DEFUN.
(gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
(gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
* modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
s|...|...|, to substitute the values of the GNULIB_* module indicator
variables.
* modules/dirent (Makefile.am): Likewise.
* modules/fcntl-h (Makefile.am): Likewise.
* modules/iconv-h (Makefile.am): Likewise.
* modules/langinfo (Makefile.am): Likewise.
* modules/locale (Makefile.am): Likewise.
* modules/math (Makefile.am): Likewise.
* modules/netdb (Makefile.am): Likewise.
* modules/poll-h (Makefile.am): Likewise.
* modules/pty (Makefile.am): Likewise.
* modules/search (Makefile.am): Likewise.
* modules/signal (Makefile.am): Likewise.
* modules/spawn (Makefile.am): Likewise.
* modules/stdio (Makefile.am): Likewise.
* modules/stdlib (Makefile.am): Likewise.
* modules/string (Makefile.am): Likewise.
* modules/sys_ioctl (Makefile.am): Likewise.
* modules/sys_select (Makefile.am): Likewise.
* modules/sys_socket (Makefile.am): Likewise.
* modules/sys_stat (Makefile.am): Likewise.
* modules/sys_times (Makefile.am): Likewise.
* modules/sys_utsname (Makefile.am): Likewise.
* modules/sys_wait (Makefile.am): Likewise.
* modules/termios (Makefile.am): Likewise.
* modules/time (Makefile.am): Likewise.
* modules/unistd (Makefile.am): Likewise.
* modules/wchar (Makefile.am): Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 08 Jun 2011 13:23:56 +0200 |
parents | 5f709022a256 |
children | 768296dab89a |
rev | line source |
---|---|
8660 | 1 Description: |
2 A <locale.h> that conforms to POSIX. | |
3 | |
4 Files: | |
9254
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
8998
diff
changeset
|
5 lib/locale.in.h |
8660 | 6 m4/locale_h.m4 |
7 | |
8 Depends-on: | |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
12342
diff
changeset
|
9 arg-nonnull |
12935
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
10 c++defs |
12340
2da64958ab60
locale: Make locale_t available when possible.
Bruno Haible <bruno@clisp.org>
parents:
11868
diff
changeset
|
11 extensions |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12536
diff
changeset
|
12 include_next |
11832
ff3dd373542b
stddef: fix NetBSD 5.0 NULL bug, rather than working around it
Eric Blake <ebb9@byu.net>
parents:
10375
diff
changeset
|
13 stddef |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12536
diff
changeset
|
14 warn-on-use |
8660 | 15 |
16 configure.ac: | |
17 gl_LOCALE_H | |
18 | |
19 Makefile.am: | |
12536
cd64e80f94e4
link-warning: always build headers with link warnings
Eric Blake <ebb9@byu.net>
parents:
12524
diff
changeset
|
20 BUILT_SOURCES += locale.h |
8660 | 21 |
22 # We need the following in order to create <locale.h> when the system | |
23 # doesn't have one that provides all definitions. | |
14527
049942251f65
Ensure to rebuild generated .h files when config.status has changed.
Bruno Haible <bruno@clisp.org>
parents:
14330
diff
changeset
|
24 locale.h: locale.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
11832
diff
changeset
|
25 $(AM_V_GEN)rm -f $@-t $@ && \ |
8660 | 26 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ |
14840
5f709022a256
Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents:
14527
diff
changeset
|
27 sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \ |
5f709022a256
Allow multiple gnulib generated include files to be combined.
Bruno Haible <bruno@clisp.org>
parents:
14527
diff
changeset
|
28 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
10375
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9254
diff
changeset
|
29 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
13761
a19ace3ba849
Avoid line length limitation from HP NonStop system header files.
Bruno Haible <bruno@clisp.org>
parents:
13288
diff
changeset
|
30 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
8998
442682a45bcd
* m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
Paul Eggert <eggert@cs.ucla.edu>
parents:
8825
diff
changeset
|
31 -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \ |
14894
b22360ddefc4
gnulib-tool: Better isolation between different gnulib-tool invocations.
Bruno Haible <bruno@clisp.org>
parents:
14840
diff
changeset
|
32 -e 's/@''GNULIB_SETLOCALE''@/$(GNULIB_SETLOCALE)/g' \ |
b22360ddefc4
gnulib-tool: Better isolation between different gnulib-tool invocations.
Bruno Haible <bruno@clisp.org>
parents:
14840
diff
changeset
|
33 -e 's/@''GNULIB_DUPLOCALE''@/$(GNULIB_DUPLOCALE)/g' \ |
12935
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
34 -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \ |
12340
2da64958ab60
locale: Make locale_t available when possible.
Bruno Haible <bruno@clisp.org>
parents:
11868
diff
changeset
|
35 -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \ |
14330 | 36 -e 's|@''REPLACE_SETLOCALE''@|$(REPLACE_SETLOCALE)|g' \ |
12342 | 37 -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \ |
12935
3e591f7f34d8
locale: Avoid #define replacements in C++ mode.
Bruno Haible <bruno@clisp.org>
parents:
12766
diff
changeset
|
38 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ |
12422
f7842310a565
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Bruno Haible <bruno@clisp.org>
parents:
12342
diff
changeset
|
39 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12536
diff
changeset
|
40 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ |
9254
aa96ae5634ab
Rename locale_.h to locale.in.h.
Bruno Haible <bruno@clisp.org>
parents:
8998
diff
changeset
|
41 < $(srcdir)/locale.in.h; \ |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
11832
diff
changeset
|
42 } > $@-t && \ |
8660 | 43 mv $@-t $@ |
44 MOSTLYCLEANFILES += locale.h locale.h-t | |
45 | |
46 Include: | |
47 <locale.h> | |
48 | |
49 License: | |
13288
0083b2c84821
headers: relax license to LGPLv2+
Eric Blake <eblake@redhat.com>
parents:
12935
diff
changeset
|
50 LGPLv2+ |
8660 | 51 |
52 Maintainer: | |
53 Bruno Haible |