Mercurial > hg > octave-shane > gnulib-hg
annotate modules/search @ 11868:67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
This makes it so packages using automake-1.11's silent-rules option
can print e.g., a single "GEN configmake.h" line, rather than
the 30+ statements that perform the job. If you want to see the
actual commands, you can still run "make V=1".
Improved-by: Bruno Haible <bruno@clisp.org>
* modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
so that make output is abbreviated when those variables are defined
appropriately.
* modules/argz: Likewise.
* modules/arpa_inet: Likewise.
* modules/byteswap: Likewise.
* modules/configmake: Likewise.
* modules/dirent: Likewise.
* modules/errno: Likewise.
* modules/fcntl: Likewise.
* modules/float: Likewise.
* modules/fnmatch: Likewise.
* modules/getopt-posix: Likewise.
* modules/glob: Likewise.
* modules/iconv_open: Likewise.
* modules/inttypes: Likewise.
* modules/localcharset: Likewise.
* modules/locale: Likewise.
* modules/math: Likewise.
* modules/netdb: Likewise.
* modules/netinet_in: Likewise.
* modules/poll: Likewise.
* modules/posix_spawnp-tests: Likewise.
* modules/sched: Likewise.
* modules/search: Likewise.
* modules/selinux-h: Likewise.
* modules/signal: Likewise.
* modules/spawn: Likewise.
* modules/stdarg: Likewise.
* modules/stdbool: Likewise.
* modules/stddef: Likewise.
* modules/stdint: Likewise.
* modules/stdio: Likewise.
* modules/stdlib: Likewise.
* modules/string: Likewise.
* modules/strings: Likewise.
* modules/sys_file: Likewise.
* modules/sys_ioctl: Likewise.
* modules/sys_select: Likewise.
* modules/sys_socket: Likewise.
* modules/sys_stat: Likewise.
* modules/sys_time: Likewise.
* modules/sys_times: Likewise.
* modules/sys_utsname: Likewise.
* modules/sys_wait: Likewise.
* modules/sysexits: Likewise.
* modules/time: Likewise.
* modules/unistd: Likewise.
* modules/wchar: Likewise.
* modules/wctype: Likewise.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sat, 22 Aug 2009 11:28:08 +0200 |
parents | f96e845fc36d |
children | 18ea6ab4e81d |
rev | line source |
---|---|
8532 | 1 Description: |
2 A GNU-like <search.h>. | |
3 | |
4 Files: | |
9258
bee5960c276a
Rename search_.h to search.in.h.
Bruno Haible <bruno@clisp.org>
parents:
8995
diff
changeset
|
5 lib/search.in.h |
8532 | 6 m4/search_h.m4 |
7 | |
8 Depends-on: | |
8995
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8819
diff
changeset
|
9 include_next |
8532 | 10 link-warning |
11 | |
12 configure.ac: | |
13 gl_SEARCH_H | |
14 | |
15 Makefile.am: | |
16 BUILT_SOURCES += search.h | |
17 | |
18 # We need the following in order to create <search.h> when the system | |
19 # doesn't have one that works with the given compiler. | |
9258
bee5960c276a
Rename search_.h to search.in.h.
Bruno Haible <bruno@clisp.org>
parents:
8995
diff
changeset
|
20 search.h: search.in.h |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
10375
diff
changeset
|
21 $(AM_V_GEN)rm -f $@-t $@ && \ |
8532 | 22 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ |
23 sed -e 's|@''HAVE_SEARCH_H''@|$(HAVE_SEARCH_H)|g' \ | |
10375
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9595
diff
changeset
|
24 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
f96e845fc36d
Avoid some "gcc -pedantic" warnings.
Bruno Haible <bruno@clisp.org>
parents:
9595
diff
changeset
|
25 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ |
8995
1025663f7658
* m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
Paul Eggert <eggert@cs.ucla.edu>
parents:
8819
diff
changeset
|
26 -e 's|@''NEXT_SEARCH_H''@|$(NEXT_SEARCH_H)|g' \ |
8532 | 27 -e 's|@''GNULIB_TSEARCH''@|$(GNULIB_TSEARCH)|g' \ |
28 -e 's|@''HAVE_TSEARCH''@|$(HAVE_TSEARCH)|g' \ | |
9595
53dc0fa4233a
Work around OpenBSD 4.0 tdelete() bug.
Bruno Haible <bruno@clisp.org>
parents:
9258
diff
changeset
|
29 -e 's|@''REPLACE_TSEARCH''@|$(REPLACE_TSEARCH)|g' \ |
8532 | 30 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ |
9258
bee5960c276a
Rename search_.h to search.in.h.
Bruno Haible <bruno@clisp.org>
parents:
8995
diff
changeset
|
31 < $(srcdir)/search.in.h; \ |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
10375
diff
changeset
|
32 } > $@-t && \ |
8532 | 33 mv $@-t $@ |
34 MOSTLYCLEANFILES += search.h search.h-t | |
35 | |
36 Include: | |
37 #include <search.h> | |
38 | |
39 License: | |
40 LGPL | |
41 | |
42 Maintainer: | |
43 all |