Blame gnulib/m4/signalblocking.m4
|
Packit Service |
a2ae7a |
# signalblocking.m4 serial 14
|
|
Packit Service |
a2ae7a |
dnl Copyright (C) 2001-2002, 2006-2019 Free Software Foundation, Inc.
|
|
Packit Service |
a2ae7a |
dnl This file is free software; the Free Software Foundation
|
|
Packit Service |
a2ae7a |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit Service |
a2ae7a |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# Determine available signal blocking primitives. Three different APIs exist:
|
|
Packit Service |
a2ae7a |
# 1) POSIX: sigemptyset, sigaddset, sigprocmask
|
|
Packit Service |
a2ae7a |
# 2) SYSV: sighold, sigrelse
|
|
Packit Service |
a2ae7a |
# 3) BSD: sigblock, sigsetmask
|
|
Packit Service |
a2ae7a |
# For simplicity, here we check only for the POSIX signal blocking.
|
|
Packit Service |
a2ae7a |
AC_DEFUN([gl_SIGNALBLOCKING],
|
|
Packit Service |
a2ae7a |
[
|
|
Packit Service |
a2ae7a |
AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
|
|
Packit Service |
a2ae7a |
AC_REQUIRE([gl_CHECK_TYPE_SIGSET_T])
|
|
Packit Service |
a2ae7a |
if test $gl_cv_type_sigset_t = yes; then
|
|
Packit Service |
a2ae7a |
AC_CHECK_FUNC([sigprocmask], [gl_cv_func_sigprocmask=1])
|
|
Packit Service |
a2ae7a |
fi
|
|
Packit Service |
a2ae7a |
if test -z "$gl_cv_func_sigprocmask"; then
|
|
Packit Service |
a2ae7a |
HAVE_POSIX_SIGNALBLOCKING=0
|
|
Packit Service |
a2ae7a |
fi
|
|
Packit Service |
a2ae7a |
])
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# Prerequisites of lib/sigprocmask.c.
|
|
Packit Service |
a2ae7a |
AC_DEFUN([gl_PREREQ_SIGPROCMASK], [:])
|