X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fwrite.m4;h=c39d3d07a3329ef74326f06844e87d89074660b4;hb=395f9e6a19b504609aa8b0bd7f8cc55d4547d8dd;hp=a82527b689f85018284cd099f0e8f57a4256b0a5;hpb=3030c5b5e0a5199e16b05927da72c43c42f211c3;p=gnulib.git diff --git a/m4/write.m4 b/m4/write.m4 index a82527b68..c39d3d07a 100644 --- a/m4/write.m4 +++ b/m4/write.m4 @@ -1,5 +1,5 @@ -# write.m4 serial 1 -dnl Copyright (C) 2008, 2009 Free Software Foundation, Inc. +# write.m4 serial 3 +dnl Copyright (C) 2008-2011 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. @@ -14,7 +14,12 @@ AC_DEFUN([gl_FUNC_WRITE], gl_SIGNAL_SIGPIPE if test $gl_cv_header_signal_h_SIGPIPE != yes; then REPLACE_WRITE=1 - AC_LIBOBJ([write]) + fi + ]) + m4_ifdef([gl_NONBLOCKING_IO], [ + gl_NONBLOCKING_IO + if test $gl_cv_have_nonblocking != yes; then + REPLACE_WRITE=1 fi ]) ])