You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
487B

  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. AC_DEFUN([AC_CHECK_SIGNAL],
  8. [AC_CACHE_CHECK(for $1,
  9. ac_cv_signal_$1,
  10. [
  11. AC_TRY_LINK([
  12. #include <signal.h>
  13. ], signal($1, SIG_DFL) ;, ac_cv_signal_$1=yes, ac_cv_signal_$1=no)
  14. ])
  15. if test "$ac_cv_signal_$1" = yes; then
  16. AC_DEFINE(HAVE_$1, 1,
  17. [Define if you have signal $1.])
  18. fi
  19. ])# AC_CHECK_SIGNAL
  20. ## AC_CHECK_SIGNALS