~ubuntu-branches/ubuntu/utopic/gettext/utopic

« back to all changes in this revision

Viewing changes to gettext-runtime/gnulib-m4/sigpipe.m4

  • Committer: Colin Watson
  • Date: 2010-08-01 21:36:08 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: cjwatson@canonical.com-20100801213608-yy7vkm8lpatep3ci
merge from Debian 0.18.1.1-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# sigpipe.m4 serial 2
 
2
dnl Copyright (C) 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
dnl Tests whether SIGPIPE is provided by <signal.h>.
 
8
dnl Sets gl_cv_header_signal_h_SIGPIPE.
 
9
AC_DEFUN([gl_SIGNAL_SIGPIPE],
 
10
[
 
11
  dnl Use AC_REQUIRE here, so that the default behavior below is expanded
 
12
  dnl once only, before all statements that occur in other macros.
 
13
  AC_REQUIRE([gl_SIGNAL_SIGPIPE_BODY])
 
14
])
 
15
 
 
16
AC_DEFUN([gl_SIGNAL_SIGPIPE_BODY],
 
17
[
 
18
  AC_REQUIRE([AC_PROG_CC])
 
19
  AC_CACHE_CHECK([for SIGPIPE], [gl_cv_header_signal_h_SIGPIPE], [
 
20
    AC_EGREP_CPP([booboo],[
 
21
#include <signal.h>
 
22
#if !defined SIGPIPE
 
23
booboo
 
24
#endif
 
25
      ],
 
26
      [gl_cv_header_signal_h_SIGPIPE=no],
 
27
      [gl_cv_header_signal_h_SIGPIPE=yes])
 
28
  ])
 
29
])