diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-02-25 20:52:31 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-02-26 08:57:08 +0100 |
commit | 069506bcb0ee4005b01c22095ed427b96b553c98 (patch) | |
tree | 96e05c9acb45071dbde1fff19bbef4c587487994 /configure.ac | |
parent | 128deeae81a6f802bfb79b8f0fa8c4b10729f7db (diff) |
Use config_cxxabi.h to check for __cxa_eh_globals, __cxa_exception
Change-Id: I467341da4bccb3afb82518b444cd101b3cdaacc9
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 1043c9fd60ac..658f2c8f1060 100644 --- a/configure.ac +++ b/configure.ac @@ -6052,6 +6052,30 @@ if test "$GCC" = "yes"; then ], [AC_MSG_RESULT([no])]) AC_LANG_POP([C++]) + AC_MSG_CHECKING([whether $CXX defines __cxa_eh_globals in cxxabi.h]) + AC_LANG_PUSH([C++]) + AC_COMPILE_IFELSE([AC_LANG_SOURCE([ + #include <cstddef> + #include <cxxabi.h> + std::size_t f() { return sizeof(__cxxabiv1::__cxa_eh_globals); } + ])], [ + AC_DEFINE([HAVE_CXXABI_H_CXA_EH_GLOBALS],[1]) + AC_MSG_RESULT([yes]) + ], [AC_MSG_RESULT([no])]) + AC_LANG_POP([C++]) + + AC_MSG_CHECKING([whether $CXX defines __cxa_exceptions in cxxabi.h]) + AC_LANG_PUSH([C++]) + AC_COMPILE_IFELSE([AC_LANG_SOURCE([ + #include <cstddef> + #include <cxxabi.h> + std::size_t f() { return sizeof(__cxxabiv1::__cxa_exceptions); } + ])], [ + AC_DEFINE([HAVE_CXXABI_H_CXA_EXCEPTIONS],[1]) + AC_MSG_RESULT([yes]) + ], [AC_MSG_RESULT([no])]) + AC_LANG_POP([C++]) + AC_MSG_CHECKING([whether $CXX declares __cxa_get_globals in cxxabi.h]) AC_LANG_PUSH([C++]) AC_COMPILE_IFELSE([AC_LANG_SOURCE([ |