2 A <sys/stat.h> for systems with missing declarations.
19 BUILT_SOURCES += sys/stat.h
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; \
46 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
47 MOSTLYCLEANDIRS += sys