1 dnl AC_CHECK_UCONTEXT: Check whether ucontext are working
3 dnl it uses AC_RUN and assume the worse while cross-compiling
5 AC_DEFUN([AC_CHECK_UCONTEXT],
7 AC_MSG_CHECKING([whether ucontext'es exist and are usable...])
8 AC_RUN_IFELSE(AC_LANG_PROGRAM([#include <ucontext.h>],
10 if (getcontext (&uc) != 0) return -1;
13 ac_check_ucontext=yes,
16 AC_MSG_RESULT(assuming the worse in cross-compilation)