ltq-tapi is not xway specific
[openwrt.git] / package / ead / src / tinysrp / acinclude.m4
1 dnl
2 dnl check for signal type
3 dnl
4 dnl AC_RETSIGTYPE isn't quite right, but almost.
5 dnl
6 define(TYPE_SIGNAL,[
7 AC_MSG_CHECKING([POSIX signal handlers])
8 AC_CACHE_VAL(cv_has_posix_signals,
9 [AC_TRY_COMPILE(
10 [#include <sys/types.h>
11 #include <signal.h>
12 #ifdef signal
13 #undef signal
14 #endif
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])
21 else
22 if test $ac_cv_type_signal = void; then
23 AC_DEFINE(RETSIGTYPE, void, [Return type is void])
24 else
25 AC_DEFINE(RETSIGTYPE, int, [Return type is int])
26 fi
27 fi])dnl
This page took 0.045949 seconds and 5 git commands to generate.