X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fsys_select;h=27d9a48cb458901fa28575d8e4ab40ed83464f42;hb=fbe6ced5d2fdadeeea4194725d05a52cf3b5ebd7;hp=3fdd0acfa767476090ce0dd97ee5e759dfb9e70c;hpb=89861a8be877136ea47794016b00a5a095c30ea4;p=gnulib.git diff --git a/modules/sys_select b/modules/sys_select index 3fdd0acfa..27d9a48cb 100644 --- a/modules/sys_select +++ b/modules/sys_select @@ -2,37 +2,44 @@ Description: A for systems lacking it. Files: -lib/sys_select_.h +lib/sys_select.in.h m4/sys_select_h.m4 Depends-on: include_next sys_socket +sys_time +warn-on-use configure.ac: gl_HEADER_SYS_SELECT AC_PROG_MKDIR_P Makefile.am: -BUILT_SOURCES += $(SYS_SELECT_H) +BUILT_SOURCES += sys/select.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. -sys/select.h: - @MKDIR_P@ sys - rm -f $@-t $@ +sys/select.h: sys_select.in.h $(WARN_ON_USE_H) + $(AM_V_at)$(MKDIR_P) sys + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - sed -e 's/@''INCLUDE_NEXT''@/$(INCLUDE_NEXT)/g' \ + sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ -e 's|@''NEXT_SYS_SELECT_H''@|$(NEXT_SYS_SELECT_H)|g' \ -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \ - < $(srcdir)/sys_select_.h; \ - } > $@-t + -e 's|@''GNULIB_SELECT''@|$(GNULIB_SELECT)|g' \ + -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \ + -e 's|@''REPLACE_SELECT''@|$(REPLACE_SELECT)|g' \ + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ + < $(srcdir)/sys_select.in.h; \ + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += sys/select.h sys/select.h-t MOSTLYCLEANDIRS += sys Include: -#include + License: LGPLv2+