diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-08-04 14:08:28 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-08-04 14:09:50 +0200 |
commit | f0ca80f4e7b3d018aabcc0ed428551fda836afe6 (patch) | |
tree | 0efa0fb5e184579dfef9b7b7ea8c162726b75610 /configure.ac | |
parent | 525b1c2c86898b4f7b53d887d4b6ab4c843f22ae (diff) |
configure: MSVC 2015 finally supports C++11 thread-safe statics
Change-Id: If0e644298c655487cf97609a66ee37c5b4bd70ae
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c97617aed1c4..2e7591fc309c 100644 --- a/configure.ac +++ b/configure.ac @@ -5872,7 +5872,14 @@ if test "$GCC" = "yes"; then AC_MSG_RESULT([broken (i.e., no)]) fi else - AC_MSG_RESULT([unknown (assuming no)]) + # MSVC has sprouted C++11 thread-safe statics in 2015 + # http://blogs.msdn.com/b/vcblog/archive/2015/06/19/c-11-14-17-features-in-vs-2015-rtm.aspx + if test "$COM" = "MSC" -a "$VCVER" -ge "140"; then + AC_DEFINE(HAVE_THREADSAFE_STATICS) + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi fi AC_SUBST(HAVE_THREADSAFE_STATICS) |