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