From: Paul Eggert Date: Sat, 8 Aug 2015 15:25:51 +0000 (-0700) Subject: * configure.ac (HAVE_STACK_OVERFLOW_HANDLING): Simplify configuration. X-Git-Tag: emacs-25.0.90~1373^2~91 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=46387c54ad61155b615c6ad49f2bb19ad8311aee;p=emacs.git * configure.ac (HAVE_STACK_OVERFLOW_HANDLING): Simplify configuration. --- diff --git a/configure.ac b/configure.ac index 863c9a9fd06..16d4484c21b 100644 --- a/configure.ac +++ b/configure.ac @@ -4556,18 +4556,11 @@ if test $emacs_cv_func_sigsetjmp = yes; then [Define to 1 if sigsetjmp and siglongjmp work.]) fi -# We need all of these features to handle C stack overflows. -if test "$emacs_cv_func_sigsetjmp" = "yes" && - test "$emacs_cv_alternate_stack" = yes; then - AC_DEFINE([HAVE_STACK_OVERFLOW_HANDLING], 1, - [Define to 1 if C stack overflow can be handled in some cases.]) -fi - -# WINDOWSNT can handle C stack overflows even without the above features -if test "${opsys}" = "mingw32"; then - AC_DEFINE([HAVE_STACK_OVERFLOW_HANDLING], 1, - [Define to 1 if C stack overflow can be handled in some cases.]) -fi +case $emacs_cv_func_sigsetjmp,$emacs_cv_alternate_stack,$opsys in + yes,yes,* | *,*,mingw32) + AC_DEFINE([HAVE_STACK_OVERFLOW_HANDLING], 1, + [Define to 1 if C stack overflow can be handled in some cases.]);; +esac case $opsys in sol2* | unixware )