Blame m4/raise.m4

Packit Service fdd496
# raise.m4 serial 4
Packit Service fdd496
dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
Packit Service fdd496
dnl This file is free software; the Free Software Foundation
Packit Service fdd496
dnl gives unlimited permission to copy and/or distribute it,
Packit Service fdd496
dnl with or without modifications, as long as this notice is preserved.
Packit Service fdd496
Packit Service fdd496
AC_DEFUN([gl_FUNC_RAISE],
Packit Service fdd496
[
Packit Service fdd496
  AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
Packit Service fdd496
  AC_REQUIRE([AC_CANONICAL_HOST])
Packit Service fdd496
  AC_CHECK_FUNCS([raise])
Packit Service fdd496
  if test $ac_cv_func_raise = no; then
Packit Service fdd496
    HAVE_RAISE=0
Packit Service fdd496
  else
Packit Service fdd496
    m4_ifdef([gl_MSVC_INVAL], [
Packit Service fdd496
      AC_REQUIRE([gl_MSVC_INVAL])
Packit Service fdd496
      if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
Packit Service fdd496
        REPLACE_RAISE=1
Packit Service fdd496
      fi
Packit Service fdd496
    ])
Packit Service fdd496
    m4_ifdef([gl_SIGNALBLOCKING], [
Packit Service fdd496
      gl_SIGNALBLOCKING
Packit Service fdd496
      if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
Packit Service fdd496
        m4_ifdef([gl_SIGNAL_SIGPIPE], [
Packit Service fdd496
          gl_SIGNAL_SIGPIPE
Packit Service fdd496
          if test $gl_cv_header_signal_h_SIGPIPE != yes; then
Packit Service fdd496
            REPLACE_RAISE=1
Packit Service fdd496
          fi
Packit Service fdd496
        ], [:])
Packit Service fdd496
      fi
Packit Service fdd496
    ])
Packit Service fdd496
  fi
Packit Service fdd496
])
Packit Service fdd496
Packit Service fdd496
# Prerequisites of lib/raise.c.
Packit Service fdd496
AC_DEFUN([gl_PREREQ_RAISE], [:])