X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=modules%2Ffchdir;h=5bfaacf43538d8051c5b9e647ac17c0a8c8e08ba;hb=2de77d6200b862971181d66a52de3d434ff7f47b;hp=8d9fca812811b558544a7fd05af8006eb11cb53d;hpb=8e2cdb066af972ddb93eb27bb1f7cdb51193c5e5;p=gnulib.git diff --git a/modules/fchdir b/modules/fchdir index 8d9fca812..5bfaacf43 100644 --- a/modules/fchdir +++ b/modules/fchdir @@ -3,11 +3,12 @@ fchdir() function: change current directory, given an open file descriptor. 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 @@ -16,17 +17,20 @@ strdup configure.ac: gl_FUNC_FCHDIR +gl_UNISTD_MODULE_INDICATOR([fchdir]) Makefile.am: BUILT_SOURCES += $(DIRENT_H) # We need the following in order to create 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 @@ -39,4 +43,3 @@ LGPL Maintainer: Bruno Haible -