X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Funistd;h=c42a3ac7d2633e9d1ec725d03864cdeb27db93a4;hb=59c99e8a034089d8f9cbd8f20b2ed636669363eb;hp=6cb126a55d76fe2fa17e9221e36e7ce34a146bc1;hpb=767e884e3af06e0b9ea66dc7fa244becf8ae606d;p=gnulib.git diff --git a/modules/unistd b/modules/unistd index 6cb126a55..c42a3ac7d 100644 --- a/modules/unistd +++ b/modules/unistd @@ -2,22 +2,26 @@ Description: A 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 when the system -# doesn't have one. +# We need the following in order to create an empty placeholder for +# 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