1 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
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 echo "$as_me:$LINENO: checking for powerpc64 TLS support" >&5
8 echo $ECHO_N "checking for powerpc64 TLS support... $ECHO_C" >&6
9 if test "${libc_cv_powerpc64_tls+set}" = set; then
10 echo $ECHO_N "(cached) $ECHO_C" >&6
12 cat > conftest.s <<\EOF
13 .section ".tdata","awT",@progbits
33 addis 9,3,x2@dtprel@ha
39 addis 9,3,x2@dtprel@ha
48 addis 9,13,x2@tprel@ha
51 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
52 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56 (exit $ac_status); }; }; then
57 libc_cv_powerpc64_tls=yes
59 libc_cv_powerpc64_tls=no
63 echo "$as_me:$LINENO: result: $libc_cv_powerpc64_tls" >&5
64 echo "${ECHO_T}$libc_cv_powerpc64_tls" >&6
65 if test $libc_cv_powerpc64_tls = yes; then
66 cat >>confdefs.h <<\_ACEOF
67 #define HAVE_TLS_SUPPORT 1