19 gl_DIRENT_H_REQUIRE_DEFAULTS
23 BUILT_SOURCES += dirent.h
25 # We need the following in order to create <dirent.h> when the system
26 # doesn't have one that works with the given compiler.
27 dirent.h: dirent.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
28 @NMD@ $(AM_V_GEN)$(MKDIR_P) '%reldir%'
29 $(gl_V_at)$(SED_HEADER_STDOUT) \
30 -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
31 -e 's|@''HAVE_DIRENT_H''@|$(HAVE_DIRENT_H)|g' \
32 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
33 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
34 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
35 -e 's|@''NEXT_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
36 -e 's/@''DIR_HAS_FD_MEMBER''@/$(DIR_HAS_FD_MEMBER)/g' \
37 -e 's/@''GNULIB_OPENDIR''@/$(GNULIB_OPENDIR)/g' \
38 -e 's/@''GNULIB_READDIR''@/$(GNULIB_READDIR)/g' \
39 -e 's/@''GNULIB_REWINDDIR''@/$(GNULIB_REWINDDIR)/g' \
40 -e 's/@''GNULIB_CLOSEDIR''@/$(GNULIB_CLOSEDIR)/g' \
41 -e 's/@''GNULIB_DIRFD''@/$(GNULIB_DIRFD)/g' \
42 -e 's/@''GNULIB_FDOPENDIR''@/$(GNULIB_FDOPENDIR)/g' \
43 -e 's/@''GNULIB_SCANDIR''@/$(GNULIB_SCANDIR)/g' \
44 -e 's/@''GNULIB_ALPHASORT''@/$(GNULIB_ALPHASORT)/g' \
45 -e 's/@''HAVE_OPENDIR''@/$(HAVE_OPENDIR)/g' \
46 -e 's/@''HAVE_READDIR''@/$(HAVE_READDIR)/g' \
47 -e 's/@''HAVE_REWINDDIR''@/$(HAVE_REWINDDIR)/g' \
48 -e 's/@''HAVE_CLOSEDIR''@/$(HAVE_CLOSEDIR)/g' \
49 -e 's|@''HAVE_DECL_DIRFD''@|$(HAVE_DECL_DIRFD)|g' \
50 -e 's|@''HAVE_DECL_FDOPENDIR''@|$(HAVE_DECL_FDOPENDIR)|g' \
51 -e 's|@''HAVE_FDOPENDIR''@|$(HAVE_FDOPENDIR)|g' \
52 -e 's|@''HAVE_SCANDIR''@|$(HAVE_SCANDIR)|g' \
53 -e 's|@''HAVE_ALPHASORT''@|$(HAVE_ALPHASORT)|g' \
54 -e 's|@''REPLACE_OPENDIR''@|$(REPLACE_OPENDIR)|g' \
55 -e 's|@''REPLACE_READDIR''@|$(REPLACE_READDIR)|g' \
56 -e 's|@''REPLACE_REWINDDIR''@|$(REPLACE_REWINDDIR)|g' \
57 -e 's|@''REPLACE_CLOSEDIR''@|$(REPLACE_CLOSEDIR)|g' \
58 -e 's|@''REPLACE_DIRFD''@|$(REPLACE_DIRFD)|g' \
59 -e 's|@''REPLACE_FDOPENDIR''@|$(REPLACE_FDOPENDIR)|g' \
60 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
61 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
62 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
63 $(srcdir)/dirent.in.h > $@-t
65 MOSTLYCLEANFILES += dirent.h dirent.h-t