Mercurial > hg > octave-lojdl > gnulib-hg
annotate modules/sys_file @ 17476:6057744acd2c default tip master
autoupdate
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Fri, 16 Aug 2013 06:32:22 -0700 |
parents | d2437ed29d20 |
children |
rev | line source |
---|---|
10598 | 1 Description: |
2 <sys/file.h> for systems with an incomplete header. | |
3 | |
4 Files: | |
5 lib/sys_file.in.h | |
6 m4/sys_file_h.m4 | |
7 | |
8 Depends-on: | |
9 include_next | |
15419
d2437ed29d20
Rename module 'warn-on-use' to 'snippet/warn-on-use'.
Bruno Haible <bruno@clisp.org>
parents:
14840
diff
changeset
|
10 snippet/warn-on-use |
10598 | 11 |
12 configure.ac: | |
13 gl_HEADER_SYS_FILE_H | |
14 AC_PROG_MKDIR_P | |
15 | |
16 Makefile.am: | |
12536
cd64e80f94e4
link-warning: always build headers with link warnings
Eric Blake <ebb9@byu.net>
parents:
12524
diff
changeset
|
17 BUILT_SOURCES += sys/file.h |
10598 | 18 |
19 # We need the following in order to create <sys/file.h> when the system | |
20 # has one that is incomplete. | |
14527
049942251f65
Ensure to rebuild generated .h files when config.status has changed.
Bruno Haible <bruno@clisp.org>
parents:
14273
diff
changeset
|
21 sys/file.h: sys_file.in.h $(top_builddir)/config.status $(WARN_ON_USE_H) |
11926
79c91e5cce7a
Use $(MKDIR_P) instead of @MKDIR_P@.
Simon Josefsson <simon@josefsson.org>
parents:
11868
diff
changeset
|
22 $(AM_V_at)$(MKDIR_P) sys |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
10598
diff
changeset
|
23 $(AM_V_GEN)rm -f $@-t $@ && \ |
10598 | 24 { 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
|
25 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
|
26 -e 's/@''HAVE_SYS_FILE_H''@/$(HAVE_SYS_FILE_H)/g' \ |
10598 | 27 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ |
28 -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:
12766
diff
changeset
|
29 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ |
10598 | 30 -e 's|@''NEXT_SYS_FILE_H''@|$(NEXT_SYS_FILE_H)|g' \ |
31 -e 's/@''HAVE_FLOCK''@/$(HAVE_FLOCK)/g' \ | |
32 -e 's/@''GNULIB_FLOCK''@/$(GNULIB_FLOCK)/g' \ | |
12766
2c14f1e449e5
warn-on-use: use instead of link-warning
Eric Blake <ebb9@byu.net>
parents:
12536
diff
changeset
|
33 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ |
10598 | 34 < $(srcdir)/sys_file.in.h; \ |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
10598
diff
changeset
|
35 } > $@-t && \ |
10598 | 36 mv $@-t $@ |
37 MOSTLYCLEANFILES += sys/file.h sys/file.h-t | |
38 MOSTLYCLEANDIRS += sys | |
39 | |
40 Include: | |
12008
18ea6ab4e81d
maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents:
11926
diff
changeset
|
41 <sys/file.h> |
10598 | 42 |
43 License: | |
44 LGPLv2+ | |
45 | |
46 Maintainer: | |
47 all |