iswblank: Move AC_LIBOBJ invocations to module description.
[pspp] / modules / poll
index 23da683aaff1580bde7d8e0e1b07b58d9e1dc06b..478e99ba74b9b5618616bde4040135ba54a4db92 100644 (file)
@@ -3,32 +3,27 @@ poll() function: wait for some event on a set of file descriptors.
 
 Files:
 lib/poll.c
-lib/poll_.h
 m4/poll.m4
 
 Depends-on:
-sys_select
+poll-h
+alloca          [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
+select          [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]
 
 configure.ac:
 gl_FUNC_POLL
+gl_POLL_MODULE_INDICATOR([poll])
 
 Makefile.am:
-BUILT_SOURCES += $(POLL_H)
-
-# We need the following in order to create <poll.h> when the system
-# doesn't have one.
-poll.h: poll_.h
-       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
-         cat $(srcdir)/poll_.h; \
-       } > $@-t
-       mv -f $@-t $@
-MOSTLYCLEANFILES += poll.h poll.h-t
 
 Include:
-#include <poll.h>
+<poll.h>
 
 License:
-LGPL
+LGPLv2+
 
 Maintainer:
 Paolo Bonzini  <bonzini@gnu.org>