1
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2
# Local configure fragment for sysdeps/s390/elf.
4
# Check for support of thread-local storage handling in assembler and
6
AC_CACHE_CHECK(for s390 TLS support, libc_cv_390_tls, [dnl
7
cat > conftest.S <<\EOF
8
.section ".tdata", "awT", @progbits
17
lg %r1,foo@GOTNTPOFF(%r12)
18
lg %r1,0(%r1):tls_load:foo
19
brasl %r14,__tls_get_offset@plt:tls_gdcall:foo
20
brasl %r14,__tls_get_offset@plt:tls_ldcall:foo
23
if AC_TRY_COMMAND(${CC-cc} -S $CFLAGS conftest.S 1>&AS_MESSAGE_LOG_FD); then
29
if test $libc_cv_390_tls = no; then
30
AC_MSG_ERROR([the assembler must support TLS])
33
dnl It is always possible to access static and hidden symbols in an
34
dnl position independent way.
35
AC_DEFINE(PI_STATIC_AND_HIDDEN)