diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-12-07 18:13:31 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-12-07 19:48:16 +0100 |
commit | 49a9d370e6598284c0a337d0f4f7ec329187de53 (patch) | |
tree | 4bc861c85a942bb41f62838744c4218da9288992 /configure.ac | |
parent | use config_xxx.h files instead of -DHAVE_XXX on the command line (diff) | |
download | core-49a9d370e6598284c0a337d0f4f7ec329187de53.tar.gz core-49a9d370e6598284c0a337d0f4f7ec329187de53.zip |
add rtl::OUStringBuffer::append(bool)
The same as 563fa900ba22bf83dfa58e67807ed0337f810576 , but this
time with extra care to not break anything with pointer->bool conversions.
Change-Id: Ifcea840e96da0fbfcf92b54141fb8ef9c5eb94ff
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 9a0d449c26c4..5cc0d71394e8 100644 --- a/configure.ac +++ b/configure.ac @@ -5705,6 +5705,34 @@ AC_SUBST(HAVE_GCC_NO_LONG_DOUBLE) AC_SUBST(HAVE_GCC_AVX) AC_SUBST(HAVE_GCC_BUILTIN_ATOMIC) +dnl ================================== +dnl Check for C++11 "= delete" support +dnl ================================== + +AC_MSG_CHECKING([whether $CXX supports C++11 = delete syntax]) +if test "$HAVE_CXX0X" = "TRUE"; then + save_CXXFLAGS=$CXXFLAGS + CXXFLAGS="$CXXFLAGS -std=gnu++0x" + AC_LANG_PUSH([C++]) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +struct A + { + void test() = delete; + }; +]])],[HAVE_CXX11_DELETE=TRUE],[]) + + AC_LANG_POP([C++]) + CXXFLAGS=$save_CXXFLAGS + if test "$HAVE_CXX11_DELETE" = "TRUE"; then + AC_MSG_RESULT([yes]) + AC_DEFINE([HAVE_CXX11_DELETE]) + else + AC_MSG_RESULT([no]) + fi +else + AC_MSG_RESULT([no (C++11 disabled)]) +fi + dnl =================================================================== dnl system stl sanity tests dnl =================================================================== |