1 AC_DEFUN([LIBUNWIND___THREAD],
2 [dnl Check whether the compiler supports the __thread keyword.
3 if test "x$enable___thread" != xno; then
4 AC_CACHE_CHECK([for __thread], libc_cv_gcc___thread,
5 [cat > conftest.c <<\EOF
8 if AC_TRY_COMMAND([${CC-cc} $CFLAGS -c conftest.c >&AS_MESSAGE_LOG_FD]); then
9 libc_cv_gcc___thread=yes
11 libc_cv_gcc___thread=no
14 if test "$libc_cv_gcc___thread" = yes; then
15 AC_DEFINE(HAVE___THREAD, 1,
16 [Define to 1 if __thread keyword is supported by the C compiler.])
19 libc_cv_gcc___thread=no
22 AC_DEFUN([CHECK_ATOMIC_OPS],
23 [dnl Check whether the system has the atomic_ops package installed.
24 AC_CHECK_HEADERS(atomic_ops.h)
26 # Don't link against libatomic_ops for now. We don't want libunwind
27 # to depend on libatomic_ops.so. Fortunately, none of the platforms
28 # we care about so far need libatomic_ops.a (everything is done via
31 # AC_CHECK_LIB(atomic_ops, main)