signal_h.m4 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # signal_h.m4 serial 7
  2. dnl Copyright (C) 2007, 2008, 2009 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. AC_DEFUN([gl_SIGNAL_H],
  7. [
  8. AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
  9. gl_CHECK_NEXT_HEADERS([signal.h])
  10. # AIX declares sig_atomic_t to already include volatile, and C89 compilers
  11. # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
  12. AC_CHECK_TYPE([volatile sig_atomic_t], [],
  13. [HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0], [[
  14. #include <signal.h>
  15. ]])
  16. ])
  17. AC_DEFUN([gl_SIGNAL_MODULE_INDICATOR],
  18. [
  19. dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
  20. AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
  21. GNULIB_[]m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./-],[ABCDEFGHIJKLMNOPQRSTUVWXYZ___])=1
  22. ])
  23. AC_DEFUN([gl_SIGNAL_H_DEFAULTS],
  24. [
  25. GNULIB_SIGNAL_H_SIGPIPE=0; AC_SUBST([GNULIB_SIGNAL_H_SIGPIPE])
  26. GNULIB_SIGPROCMASK=0; AC_SUBST([GNULIB_SIGPROCMASK])
  27. GNULIB_SIGACTION=0; AC_SUBST([GNULIB_SIGACTION])
  28. dnl Assume proper GNU behavior unless another module says otherwise.
  29. HAVE_POSIX_SIGNALBLOCKING=1; AC_SUBST([HAVE_POSIX_SIGNALBLOCKING])
  30. HAVE_SIGSET_T=1; AC_SUBST([HAVE_SIGSET_T])
  31. HAVE_SIGINFO_T=1; AC_SUBST([HAVE_SIGINFO_T])
  32. HAVE_SIGACTION=1; AC_SUBST([HAVE_SIGACTION])
  33. HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
  34. AC_SUBST([HAVE_STRUCT_SIGACTION_SA_SIGACTION])
  35. HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
  36. AC_SUBST([HAVE_TYPE_VOLATILE_SIG_ATOMIC_T])
  37. ])