diff options
author | Peter Simons <simons@cryp.to> | 2017-09-28 13:43:39 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2017-09-28 13:43:39 +0200 |
commit | 603e38c500a469d8c694003d2f7873db34f5c0d7 (patch) | |
tree | bb6090a6a3c0febfbd510cd717cba35e4460d285 /m4/ax_tls.m4 | |
parent | c2491d1be0fac08404cc89b678cd8d191f46ebb2 (diff) | |
download | autoconf-archive-603e38c500a469d8c694003d2f7873db34f5c0d7.tar.gz |
AX_TLS: check for thread_local storage qualifier keyword
The AX_TLS macro tests for thread local storage support. It checks a variety of
non-standard extensions, but forgets to try the official C++11 keyword
thread_local as well.
Submitted via https://savannah.gnu.org/patch/?9424.
Diffstat (limited to 'm4/ax_tls.m4')
-rw-r--r-- | m4/ax_tls.m4 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/m4/ax_tls.m4 b/m4/ax_tls.m4 index 4c4f491..51edee8 100644 --- a/m4/ax_tls.m4 +++ b/m4/ax_tls.m4 @@ -9,9 +9,9 @@ # DESCRIPTION # # Provides a test for the compiler support of thread local storage (TLS) -# extensions. Defines TLS if it is found. Currently knows about GCC/ICC -# and MSVC. I think SunPro uses the same as GCC, and Borland apparently -# supports either. +# extensions. Defines TLS if it is found. Currently knows about C++11, +# GCC/ICC, and MSVC. I think SunPro uses the same as GCC, and Borland +# apparently supports either. # # LICENSE # @@ -44,12 +44,12 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 13 +#serial 14 AC_DEFUN([AX_TLS], [ AC_MSG_CHECKING([for thread local storage (TLS) class]) AC_CACHE_VAL([ac_cv_tls], - [for ax_tls_keyword in _Thread_local __thread '__declspec(thread)' none; do + [for ax_tls_keyword in thread_local _Thread_local __thread '__declspec(thread)' none; do AS_CASE([$ax_tls_keyword], [none], [ac_cv_tls=none ; break], [AC_TRY_COMPILE( |