bad77be84f5416cc89cb638183182326e0bc9bde
[gnulib.git] / modules / sys_stat
1 Description:
2 A <sys/stat.h> for systems with missing declarations.
3
4 Files:
5 lib/sys_stat.in.h
6 m4/sys_stat_h.m4
7 m4/openat.m4
8 m4/unistd_h.m4
9
10 Depends-on:
11 include_next
12 link-warning
13
14 configure.ac:
15 gl_HEADER_SYS_STAT_H
16 AC_PROG_MKDIR_P
17
18 Makefile.am:
19 BUILT_SOURCES += sys/stat.h
20
21 # We need the following in order to create <sys/stat.h> when the system
22 # has one that is incomplete.
23 sys/stat.h: sys_stat.in.h
24         $(AM_V_at)$(MKDIR_P) sys
25         $(AM_V_GEN)rm -f $@-t $@ && \
26         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
27           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
28               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
29               -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
30               -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \
31               -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \
32               -e 's|@''GNULIB_OPENAT''@|$(GNULIB_OPENAT)|g' \
33               -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
34               -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
35               -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
36               -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
37               -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
38               -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
39               -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
40               -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
41               -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
42               -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
43               < $(srcdir)/sys_stat.in.h; \
44         } > $@-t && \
45         mv $@-t $@
46 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
47 MOSTLYCLEANDIRS += sys
48
49 Include:
50 #include <sys/stat.h>
51
52 License:
53 LGPLv2+
54
55 Maintainer:
56 all