diff options
author | Thomas Jahns <jahns@dkrz.de> | 2014-07-30 14:19:44 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2014-10-15 10:39:16 +0200 |
commit | e012eb17b3d67f31dee477592328207437206c33 (patch) | |
tree | b1ea74e6583348d40bc3adcb162c1ee5a094af42 /m4/ax_tls.m4 | |
parent | 9dd93cb6f66f289de0f6bd8e182454aaddf753e0 (diff) | |
download | autoconf-archive-e012eb17b3d67f31dee477592328207437206c33.tar.gz |
Fix quoting problem in AX_TLS.
* This change also eliminates a variable only assigned/used once.
Diffstat (limited to 'm4/ax_tls.m4')
-rw-r--r-- | m4/ax_tls.m4 | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/m4/ax_tls.m4 b/m4/ax_tls.m4 index 033e3b1..809b761 100644 --- a/m4/ax_tls.m4 +++ b/m4/ax_tls.m4 @@ -44,13 +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 10 +#serial 11 AC_DEFUN([AX_TLS], [ - AC_MSG_CHECKING(for thread local storage (TLS) class) - AC_CACHE_VAL(ac_cv_tls, [ - ax_tls_keywords="__thread __declspec(thread) none" - for ax_tls_keyword in $ax_tls_keywords; do + AC_MSG_CHECKING([for thread local storage (TLS) class]) + AC_CACHE_VAL([ac_cv_tls], + [for ax_tls_keyword in __thread '__declspec(thread)' none; do AS_CASE([$ax_tls_keyword], [none], [ac_cv_tls=none ; break], [AC_TRY_COMPILE( @@ -66,11 +65,10 @@ AC_DEFUN([AX_TLS], [ )]) done ]) - AC_MSG_RESULT($ac_cv_tls) + AC_MSG_RESULT([$ac_cv_tls]) AS_IF([test "$ac_cv_tls" != "none"], - AC_DEFINE_UNQUOTED([TLS], $ac_cv_tls, [If the compiler supports a TLS storage class define it to that here]) - m4_ifnblank([$1], [$1]), - m4_ifnblank([$2], [$2]) - ) + [AC_DEFINE_UNQUOTED([TLS],[$ac_cv_tls],[If the compiler supports a TLS storage class define it to that here]) + m4_ifnblank([$1],[$1])], + [m4_ifnblank([$2],[$2])]) ]) |