aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index cc5eeb459..e405672f2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -896,6 +896,20 @@ enum class C : long { c };
])
dnl }}}
+dnl {{{ c++0x noexcept
+AC_MSG_CHECKING([for c++0x noexcept])
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([
+struct C { ~C() noexcept(false); };
+C::~C() noexcept(false) {}
+])],
+ [AC_MSG_RESULT([yes])
+ PALUDIS_CXXFLAGS="${PALUDIS_CXXFLAGS} -DPALUDIS_HAVE_NOEXCEPT=1"
+ PALUDIS_PC_CFLAGS="${PALUDIS_PC_CFLAGS} -DPALUDIS_HAVE_NOEXCEPT=1"
+ ],
+ [AC_MSG_RESULT([no])
+ ])
+dnl }}}
+
CXXFLAGS="$save_CXXFLAGS"
AC_MSG_CHECKING([whether to enable visibility])