From afb497408f273bb11f88738cc3ed76ecd3d7ac3b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 28 Jul 2015 21:41:59 -0700 Subject: [PATCH] Remove unnecessary stack overflow dependency * configure.ac (HAVE_STACK_OVERFLOW_HANDLING): Don't worry about $ac_cv_header_sys_resource_h and $ac_cv_func_getrlimit, as they're no longer needed for this. Problem reported by Eli Zaretskii in: http://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00443.html --- configure.ac | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 19b8b9d69ae..45008d86807 100644 --- a/configure.ac +++ b/configure.ac @@ -4557,9 +4557,7 @@ if test $emacs_cv_func_sigsetjmp = yes; then fi # We need all of these features to handle C stack overflows. -if test "$ac_cv_header_sys_resource_h" = "yes" && - test "$ac_cv_func_getrlimit" = "yes" && - test "$emacs_cv_func_sigsetjmp" = "yes" && +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.]) -- 2.39.2