2 dnl check for signal type
4 dnl AC_RETSIGTYPE isn't quite right, but almost.
7 AC_MSG_CHECKING([POSIX signal handlers])
8 AC_CACHE_VAL(cv_has_posix_signals,
10 [#include <sys/types.h>
15 extern void (*signal ()) ();], [],
16 cv_has_posix_signals=yes, cv_has_posix_signals=no)])
17 AC_MSG_RESULT($cv_has_posix_signals)
18 if test $cv_has_posix_signals = yes; then
19 AC_DEFINE(RETSIGTYPE, void, [Return type is void])
20 AC_DEFINE(POSIX_SIGTYPE, [], [Have POSIX signals])
22 if test $ac_cv_type_signal = void; then
23 AC_DEFINE(RETSIGTYPE, void, [Return type is void])
25 AC_DEFINE(RETSIGTYPE, int, [Return type is int])