annotate m4/signalblocking.m4 @ 6479:913b40e88d1a

Update
author Sergey Poznyakoff <gray@gnu.org.ua>
date Fri, 09 Dec 2005 12:34:04 +0000
parents adff74659d81
children a55a9e67f244
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4770
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 # signalblocking.m4 serial 1 (gettext-0.11)
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
5585
adff74659d81 Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents: 4770
diff changeset
3 dnl This file is free software; the Free Software Foundation
adff74659d81 Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents: 4770
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
adff74659d81 Use an all-permissive copyright notice, recommended by RMS.
Bruno Haible <bruno@clisp.org>
parents: 4770
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
4770
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 # Determine available signal blocking primitives. Three different APIs exist:
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 # 1) POSIX: sigemptyset, sigaddset, sigprocmask
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 # 2) SYSV: sighold, sigrelse
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 # 3) BSD: sigblock, sigsetmask
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 # For simplicity, here we check only for the POSIX signal blocking.
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 AC_DEFUN([gt_SIGNALBLOCKING],
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 [
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 signals_not_posix=
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 AC_EGREP_HEADER(sigset_t, signal.h, , signals_not_posix=1)
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 if test -z "$signals_not_posix"; then
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 AC_CHECK_FUNC(sigprocmask,
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 AC_DEFINE(HAVE_POSIX_SIGNALBLOCKING, 1,
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 [Define to 1 if you have the sigset_t type and the sigprocmask function.]))
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 fi
6708dc21dacc New module 'fatal-signal'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 ])