Files:
lib/fchdir.c
-lib/dirent_.h
+lib/dirent.in.h
m4/fchdir.m4
Depends-on:
-absolute-header
+include_next
+dup2
fcntl
unistd
canonicalize-lgpl
configure.ac:
gl_FUNC_FCHDIR
+gl_UNISTD_MODULE_INDICATOR([fchdir])
Makefile.am:
BUILT_SOURCES += $(DIRENT_H)
# We need the following in order to create <dirent.h> when the system
# doesn't have one that works with the given compiler.
-dirent.h: dirent_.h
+dirent.h: dirent.in.h
rm -f $@-t $@
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
- sed -e 's|@''ABSOLUTE_DIRENT_H''@|$(ABSOLUTE_DIRENT_H)|g' \
- < $(srcdir)/dirent_.h; \
+ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+ -e 's|@''NEXT_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
+ -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
+ < $(srcdir)/dirent.in.h; \
} > $@-t
mv $@-t $@
MOSTLYCLEANFILES += dirent.h dirent.h-t
Maintainer:
Bruno Haible
-