diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e00b8ae1b..b1e1c1aca 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1795,6 +1795,20 @@ else | |||
1795 | fi | 1795 | fi |
1796 | AC_DEFINE_UNQUOTED([ENABLE_WINDOWS_WORKAROUNDS], $workarounds, [enable workarounds used on Windows (only useful for test cases)]) | 1796 | AC_DEFINE_UNQUOTED([ENABLE_WINDOWS_WORKAROUNDS], $workarounds, [enable workarounds used on Windows (only useful for test cases)]) |
1797 | 1797 | ||
1798 | |||
1799 | # Check if the __thread storage class for thread-local storage is available. | ||
1800 | AC_MSG_CHECKING(whether __thread is supported) | ||
1801 | AC_LINK_IFELSE( | ||
1802 | [AC_LANG_PROGRAM([#include <stdlib.h> | ||
1803 | #undef __thread | ||
1804 | static __thread int a = 1;], | ||
1805 | [exit(a-1);])], | ||
1806 | [have_thread_local_gcc=1],[have_thread_local_gcc=0]) | ||
1807 | AC_DEFINE_UNQUOTED([HAVE_THREAD_LOCAL_GCC],$have_thread_local_gcc,[Define this if __thread is supported]) | ||
1808 | AS_IF([test "x$have_thread_local_gcc" = "x1"], | ||
1809 | [AC_MSG_RESULT(yes)], | ||
1810 | [AC_MSG_RESULT(no)]) | ||
1811 | |||
1798 | # gcov compilation | 1812 | # gcov compilation |
1799 | AC_MSG_CHECKING(whether to compile with support for code coverage analysis) | 1813 | AC_MSG_CHECKING(whether to compile with support for code coverage analysis) |
1800 | AC_ARG_ENABLE([coverage], | 1814 | AC_ARG_ENABLE([coverage], |