174 |
|
AC_MSG_ERROR([Sorry, Windows exceptions don't work as expected on your system.]) |
175 |
|
fi |
176 |
|
|
177 |
+ |
dnl Check if we can ignore the fault (instruction skipping in SIGSEGV handler) |
178 |
+ |
AC_CACHE_CHECK([whether we can skip instruction in SIGSEGV handler], |
179 |
+ |
ac_cv_have_skip_instruction, [ |
180 |
+ |
AC_LANG_SAVE |
181 |
+ |
AC_LANG_CPLUSPLUS |
182 |
+ |
AC_TRY_RUN([ |
183 |
+ |
#define HAVE_SIGSEGV_SKIP_INSTRUCTION 1 |
184 |
+ |
#define CONFIGURE_TEST_SIGSEGV_RECOVERY |
185 |
+ |
#include "../Unix/vm_alloc.cpp" |
186 |
+ |
#include "../Unix/sigsegv.cpp" |
187 |
+ |
], ac_cv_have_skip_instruction=yes, ac_cv_have_skip_instruction=no, |
188 |
+ |
dnl When cross-compiling, do not assume anything. |
189 |
+ |
ac_cv_have_skip_instruction=no |
190 |
+ |
) |
191 |
+ |
AC_LANG_RESTORE |
192 |
+ |
] |
193 |
+ |
) |
194 |
+ |
AC_TRANSLATE_DEFINE(HAVE_SIGSEGV_SKIP_INSTRUCTION, "$ac_cv_have_skip_instruction", |
195 |
+ |
[Define if we can ignore the fault (instruction skipping in SIGSEGV handler).]) |
196 |
+ |
|
197 |
|
dnl We really want VOSF (Video on SEGV Signals) screen updates acceleration |
198 |
|
AC_DEFINE(ENABLE_VOSF, 1, [Define if using video enabled on SEGV signals.]) |
199 |
|
|