view src/libsamplerate-0.1.8/M4/check_signal.m4 @ 87:dde06ec3df43

Add OS/X 64-bit builds
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 19 Mar 2013 20:33:28 +0000
parents 545efbb81310
children
line wrap: on
line source
dnl @synopsis AC_CHECK_SIGNAL(SIGNAME)
dnl
dnl
dnl @category C
dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
dnl @version 1.0	Jul 07 2007

AC_DEFUN([AC_CHECK_SIGNAL],
[AC_CACHE_CHECK(for $1,
  ac_cv_signal_$1,
[
AC_TRY_LINK([
#include <signal.h>

], signal($1, SIG_DFL) ;, ac_cv_signal_$1=yes, ac_cv_signal_$1=no)

])

if test "$ac_cv_signal_$1" = yes; then
  AC_DEFINE(HAVE_$1, 1,
            [Define if you have signal $1.])
fi
])# AC_CHECK_SIGNAL


## AC_CHECK_SIGNALS