view m4/pipe2.m4 @ 11893:476cefda5290

Tolerate declared but missing pipe2 syscall.
author Bruno Haible <bruno@clisp.org>
date Mon, 24 Aug 2009 00:42:22 +0200
parents ddd29d8cdded
children c2cbabec01dd
line wrap: on
line source

# pipe2.m4 serial 2
dnl Copyright (C) 2009 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.

AC_DEFUN([gl_FUNC_PIPE2],
[
  AC_REQUIRE([gl_UNISTD_H_DEFAULTS])

  dnl Persuade glibc <unistd.h> to declare pipe2().
  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])

  AC_CHECK_FUNCS_ONCE([pipe2])
  if test $ac_cv_func_pipe2 != yes; then
    HAVE_PIPE2=0
  fi
])