2.9
[glibc/nacl-glibc.git] / sysdeps / ia64 / elf / configure.in
blobb113579ee08cbfe8b757b2be63225cd6ba4cdfdd
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local configure fragment for sysdeps/ia64/elf.
4 if test "$usetls" != no; then
5 # Check for support of thread-local storage handling in assembler and
6 # linker.
7 AC_CACHE_CHECK(for ia64 TLS support, libc_cv_ia64_tls, [dnl
8 cat > conftest.s <<\EOF
9         .section ".tdata","awT",@progbits
10 foo:    data8   25
11         .text
12         addl    r16 = @ltoff(@dtpmod(foo#)), gp
13         addl    r17 = @ltoff(@dtprel(foo#)), gp
14         addl    r18 = @ltoff(@tprel(foo#)), gp
15         addl    r19 = @dtprel(foo#), gp
16         adds    r21 = @dtprel(foo#), r13
17         movl    r23 = @dtprel(foo#)
18         addl    r20 = @tprel(foo#), gp
19         adds    r22 = @tprel(foo#), r13
20         movl    r24 = @tprel(foo#)
21 EOF
22 dnl
23 if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
24   libc_cv_ia64_tls=yes
25 else
26   libc_cv_ia64_tls=no
28 rm -f conftest*])
29 if test $libc_cv_ia64_tls = yes; then
30   AC_DEFINE(HAVE_TLS_SUPPORT)
34 dnl It is always possible to access static and hidden symbols in an
35 dnl position independent way.
36 AC_DEFINE(PI_STATIC_AND_HIDDEN)