2 A <sys/select.h> for systems lacking it.
20 BUILT_SOURCES += sys/select.h
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|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
31 -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \
32 -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \
33 -e 's|@''GNULIB_SELECT''@|$(GNULIB_SELECT)|g' \
34 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
35 -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \
36 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
37 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
38 < $(srcdir)/sys_select.in.h; \
41 MOSTLYCLEANFILES += sys/select.h sys/select.h-t
42 MOSTLYCLEANDIRS += sys