New module 'dirent'.
[gnulib.git] / modules / dirent
1 Description:
2 A GNU-like <dirent.h>.
3
4 Files:
5 lib/dirent.in.h
6 m4/dirent_h.m4
7 m4/unistd_h.m4
8
9 Depends-on:
10 include_next
11
12 configure.ac:
13 gl_DIRENT_H
14
15 Makefile.am:
16 BUILT_SOURCES += $(DIRENT_H)
17
18 # We need the following in order to create <dirent.h> when the system
19 # doesn't have one that works with the given compiler.
20 dirent.h: dirent.in.h
21         rm -f $@-t $@
22         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
23           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
24               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
25               -e 's|@''NEXT_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
26               -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
27               < $(srcdir)/dirent.in.h; \
28         } > $@-t
29         mv $@-t $@
30 MOSTLYCLEANFILES += dirent.h dirent.h-t
31
32 Include:
33 #include <dirent.h>
34
35 License:
36 LGPLv2+
37
38 Maintainer:
39 all