1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local configure fragment for sysdeps/mips/elf.
4 if test "$usetls" != no; then
5 # Check for support of thread-local storage handling in assembler and
7 AC_CACHE_CHECK(for MIPS TLS support, libc_cv_mips_tls, [dnl
8 cat > conftest.s <<\EOF
9 .section ".tdata", "awT", %progbits
12 .section ".tbss", "awT", %nobits
17 lw $25, %call16(__tls_get_addr)($28)
19 addiu $4, $28, %tlsgd(x)
22 if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
28 if test $libc_cv_mips_tls = yes; then
29 AC_DEFINE(HAVE_TLS_SUPPORT)
33 dnl No MIPS GCC supports accessing static and hidden symbols in an
34 dnl position independent way.
35 dnl AC_DEFINE(PI_STATIC_AND_HIDDEN)