verify: new macro 'assume'
[gnulib.git] / modules / sys_select
1 Description:
2 A <sys/select.h> for systems lacking it.
3
4 Files:
5 lib/sys_select.in.h
6 m4/sys_select_h.m4
7 m4/sys_socket_h.m4
8
9 Depends-on:
10 include_next
11 signal-h
12 snippet/c++defs
13 snippet/warn-on-use
14 sys_time
15
16 configure.ac:
17 gl_HEADER_SYS_SELECT
18 AC_PROG_MKDIR_P
19
20 Makefile.am:
21 BUILT_SOURCES += sys/select.h
22
23 # We need the following in order to create <sys/select.h> when the system
24 # doesn't have one that works with the given compiler.
25 sys/select.h: sys_select.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
26         $(AM_V_at)$(MKDIR_P) sys
27         $(AM_V_GEN)rm -f $@-t $@ && \
28         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
29           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
30               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
31               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
32               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
33               -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \
34               -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \
35               -e 's/@''GNULIB_PSELECT''@/$(GNULIB_PSELECT)/g' \
36               -e 's/@''GNULIB_SELECT''@/$(GNULIB_SELECT)/g' \
37               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
38               -e 's|@''HAVE_PSELECT''@|$(HAVE_PSELECT)|g' \
39               -e 's|@''REPLACE_PSELECT''@|$(REPLACE_PSELECT)|g' \
40               -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \
41               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
42               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
43               < $(srcdir)/sys_select.in.h; \
44         } > $@-t && \
45         mv $@-t $@
46 MOSTLYCLEANFILES += sys/select.h sys/select.h-t
47 MOSTLYCLEANDIRS += sys
48
49 Include:
50 <sys/select.h>
51
52 License:
53 LGPLv2+
54
55 Maintainer:
56 Simon Josefsson