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