annotate config/sjlj.m4 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 dnl Check if the compiler is configured for setjmp/longjmp exceptions.
kono
parents:
diff changeset
2 AC_DEFUN([GCC_CHECK_SJLJ_EXCEPTIONS],
kono
parents:
diff changeset
3 [AC_CACHE_CHECK([whether the compiler is configured for setjmp/longjmp exceptions],
kono
parents:
diff changeset
4 ac_cv_sjlj_exceptions,
kono
parents:
diff changeset
5 [AC_COMPILE_IFELSE(
kono
parents:
diff changeset
6 [AC_LANG_PROGRAM(
kono
parents:
diff changeset
7 [[#ifdef __USING_SJLJ_EXCEPTIONS__
kono
parents:
diff changeset
8 this will fail
kono
parents:
diff changeset
9 #endif]],
kono
parents:
diff changeset
10 [[int i;]])],
kono
parents:
diff changeset
11 [ac_cv_sjlj_exceptions=no],
kono
parents:
diff changeset
12 [ac_cv_sjlj_exceptions=yes])])])