]> iEval git - audio-libsamplerate.git/blob - libsamplerate/M4/check_signal.m4
97c877ac4e2f368c8406c39c53af89e29096de1e
[audio-libsamplerate.git] / libsamplerate / M4 / check_signal.m4
1 dnl @synopsis AC_CHECK_SIGNAL(SIGNAME)
2 dnl
3 dnl
4 dnl @category C
5 dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
6 dnl @version 1.0 Jul 07 2007
7
8 AC_DEFUN([AC_CHECK_SIGNAL],
9 [AC_CACHE_CHECK(for $1,
10 ac_cv_signal_$1,
11 [
12 AC_TRY_LINK([
13 #include <signal.h>
14
15 ], signal($1, SIG_DFL) ;, ac_cv_signal_$1=yes, ac_cv_signal_$1=no)
16
17 ])
18
19 if test "$ac_cv_signal_$1" = yes; then
20 AC_DEFINE(HAVE_$1, 1,
21 [Define if you have signal $1.])
22 fi
23 ])# AC_CHECK_SIGNAL
24
25
26 ## AC_CHECK_SIGNALS
This page took 0.050778 seconds and 5 git commands to generate.