Allow the use of a destructor for the values stored in the list.
[gnulib.git] / modules / fchdir
index b8fa651..d647668 100644 (file)
@@ -7,6 +7,8 @@ lib/dirent_.h
 m4/fchdir.m4
 
 Depends-on:
+absolute-header
+dup2
 fcntl
 unistd
 canonicalize-lgpl
@@ -15,9 +17,10 @@ strdup
 
 configure.ac:
 gl_FUNC_FCHDIR
+gl_UNISTD_MODULE_INDICATOR([fchdir])
 
 Makefile.am:
-BUILT_SOURCES += $(DIRENT_H) $(UNISTD_H2)
+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.
@@ -25,6 +28,7 @@ dirent.h: dirent_.h
        rm -f $@-t $@
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
          sed -e 's|@''ABSOLUTE_DIRENT_H''@|$(ABSOLUTE_DIRENT_H)|g' \
+             -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
              < $(srcdir)/dirent_.h; \
        } > $@-t
        mv $@-t $@