Move all files into ports/ subdirectory in preparation for merge with glibc
[glibc.git] / ports / sysdeps / mips / configure.in
blobed92d29380be9df339a7f82d39b017a15ff0f137
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2 # Local configure fragment for sysdeps/mips.
4 # Check for support of thread-local storage handling in assembler and
5 # linker.
6 AC_CACHE_CHECK(for MIPS TLS support, libc_cv_mips_tls, [dnl
7 cat > conftest.s <<\EOF
8         .section ".tdata", "awT", %progbits
9         .globl foo
10 foo:    .long   1
11         .section ".tbss", "awT", %nobits
12         .globl bar
13 bar:    .skip   4
14         .text
16         lw      $25, %call16(__tls_get_addr)($28)
17         jalr    $25
18         addiu   $4, $28, %tlsgd(x) 
19 EOF
20 dnl
21 if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
22   libc_cv_mips_tls=yes
23 else
24   libc_cv_mips_tls=no
26 rm -f conftest*])
27 if test $libc_cv_mips_tls = no; then
28   AC_MSG_ERROR([the assembler must support TLS])
31 dnl No MIPS GCC supports accessing static and hidden symbols in an
32 dnl position independent way.
33 dnl AC_DEFINE(PI_STATIC_AND_HIDDEN)