verify: new macro 'assume'
[gnulib.git] / modules / sys_file
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
10 snippet/warn-on-use
11
12 configure.ac:
13 gl_HEADER_SYS_FILE_H
14 AC_PROG_MKDIR_P
15
16 Makefile.am:
17 BUILT_SOURCES += sys/file.h
18
19 # We need the following in order to create <sys/file.h> when the system
20 # has one that is incomplete.
21 sys/file.h: sys_file.in.h $(top_builddir)/config.status $(WARN_ON_USE_H)
22         $(AM_V_at)$(MKDIR_P) sys
23         $(AM_V_GEN)rm -f $@-t $@ && \
24         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
25           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
26               -e 's/@''HAVE_SYS_FILE_H''@/$(HAVE_SYS_FILE_H)/g' \
27               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
28               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
29               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
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' \
33               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
34               < $(srcdir)/sys_file.in.h; \
35         } > $@-t && \
36         mv $@-t $@
37 MOSTLYCLEANFILES += sys/file.h sys/file.h-t
38 MOSTLYCLEANDIRS += sys
39
40 Include:
41 <sys/file.h>
42
43 License:
44 LGPLv2+
45
46 Maintainer:
47 all