Use module 'EOVERFLOW' rather than defining an EOVERFLOW replacement in the C
[pspp] / modules / poll
index ef2c8d913080b723760da08f14a5a309c8f5dd8e..3ac7c8cbeae278b0ab304ee69452dd43a08fb1b1 100644 (file)
@@ -3,27 +3,34 @@ poll() function: wait for some event on a set of file descriptors.
 
 Files:
 lib/poll.c
-lib/poll_.h
+lib/poll.in.h
 m4/poll.m4
 
 Depends-on:
+sys_select
+sys_time
+EOVERFLOW
 
 configure.ac:
 gl_FUNC_POLL
 
 Makefile.am:
-EXTRA_DIST += poll_.h
+BUILT_SOURCES += $(POLL_H)
 
-# We need the following in order to create an <poll.h> when the system
+# We need the following in order to create <poll.h> when the system
 # doesn't have one.
-all-local $(lib_OBJECTS): $(POLL_H)
-poll.h: poll_.h
-       cp $(srcdir)/poll_.h poll.h-t
-       mv poll.h-t poll.h
+poll.h: poll.in.h
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         cat $(srcdir)/poll.in.h; \
+       } > $@-t
+       mv -f $@-t $@
 MOSTLYCLEANFILES += poll.h poll.h-t
 
 Include:
 #include <poll.h>
 
+License:
+LGPLv2+
+
 Maintainer:
 Paolo Bonzini  <bonzini@gnu.org>