1 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/x86_64/elf.
4 if test "$usetls" != no; then
5 # Check for support of thread-local storage handling in assembler and linker.
6 echo "$as_me:$LINENO: checking for x86-64 TLS support" >&5
7 echo $ECHO_N "checking for x86-64 TLS support... $ECHO_C" >&6
8 if test "${libc_cv_x86_64_tls+set}" = set; then
9 echo $ECHO_N "(cached) $ECHO_C" >&6
11 cat > conftest.s <<\EOF
12 .section ".tdata", "awT", @progbits
15 .section ".tbss", "awT", @nobits
19 baz: leaq bar@TLSLD(%rip), %rdi
20 leaq bar@DTPOFF(%rax), %rcx
21 addq foo@GOTTPOFF(%rip), %rax
24 if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
25 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29 (exit $ac_status); }; }; then
30 libc_cv_x86_64_tls=yes
36 echo "$as_me:$LINENO: result: $libc_cv_x86_64_tls" >&5
37 echo "${ECHO_T}$libc_cv_x86_64_tls" >&6
38 if test $libc_cv_x86_64_tls = yes; then
39 cat >>confdefs.h <<\_ACEOF
40 #define HAVE_TLS_SUPPORT 1
46 cat >>confdefs.h <<\_ACEOF
47 #define PI_STATIC_AND_HIDDEN 1