Debian Codegraph @

m4/write.m4

raw
1 # write.m4
2 # serial 6
3 dnl Copyright (C) 2008-2024 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
7 dnl This file is offered as-is, without any warranty.
8
9 AC_DEFUN([gl_FUNC_WRITE],
10 [
11 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
12 m4_ifdef([gl_MSVC_INVAL], [
13 AC_REQUIRE([gl_MSVC_INVAL])
14 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
15 REPLACE_WRITE=1
16 fi
17 ])
18 dnl This ifdef is just an optimization, to avoid performing a configure
19 dnl check whose result is not used. It does not make the test of
20 dnl GNULIB_UNISTD_H_SIGPIPE or GNULIB_SIGPIPE redundant.
21 m4_ifdef([gl_SIGNAL_SIGPIPE], [
22 gl_SIGNAL_SIGPIPE
23 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
24 REPLACE_WRITE=1
25 fi
26 ])
27 m4_ifdef([gl_NONBLOCKING_IO], [
28 gl_NONBLOCKING_IO
29 if test $gl_cv_have_nonblocking != yes; then
30 REPLACE_WRITE=1
31 fi
32 ])
33 ])
34
35 # Prerequisites of lib/write.c.
36 AC_DEFUN([gl_PREREQ_WRITE], [:])