2 dnl Copyright (C) 2008-2011 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.
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],
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])
16 AC_DEFUN([gl_SIGNAL_SIGPIPE_BODY],
18 AC_REQUIRE([AC_PROG_CC])
19 AC_CACHE_CHECK([for SIGPIPE], [gl_cv_header_signal_h_SIGPIPE], [
20 AC_EGREP_CPP([booboo],[
26 [gl_cv_header_signal_h_SIGPIPE=no],
27 [gl_cv_header_signal_h_SIGPIPE=yes])