summaryrefslogtreecommitdiffstats
path: root/m4/tls.m4
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 /m4/tls.m4
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 'm4/tls.m4')
-rw-r--r--m4/tls.m417
1 files changed, 0 insertions, 17 deletions
diff --git a/m4/tls.m4 b/m4/tls.m4
deleted file mode 100644
index 3808f06e..00000000
--- a/m4/tls.m4
+++ /dev/null
@@ -1,17 +0,0 @@
-AC_DEFUN([CC_CHECK_TLS], [
- AC_CACHE_CHECK([whether $CC knows __thread for Thread-Local Storage],
- cc_cv_tls___thread,
- [AC_COMPILE_IFELSE(
- AC_LANG_PROGRAM(
- [[static __thread int a = 6;]],
- [[a = 5;]]),
- [cc_cv_tls___thread=yes],
- [cc_cv_tls___thread=no])
- ])
-
- AS_IF([test "x$cc_cv_tls___thread" = "xyes"],
- [AC_DEFINE([SUPPORT_TLS___THREAD], 1,
- [Define this if the compiler supports __thread for Thread-Local Storage])
- $1],
- [$2])
-])