Blame m4/read.m4

Packit 709fb3
# read.m4 serial 5
Packit 709fb3
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
Packit 709fb3
dnl This file is free software; the Free Software Foundation
Packit 709fb3
dnl gives unlimited permission to copy and/or distribute it,
Packit 709fb3
dnl with or without modifications, as long as this notice is preserved.
Packit 709fb3
Packit 709fb3
AC_DEFUN([gl_FUNC_READ],
Packit 709fb3
[
Packit 709fb3
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
Packit 709fb3
  m4_ifdef([gl_MSVC_INVAL], [
Packit 709fb3
    AC_REQUIRE([gl_MSVC_INVAL])
Packit 709fb3
    if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
Packit 709fb3
      REPLACE_READ=1
Packit 709fb3
    fi
Packit 709fb3
  ])
Packit 709fb3
  dnl This ifdef is just an optimization, to avoid performing a configure
Packit 709fb3
  dnl check whose result is not used. It does not make the test of
Packit 709fb3
  dnl GNULIB_UNISTD_H_NONBLOCKING or GNULIB_NONBLOCKING redundant.
Packit 709fb3
  m4_ifdef([gl_NONBLOCKING_IO], [
Packit 709fb3
    gl_NONBLOCKING_IO
Packit 709fb3
    if test $gl_cv_have_nonblocking != yes; then
Packit 709fb3
      REPLACE_READ=1
Packit 709fb3
    fi
Packit 709fb3
  ])
Packit 709fb3
])
Packit 709fb3
Packit 709fb3
# Prerequisites of lib/read.c.
Packit 709fb3
AC_DEFUN([gl_PREREQ_READ], [:])