2.9
[glibc/nacl-glibc.git] / sysdeps / s390 / s390-64 / elf / configure
blobadf5174ab97c8ad6036ae2a83a83d60d3eebb08a
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/s390/elf.
4 if test "$usetls" != no; then
5 # Check for support of thread-local storage handling in assembler and
6 # linker.
7 echo "$as_me:$LINENO: checking for s390 TLS support" >&5
8 echo $ECHO_N "checking for s390 TLS support... $ECHO_C" >&6
9 if test "${libc_cv_390_tls+set}" = set; then
10   echo $ECHO_N "(cached) $ECHO_C" >&6
11 else
12   cat > conftest.S <<\EOF
13         .section ".tdata", "awT", @progbits
14 foo:    .long   25
15         .text
16         .quad   foo@TLSGD
17         .quad   foo@TLSLDM
18         .quad   foo@DTPOFF
19         .quad   foo@NTPOFF
20         .quad   foo@GOTNTPOFF
21         .quad   foo@INDNTPOFF
22         lg      %r1,foo@GOTNTPOFF(%r12)
23         lg      %r1,0(%r1):tls_load:foo
24         brasl   %r14,__tls_get_offset@plt:tls_gdcall:foo
25         brasl   %r14,__tls_get_offset@plt:tls_ldcall:foo
26 EOF
27 if { ac_try='${CC-cc} -S $CFLAGS conftest.S 1>&5'
28   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29   (eval $ac_try) 2>&5
30   ac_status=$?
31   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32   (exit $ac_status); }; }; then
33   libc_cv_390_tls=yes
34 else
35   libc_cv_390_tls=no
37 rm -f conftest*
39 echo "$as_me:$LINENO: result: $libc_cv_390_tls" >&5
40 echo "${ECHO_T}$libc_cv_390_tls" >&6
41 if test $libc_cv_390_tls = yes; then
42   cat >>confdefs.h <<\_ACEOF
43 #define HAVE_TLS_SUPPORT 1
44 _ACEOF
49 cat >>confdefs.h <<\_ACEOF
50 #define PI_STATIC_AND_HIDDEN 1
51 _ACEOF