X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Funistd;h=6bf946061b323daf5f5c9e8b321216612bfb0698;hb=3125b88ba89113a6ad39254af4cd146e822ec1d1;hp=6cb126a55d76fe2fa17e9221e36e7ce34a146bc1;hpb=767e884e3af06e0b9ea66dc7fa244becf8ae606d;p=gnulib.git diff --git a/modules/unistd b/modules/unistd index 6cb126a55..6bf946061 100644 --- a/modules/unistd +++ b/modules/unistd @@ -1,23 +1,48 @@ Description: -A for systems lacking it. +A GNU-like . Files: -lib/unistd_.h m4/unistd_h.m4 +lib/unistd_.h Depends-on: +absolute-header +link-warning configure.ac: -gl_HEADER_UNISTD +gl_UNISTD_H Makefile.am: -BUILT_SOURCES += $(UNISTD_H) -EXTRA_DIST += unistd_.h +BUILT_SOURCES += 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|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \ + -e 's|@''ABSOLUTE_UNISTD_H''@|$(ABSOLUTE_UNISTD_H)|g' \ + -e 's/@''HAVE_INCLUDE_NEXT''@/$(HAVE_INCLUDE_NEXT)/g' \ + -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \ + -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \ + -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \ + -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \ + -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \ + -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \ + -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \ + -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \ + -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \ + -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \ + -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \ + -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \ + -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \ + -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \ + -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ + -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \ + -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \ + -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \ + < $(srcdir)/unistd_.h; \ + } > $@-t mv $@-t $@ MOSTLYCLEANFILES += unistd.h unistd.h-t