]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/sh/elf/configure
2.5-18.1
[thirdparty/glibc.git] / sysdeps / sh / elf / configure
CommitLineData
7eb7fdda
UD
1# This file is generated from configure.in by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/sh/elf.
3
4if test "$usetls" != no; then
5# Check for support of thread-local storage handling in assembler and
6# linker.
7echo "$as_me:$LINENO: checking for SH TLS support" >&5
0ecb606c 8echo $ECHO_N "checking for SH TLS support... $ECHO_C" >&6
7eb7fdda
UD
9if test "${libc_cv_sh_tls+set}" = set; then
10 echo $ECHO_N "(cached) $ECHO_C" >&6
11else
12 cat > conftest.S <<\EOF
13 .section ".tdata", "awT", @progbits
14foo: .long 25
15 .text
16 .long foo@TLSGD
17 .long foo@TLSLDM
18 .long foo@DTPOFF
19 .long foo@GOTTPOFF
20 .long foo@TPOFF
21EOF
22if { ac_try='${CC-cc} -S $CFLAGS conftest.S 1>&5'
23 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24 (eval $ac_try) 2>&5
25 ac_status=$?
26 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27 (exit $ac_status); }; }; then
28 libc_cv_sh_tls=yes
29else
30 libc_cv_sh_tls=no
31fi
32rm -f conftest*
33fi
34echo "$as_me:$LINENO: result: $libc_cv_sh_tls" >&5
35echo "${ECHO_T}$libc_cv_sh_tls" >&6
36if test $libc_cv_sh_tls = yes; then
37 cat >>confdefs.h <<\_ACEOF
38#define HAVE_TLS_SUPPORT 1
39_ACEOF
40
41fi
42fi
43
44cat >>confdefs.h <<\_ACEOF
45#define PI_STATIC_AND_HIDDEN 1
46_ACEOF
47