X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fsys_select;h=27d9a48cb458901fa28575d8e4ab40ed83464f42;hb=fbe6ced5d2fdadeeea4194725d05a52cf3b5ebd7;hp=ffb5fae8529586515eee03ceb70320b05107202b;hpb=23c6fc446a93d098c9e531234af635316a4386ef;p=gnulib.git diff --git a/modules/sys_select b/modules/sys_select index ffb5fae85..27d9a48cb 100644 --- a/modules/sys_select +++ b/modules/sys_select @@ -9,19 +9,20 @@ 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: sys_select.in.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' \ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ @@ -29,14 +30,16 @@ sys/select.h: sys_select.in.h -e 's|@''HAVE_SYS_SELECT_H''@|$(HAVE_SYS_SELECT_H)|g' \ -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 + } > $@-t && \ mv $@-t $@ MOSTLYCLEANFILES += sys/select.h sys/select.h-t MOSTLYCLEANDIRS += sys Include: -#include + License: LGPLv2+