diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index cf52e9d46ad5..2f064eb8acd3 100644 --- a/configure.ac +++ b/configure.ac @@ -6335,6 +6335,23 @@ if test "$cxx14_constexpr" = yes; then AC_DEFINE([HAVE_CXX14_CONSTEXPR]) fi +AC_MSG_CHECKING([whether $CXX supports C++11 ref-qualifier]) +save_CXXFLAGS=$CXXFLAGS +CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11" +AC_LANG_PUSH([C++]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + struct S { + void f() &; + void f() &&; + }; + ]])], [cxx11_ref_qualifier=yes], [cxx11_ref_qualifier=no]) +AC_LANG_POP([C++]) +CXXFLAGS=$save_CXXFLAGS +AC_MSG_RESULT([$cxx11_ref_qualifier]) +if test "$cxx11_ref_qualifier" = yes; then + AC_DEFINE([HAVE_CXX11_REF_QUALIFIER]) +fi + AC_MSG_CHECKING([whether $CXX supports C++14 sized deallocation]) if test "$CROSS_COMPILING" = TRUE; then cxx14_sized_deallocation=no |