support detection of signals.
This commit is contained in:
parent
875546e36a
commit
39498868fb
@ -607,6 +607,9 @@
|
|||||||
/* Define to 1 if you have the `sigaction' function. */
|
/* Define to 1 if you have the `sigaction' function. */
|
||||||
#undef HAVE_SIGACTION
|
#undef HAVE_SIGACTION
|
||||||
|
|
||||||
|
/* Unix SIGFPE */
|
||||||
|
#undef HAVE_SIGFPE
|
||||||
|
|
||||||
/* Define to 1 if you have the `siggetmask' function. */
|
/* Define to 1 if you have the `siggetmask' function. */
|
||||||
#undef HAVE_SIGGETMASK
|
#undef HAVE_SIGGETMASK
|
||||||
|
|
||||||
@ -826,6 +829,9 @@
|
|||||||
/* Define to 1 if you have the `wcsdup' function. */
|
/* Define to 1 if you have the `wcsdup' function. */
|
||||||
#undef HAVE_WCSDUP
|
#undef HAVE_WCSDUP
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `wcsnlen' function. */
|
||||||
|
#undef HAVE_WCSNLEN
|
||||||
|
|
||||||
/* Define to 1 if you have the <wctype.h> header file. */
|
/* Define to 1 if you have the <wctype.h> header file. */
|
||||||
#undef HAVE_WCTYPE_H
|
#undef HAVE_WCTYPE_H
|
||||||
|
|
||||||
|
18
configure.in
18
configure.in
@ -1507,6 +1507,22 @@ then
|
|||||||
AC_DEFINE(HAVE_SIGINFO,1, [Unix SIGINFO])
|
AC_DEFINE(HAVE_SIGINFO,1, [Unix SIGINFO])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl check for sigfpe
|
||||||
|
AC_MSG_CHECKING(for sigfpe)
|
||||||
|
AC_CACHE_VAL(yap_cv_sigfpe,[
|
||||||
|
AC_TRY_COMPILE(
|
||||||
|
#include <signal.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
,
|
||||||
|
printf("SIGFPE value is %d\n", SA_SIGFPE);
|
||||||
|
,
|
||||||
|
yap_cv_sigfpe=yes,yap_cv_sigfpe=no)])
|
||||||
|
AC_MSG_RESULT($yap_cv_sigfpe)
|
||||||
|
if test "$yap_cv_sigfpe" = yes
|
||||||
|
then
|
||||||
|
AC_DEFINE(HAVE_SIGFPE,1, [Unix SIGFPE])
|
||||||
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING("variable timezone in tzset")
|
AC_MSG_CHECKING("variable timezone in tzset")
|
||||||
AC_TRY_RUN(
|
AC_TRY_RUN(
|
||||||
[ #include <time.h>
|
[ #include <time.h>
|
||||||
@ -1589,7 +1605,7 @@ AC_CHECK_FUNCS(setitimer setsid setlinebuf sigaction)
|
|||||||
AC_CHECK_FUNCS(siggetmask siginterrupt)
|
AC_CHECK_FUNCS(siggetmask siginterrupt)
|
||||||
AC_CHECK_FUNCS(signal sigprocmask socket srand srandom stat)
|
AC_CHECK_FUNCS(signal sigprocmask socket srand srandom stat)
|
||||||
AC_CHECK_FUNCS(strchr strerror stricmp strlwr strncat strncpy strtod)
|
AC_CHECK_FUNCS(strchr strerror stricmp strlwr strncat strncpy strtod)
|
||||||
AC_CHECK_FUNCS(time times tmpnam usleep utime vsnprintf wcsdup)
|
AC_CHECK_FUNCS(time times tmpnam usleep utime vsnprintf wcsdup wcsnlen)
|
||||||
|
|
||||||
# android does not really have locale stuff..
|
# android does not really have locale stuff..
|
||||||
case "$host" in
|
case "$host" in
|
||||||
|
Reference in New Issue
Block a user