1 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
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 echo "$as_me:$LINENO: checking for MIPS TLS support" >&5
8 echo $ECHO_N "checking for MIPS TLS support... $ECHO_C" >&6
9 if test "${libc_cv_mips_tls+set}" = set; then
10 echo $ECHO_N "(cached) $ECHO_C" >&6
12 cat > conftest.s <<\EOF
13 .section ".tdata", "awT", %progbits
16 .section ".tbss", "awT", %nobits
21 lw $25, %call16(__tls_get_addr)($28)
23 addiu $4, $28, %tlsgd(x)
25 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
26 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30 (exit $ac_status); }; }; then
37 echo "$as_me:$LINENO: result: $libc_cv_mips_tls" >&5
38 echo "${ECHO_T}$libc_cv_mips_tls" >&6
39 if test $libc_cv_mips_tls = yes; then
40 cat >>confdefs.h <<\_ACEOF
41 #define HAVE_TLS_SUPPORT 1