striconveh: Simplify last commit.
[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
8 Depends-on:
9 include_next
10 c++defs
11 sys_socket
12 sys_time
13 warn-on-use
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 $(CXXDEFS_H) $(WARN_ON_USE_H)
25         $(AM_V_at)$(MKDIR_P) sys
26         $(AM_V_GEN)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|@''GNULIB_SELECT''@|$(GNULIB_SELECT)|g' \
33               -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
34               -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \
35               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
36               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
37               < $(srcdir)/sys_select.in.h; \
38         } > $@-t && \
39         mv $@-t $@
40 MOSTLYCLEANFILES += sys/select.h sys/select.h-t
41 MOSTLYCLEANDIRS += sys
42
43 Include:
44 <sys/select.h>
45
46 License:
47 LGPLv2+
48
49 Maintainer:
50 Simon Josefsson