~ubuntu-branches/ubuntu/vivid/diffutils/vivid

« back to all changes in this revision

Viewing changes to m4/signal_h.m4

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2010-02-13 11:49:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100213114900-09lz8jx6wct52qp8
Tags: 1:2.9-1
* New upstream release, now under GPL version 3 or later.
* There is now a --tab-size option. Closes: #82923.
* Manpage for cmp describes exit status. Closes: #200614.
* Manpage for diff describes exit status. Closes: #228441, #473233.
* The file de.po is now more recent. Closes: #313686.
* Fixed bad sdiff behaviour. Closes: #320222.
* Added wdiff to Suggests. Closes: #324627.
* Fixed cmp behaviour regarding stdout and stderr. Closes: #356083.
* The file ru.po is now more recent. Closes: #409274.
* The file es.po is now more recent. Closes: #418005, #481708.
* The file nl.po is now more recent. Closes: #427370.
* Modified watch file to use http instead of ftp.
* Removed .comment section from executables.
* Added Homepage field to control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# signal_h.m4 serial 9
 
2
dnl Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 
3
dnl This file is free software; the Free Software Foundation
 
4
dnl gives unlimited permission to copy and/or distribute it,
 
5
dnl with or without modifications, as long as this notice is preserved.
 
6
 
 
7
AC_DEFUN([gl_SIGNAL_H],
 
8
[
 
9
  AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
 
10
  gl_CHECK_NEXT_HEADERS([signal.h])
 
11
# AIX declares sig_atomic_t to already include volatile, and C89 compilers
 
12
# then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
 
13
  AC_CHECK_TYPE([volatile sig_atomic_t], [],
 
14
    [HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0], [[
 
15
#include <signal.h>
 
16
    ]])
 
17
  AC_REQUIRE([AC_TYPE_UID_T])
 
18
 
 
19
  dnl Check for declarations of anything we want to poison if the
 
20
  dnl corresponding gnulib module is not in use.
 
21
  gl_WARN_ON_USE_PREPARE([[#include <signal.h>
 
22
    ]], [sigaction sigaddset sigdelset sigemptyset sigfillset sigismember
 
23
    sigpending sigprocmask])
 
24
])
 
25
 
 
26
AC_DEFUN([gl_SIGNAL_MODULE_INDICATOR],
 
27
[
 
28
  dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
 
29
  AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
 
30
  GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
 
31
])
 
32
 
 
33
AC_DEFUN([gl_SIGNAL_H_DEFAULTS],
 
34
[
 
35
  GNULIB_SIGNAL_H_SIGPIPE=0;   AC_SUBST([GNULIB_SIGNAL_H_SIGPIPE])
 
36
  GNULIB_SIGPROCMASK=0;        AC_SUBST([GNULIB_SIGPROCMASK])
 
37
  GNULIB_SIGACTION=0;          AC_SUBST([GNULIB_SIGACTION])
 
38
  dnl Assume proper GNU behavior unless another module says otherwise.
 
39
  HAVE_POSIX_SIGNALBLOCKING=1; AC_SUBST([HAVE_POSIX_SIGNALBLOCKING])
 
40
  HAVE_SIGSET_T=1;             AC_SUBST([HAVE_SIGSET_T])
 
41
  HAVE_SIGINFO_T=1;            AC_SUBST([HAVE_SIGINFO_T])
 
42
  HAVE_SIGACTION=1;            AC_SUBST([HAVE_SIGACTION])
 
43
  HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
 
44
                               AC_SUBST([HAVE_STRUCT_SIGACTION_SA_SIGACTION])
 
45
  HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
 
46
                               AC_SUBST([HAVE_TYPE_VOLATILE_SIG_ATOMIC_T])
 
47
])