1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local configure fragment for sysdeps/powerpc64/elf.
4 if test "$usetls" != no; then
5 # Check for support of thread-local storage handling in assembler and
7 AC_CACHE_CHECK(for powerpc64 TLS support, libc_cv_powerpc64_tls, [dnl
8 cat > conftest.s <<\EOF
9 .section ".tdata","awT",@progbits
29 addis 9,3,x2@dtprel@ha
35 addis 9,3,x2@dtprel@ha
44 addis 9,13,x2@tprel@ha
48 if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
49 libc_cv_powerpc64_tls=yes
51 libc_cv_powerpc64_tls=no
54 if test $libc_cv_powerpc64_tls = yes; then
55 AC_DEFINE(HAVE_TLS_SUPPORT)