md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
[gnulib.git] / modules / poll
index 4695af2..8fa88fd 100644 (file)
@@ -3,31 +3,36 @@ poll() function: wait for some event on a set of file descriptors.
 
 Files:
 lib/poll.c
-lib/poll_.h
 m4/poll.m4
 
 Depends-on:
+poll-h
+alloca          [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+select          [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+sockets         [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+sys_select      [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+sys_time        [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+errno           [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+msvc-nothrow    [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
 
 configure.ac:
 gl_FUNC_POLL
+if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
+  AC_LIBOBJ([poll])
+  gl_PREREQ_POLL
+fi
+gl_POLL_MODULE_INDICATOR([poll])
 
 Makefile.am:
-BUILT_SOURCES += $(POLL_H)
-EXTRA_DIST += poll_.h
-
-# We need the following in order to create an <poll.h> when the system
-# doesn't have one.
-all-local $(lib_OBJECTS): $(POLL_H)
-poll.h: poll_.h
-       cp $(srcdir)/poll_.h $@-t
-       mv $@-t $@
-MOSTLYCLEANFILES += poll.h poll.h-t
 
 Include:
-#include <poll.h>
+<poll.h>
+
+Link:
+$(LIB_POLL)
 
 License:
-GPL
+LGPLv2+
 
 Maintainer:
 Paolo Bonzini  <bonzini@gnu.org>