summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMaarten Bosmans <mkbosmans@gmail.com>2011-06-08 18:15:21 +0200
committerMaarten Bosmans <mkbosmans@gmail.com>2011-06-20 16:01:38 +0200
commit2ae6f88ccaa8b3018ac24c83dae04b094e0ba1e3 (patch)
tree00f1191b3163ea6b5fc39f52ad204fcdb30ad7f4 /configure.ac
parent429512dd5fdbc5137005967689a93a919ce411da (diff)
build-sys: Use AX_TLS macro from autoconf archive
It has no new functionality over the existing macro that is relevant for us, but it is good to have use a macro with a clearly defined upstream.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7213db15..a140d0ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -427,7 +427,9 @@ AS_IF([test "$pulseaudio_cv__Bool" = "yes"], AC_DEFINE([HAVE_STD_BOOL], 1, [Have
#### Thread support ####
-CC_CHECK_TLS
+AX_TLS
+AS_IF([test "$ac_cv_tls" == "__thread"],
+ AC_DEFINE([SUPPORT_TLS___THREAD], 1, [Define this if the compiler supports __thread for Thread-Local Storage]))
# Win32 build breaks with win32 pthread installed
AS_IF([test "x$os_is_win32" != "x1"],