1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
3 dnl The standard hppa assembler uses `;' to start comments and `!'
4 dnl as a line separator.
5 AC_CACHE_CHECK(for assembler line separator,
6 libc_cv_asm_line_sep, [dnl
10 if AC_TRY_COMMAND(${CC-cc} -c $ASFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
11 libc_cv_asm_line_sep='!'
13 if test -z "$enable_hacker_mode"; then
14 echo "*** You need a newer assembler to compile glibc"
18 libc_cv_asm_line_sep=';'
21 AC_DEFINE_UNQUOTED(ASM_LINE_SEP, $libc_cv_asm_line_sep)
23 # Check for support of thread-local storage handling in assembler and
25 AC_CACHE_CHECK(for hppa TLS support, libc_cv_hppa_tls, [dnl
26 cat > conftest.s <<\EOF
28 .section ".tdata","awT",@progbits
31 ; Test general dyanmic relocations
33 addil LT'foo-$tls_gdidx$, %r19
34 ldo RT'foo-$tls_gdidx$(%r1), %r26
37 ; Test local dynamic relocations
39 addil LT'foo-$tls_ldidx$, %r19
41 ldo RT'foo-$tls_ldidx$(%r1), %r26
42 ldo RR'foo-$tls_dtpoff$(%r1), %r25
43 ; More variables can be loaded...
44 ; Test initial exec reloctiosn
47 addil LT'foo-$tls_ieoff$, %r19
48 ldw RT'foo-$tls_ieoff$(%r1), %r25
50 ; Test local exec relocations
53 addil LR'foo-$tls_leoff$, %r26
54 ldo RR'foo-$tls_leoff$(%r1), %r25
55 ; Done all the TLS tests.
58 if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
64 if test $libc_cv_hppa_tls = no; then
65 AC_MSG_ERROR([the assembler must support TLS])