Mercurial > hg > octave-lojdl > gnulib-hg
diff modules/dirent @ 10659:fb8bcb95d71a
New module 'dirent'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 19 Oct 2008 01:44:46 +0200 |
parents | |
children | 2b0380d48ff6 |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/modules/dirent @@ -0,0 +1,39 @@ +Description: +A GNU-like <dirent.h>. + +Files: +lib/dirent.in.h +m4/dirent_h.m4 +m4/unistd_h.m4 + +Depends-on: +include_next + +configure.ac: +gl_DIRENT_H + +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.in.h + rm -f $@-t $@ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|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 + +Include: +#include <dirent.h> + +License: +LGPLv2+ + +Maintainer: +all