Move to u16-mbtouc-unsafe.
[gnulib.git] / modules / unistd
index 6cb126a..c42a3ac 100644 (file)
@@ -2,22 +2,26 @@ Description:
 A <unistd.h> for systems lacking it.
 
 Files:
-lib/unistd_.h
 m4/unistd_h.m4
+lib/unistd_.h
 
 Depends-on:
+absolute-header
 
 configure.ac:
 gl_HEADER_UNISTD
 
 Makefile.am:
 BUILT_SOURCES += $(UNISTD_H)
-EXTRA_DIST += unistd_.h
 
-# We need the following in order to create <unistd.h> when the system
-# doesn't have one.
+# We need the following in order to create an empty placeholder for
+# <unistd.h> when the system doesn't have one.
 unistd.h: unistd_.h
-       cp $(srcdir)/unistd_.h $@-t
+       rm -f $@-t $@
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         sed -e 's|@''ABSOLUTE_UNISTD_H''@|$(ABSOLUTE_UNISTD_H)|g' \
+             < $(srcdir)/unistd_.h; \
+       } > $@-t
        mv $@-t $@
 MOSTLYCLEANFILES += unistd.h unistd.h-t