1 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
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 echo "$as_me:$LINENO: checking for powerpc32 TLS support" >&5
8 echo $ECHO_N "checking for powerpc32 TLS support... $ECHO_C" >&6
9 if test "${libc_cv_powerpc32_tls+set}" = set; then
10 echo $ECHO_N "(cached) $ECHO_C" >&6
12 cat > conftest.s <<\EOF
13 .section ".tdata","awT",@progbits
19 addi 3,31,x1@got@tlsld
21 addis 9,3,x2@dtprel@ha
24 addis 9,3,x2@dtprel@ha
26 lwz 9,x3@got@tprel(31)
32 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
33 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37 (exit $ac_status); }; }; then
38 libc_cv_powerpc32_tls=yes
40 libc_cv_powerpc32_tls=no
44 echo "$as_me:$LINENO: result: $libc_cv_powerpc32_tls" >&5
45 echo "${ECHO_T}$libc_cv_powerpc32_tls" >&6
46 if test $libc_cv_powerpc32_tls = yes; then
47 cat >>confdefs.h <<\_ACEOF
48 #define HAVE_TLS_SUPPORT 1