diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-02-06 18:24:46 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-02-06 18:41:42 +0100 |
commit | f1359d1221b335c4856821948f89868f021135eb (patch) | |
tree | 7739703036994becc0ffc5ab0f4f2f1cad6a7888 /configure.ac | |
parent | 3e79e6584453cb211f75d36a076b588e32f5e980 (diff) |
Make OUStringLiteral more useful
...don't dare make it non-explicit, yet.
Along the way, introduce SAL_CONSTEXPR.
Change-Id: Ia3179d0d5e001fd7aa92237c97437e9b74366ee1
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 950c7c8526c2..e1f22548b332 100644 --- a/configure.ac +++ b/configure.ac @@ -6189,6 +6189,23 @@ if test "$perfect_forwarding" = yes; then AC_DEFINE([HAVE_CXX11_PERFECT_FORWARDING]) fi +AC_MSG_CHECKING([whether $CXX supports C++11 constexpr]) +save_CXXFLAGS=$CXXFLAGS +CXXFLAGS="$CXXFLAGS $CXXFLAGS_CXX11" +AC_LANG_PUSH([C++]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + struct S { + int n_; + constexpr S(int n): n_(n) {} + }; + ]])], [cxx11_constexpr=yes], [cxx11_constexpr=no]) +AC_LANG_POP([C++]) +CXXFLAGS=$save_CXXFLAGS +AC_MSG_RESULT([$cxx11_constexpr]) +if test "$cxx11_constexpr" = yes; then + AC_DEFINE([HAVE_CXX11_CONSTEXPR]) +fi + HAVE_GCC_PRAGMA_OPERATOR= dnl _Pragma support (may require C++11) if test "$GCC" = "yes"; then |