strengthen self-containedness check for sys/select.h
[pspp] / modules / sys_select
1 Description:
2 A <sys/select.h> for systems lacking it.
3
4 Files:
5 lib/sys_select.in.h
6 lib/winsock-select.c
7 m4/sys_select_h.m4
8
9 Depends-on:
10 alloca
11 include_next
12 sys_socket
13 sys_time
14
15 configure.ac:
16 gl_HEADER_SYS_SELECT
17 AC_PROG_MKDIR_P
18
19 Makefile.am:
20 BUILT_SOURCES += $(SYS_SELECT_H)
21
22 # We need the following in order to create <sys/select.h> when the system
23 # doesn't have one that works with the given compiler.
24 sys/select.h: sys_select.in.h
25         @MKDIR_P@ sys
26         rm -f $@-t $@
27         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
28           sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
29               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
30               -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \
31               -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \
32               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
33               < $(srcdir)/sys_select.in.h; \
34         } > $@-t
35         mv $@-t $@
36 MOSTLYCLEANFILES += sys/select.h sys/select.h-t
37 MOSTLYCLEANDIRS += sys
38
39 Include:
40 #include <sys/select.h>
41
42 License:
43 LGPLv2+
44
45 Maintainer:
46 Simon Josefsson