Commit f9652e22 authored by Austin Seipp's avatar Austin Seipp

Check for __thread in ./configure.ac

Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
parent db9baf08
......@@ -861,7 +861,21 @@ dnl ** check for eventfd which is needed by the I/O manager
AC_CHECK_HEADERS([sys/eventfd.h])
AC_CHECK_FUNCS([eventfd])
# checking for PAPI
dnl ** Check for __thread support in the compiler
AC_MSG_CHECKING(for __thread support)
AC_COMPILE_IFELSE(
[ AC_LANG_SOURCE([[__thread int tester = 0;]]) ],
[
AC_MSG_RESULT(yes)
AC_DEFINE([CC_SUPPORTS_TLS],[0],[Define to 1 if __thread is supported])
],
[
AC_MSG_RESULT(no)
AC_DEFINE([CC_SUPPORTS_TLS],[1],[Define to 1 if __thread is supported])
])
dnl ** checking for PAPI
AC_CHECK_LIB(papi, PAPI_library_init, HavePapiLib=YES, HavePapiLib=NO)
AC_CHECK_HEADER([papi.h], [HavePapiHeader=YES], [HavePapiHeader=NO])
AC_SUBST(HavePapiLib)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment