@@ -431,18 +431,21 @@ AS_IF([$EGREP __gnu_objc_personality_seh0 \ conftest.$ac_objext >/dev/null], [ exception_type="SEH" ]) + raise_exception="_Unwind_RaiseException" + case "$exception_type" in DWARF) AC_DEFINE(HAVE_DWARF_EXCEPTIONS, 1, [Whether DWARF exceptions are used]) ;; SjLj) AC_DEFINE(HAVE_SJLJ_EXCEPTIONS, 1, [Whether SjLj exceptions are used]) + raise_exception="_Unwind_SjLj_RaiseException" ;; SEH) AC_DEFINE(HAVE_SEH_EXCEPTIONS, 1, [Whether SEH exceptions are used]) ;; @@ -456,12 +459,12 @@ ], [ AC_MSG_RESULT(exceptions unavailable!) AC_MSG_ERROR([Exceptions not accepted by compiler!]) ]) - AC_CHECK_FUNC(_Unwind_RaiseException, [], [ - AC_CHECK_LIB(c++, _Unwind_RaiseException, [ + AC_CHECK_FUNC($raise_exception, [], [ + AC_CHECK_LIB(c++, $raise_exception, [ LIBS="-lc++ -lc++abi -lpthread $LIBS" ], [ AC_MSG_ERROR([_Unwind_RaiseException missing!]) ], [-lc++abi -lpthread]) ])