Blame m4/isatty.m4

Packit 709fb3
# isatty.m4 serial 3
Packit 709fb3
dnl Copyright (C) 2012-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_ISATTY],
Packit 709fb3
[
Packit 709fb3
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
Packit 709fb3
  AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
Packit 709fb3
  dnl On native Windows, the system's isatty(), defined as an alias of _isatty()
Packit 709fb3
  dnl in the "oldnames" library, returns true for the NUL device.
Packit 709fb3
  case $host_os in
Packit 709fb3
    mingw*) REPLACE_ISATTY=1 ;;
Packit 709fb3
  esac
Packit 709fb3
])
Packit 709fb3
Packit 709fb3
# Prerequisites of lib/isatty.c.
Packit 709fb3
AC_DEFUN([gl_PREREQ_ISATTY], [:])