Fix: tls-compat.h exposes compiler-dependent public configuration
[urcu.git] / configure.ac
index 7d5aa87899fa914621dc78b1b9a572ed0c38e2f7..61f02399cedc1066f09fa66d9a7984aef9616cdc 100644 (file)
@@ -42,14 +42,7 @@ AC_ARG_ENABLE([compiler-tls],
        [def_compiler_tls=$enableval],
        [def_compiler_tls="yes"])
 
-# If not overridden, use ax_tls.m4 to check if TLS is available.
-AS_IF([test "x$def_compiler_tls" = "xyes"],
-       [AX_TLS([def_tls_detect=$ac_cv_tls], [:])],
-       [:])
-
-AS_IF([test "x$def_tls_detect" = "x"],
-       [:],
-       [AC_DEFINE_UNQUOTED([CONFIG_RCU_TLS], $def_tls_detect)])
+AS_IF([test "x$def_compiler_tls" = "xyes"], AC_DEFINE([CONFIG_RCU_TLS], [1]), [:])
 
 # Checks for C compiler
 AC_USE_SYSTEM_EXTENSIONS
@@ -428,7 +421,7 @@ test "x$compat_futex_test" = "x0" && value=1 || value=0
 PPRINT_PROP_BOOL([Futex support], $value)
 
 # TLS
-test "x$def_tls_detect" = "x" && value="pthread_getspecific()" || value="$def_tls_detect"
+test "x$def_compiler_tls" = "xyes" && value="compiler TLS" || value="pthread_getspecific()"
 PPRINT_PROP_STRING([Thread Local Storage (TLS)], [$value])
 
 # clock_gettime() available
This page took 0.023948 seconds and 4 git commands to generate.