1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local configure fragment for sysdeps/powerpc32/elf.
4 if test "$usetls" != no; then
5 # Check for support of thread-local storage handling in assembler and
7 AC_CACHE_CHECK(for powerpc32 TLS support, libc_cv_powerpc32_tls, [dnl
8 cat > conftest.s <<\EOF
9 .section ".tdata","awT",@progbits
15 addi 3,31,x1@got@tlsld
17 addis 9,3,x2@dtprel@ha
20 addis 9,3,x2@dtprel@ha
22 lwz 9,x3@got@tprel(31)
29 if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
30 libc_cv_powerpc32_tls=yes
32 libc_cv_powerpc32_tls=no
35 if test $libc_cv_powerpc32_tls = yes; then
36 AC_DEFINE(HAVE_TLS_SUPPORT)