empserver/m4/my_func_makecontext.m4
2008-12-07 17:25:35 -05:00

18 lines
390 B
Text

AC_DEFUN([MY_FUNC_MAKECONTEXT],
[
AC_REQUIRE([AC_CANONICAL_HOST])
case "$host_os" in
*darwin*)
# ucontext appears to be broken, avoid it for now
ac_cv_func_makecontext=no
;;
*)
AC_CHECK_FUNCS(makecontext)
esac
case "$host_os" in
*irix*|*solaris2.?)
AC_DEFINE([MAKECONTEXT_SP_HIGH], 1,
[Define if your makecontext() requires ss_sp at the top of the stack])
;;
esac
])