Blame gnulib/m4/write.m4

Packit eba2e2
# write.m4 serial 5
Packit eba2e2
dnl Copyright (C) 2008-2014 Free Software Foundation, Inc.
Packit eba2e2
dnl This file is free software; the Free Software Foundation
Packit eba2e2
dnl gives unlimited permission to copy and/or distribute it,
Packit eba2e2
dnl with or without modifications, as long as this notice is preserved.
Packit eba2e2
Packit eba2e2
AC_DEFUN([gl_FUNC_WRITE],
Packit eba2e2
[
Packit eba2e2
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
Packit eba2e2
  AC_REQUIRE([gl_MSVC_INVAL])
Packit eba2e2
  if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
Packit eba2e2
    REPLACE_WRITE=1
Packit eba2e2
  fi
Packit eba2e2
  dnl This ifdef is just an optimization, to avoid performing a configure
Packit eba2e2
  dnl check whose result is not used. It does not make the test of
Packit eba2e2
  dnl GNULIB_UNISTD_H_SIGPIPE or GNULIB_SIGPIPE redundant.
Packit eba2e2
  m4_ifdef([gl_SIGNAL_SIGPIPE], [
Packit eba2e2
    gl_SIGNAL_SIGPIPE
Packit eba2e2
    if test $gl_cv_header_signal_h_SIGPIPE != yes; then
Packit eba2e2
      REPLACE_WRITE=1
Packit eba2e2
    fi
Packit eba2e2
  ])
Packit eba2e2
  m4_ifdef([gl_NONBLOCKING_IO], [
Packit eba2e2
    gl_NONBLOCKING_IO
Packit eba2e2
    if test $gl_cv_have_nonblocking != yes; then
Packit eba2e2
      REPLACE_WRITE=1
Packit eba2e2
    fi
Packit eba2e2
  ])
Packit eba2e2
])
Packit eba2e2
Packit eba2e2
# Prerequisites of lib/write.c.
Packit eba2e2
AC_DEFUN([gl_PREREQ_WRITE], [:])