~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-tools/m4/signalblocking.m4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# signalblocking.m4 serial 1 (gettext-0.11)
 
2
dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
 
3
dnl This file is free software, distributed under the terms of the GNU
 
4
dnl General Public License.  As a special exception to the GNU General
 
5
dnl Public License, this file may be distributed as part of a program
 
6
dnl that contains a configuration script generated by Autoconf, under
 
7
dnl the same distribution terms as the rest of that program.
 
8
 
 
9
# Determine available signal blocking primitives. Three different APIs exist:
 
10
# 1) POSIX: sigemptyset, sigaddset, sigprocmask
 
11
# 2) SYSV: sighold, sigrelse
 
12
# 3) BSD: sigblock, sigsetmask
 
13
# For simplicity, here we check only for the POSIX signal blocking.
 
14
AC_DEFUN([gt_SIGNALBLOCKING],
 
15
[
 
16
  signals_not_posix=
 
17
  AC_EGREP_HEADER(sigset_t, signal.h, , signals_not_posix=1)
 
18
  if test -z "$signals_not_posix"; then
 
19
    AC_CHECK_FUNC(sigprocmask,
 
20
      AC_DEFINE(HAVE_POSIX_SIGNALBLOCKING, 1,
 
21
       [Define to 1 if you have the sigset_t type and the sigprocmask function.]))
 
22
  fi
 
23
])