2 A <sys/stat.h> for systems with missing declarations.
16 BUILT_SOURCES += $(SYS_STAT_H)
18 # We need the following in order to create <sys/stat.h> when the system
19 # has one that is incomplete.
20 sys/stat.h: sys_stat_.h
23 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
24 sed -e 's|@''ABSOLUTE_SYS_STAT_H''@|$(ABSOLUTE_SYS_STAT_H)|g' \
25 -e 's/@''HAVE_INCLUDE_NEXT''@/$(HAVE_INCLUDE_NEXT)/g' \
26 -e 's|@''HAVE_IO_H''@|$(HAVE_IO_H)|g' \
27 -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
28 -e 's|@''HAVE_DECL_MKDIR''@|$(HAVE_DECL_MKDIR)|g' \
29 < $(srcdir)/sys_stat_.h; \
32 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
33 MOSTLYCLEANDIRS += sys