2002-10-18 05:05:55 +00:00
|
|
|
# This file is generated from configure.in by Autoconf. DO NOT EDIT!
|
2002-03-12 00:38:37 +00:00
|
|
|
# Local configure fragment for sysdeps/i386/elf.
|
2002-02-04 06:24:37 +00:00
|
|
|
|
2002-02-07 06:38:57 +00:00
|
|
|
if test "$usetls" != no; then
|
2002-02-04 06:24:37 +00:00
|
|
|
# Check for support of thread-local storage handling in assembler and
|
|
|
|
# linker.
|
2007-10-16 23:25:46 +00:00
|
|
|
{ echo "$as_me:$LINENO: checking for i386 TLS support" >&5
|
|
|
|
echo $ECHO_N "checking for i386 TLS support... $ECHO_C" >&6; }
|
2002-10-18 05:05:55 +00:00
|
|
|
if test "${libc_cv_386_tls+set}" = set; then
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2002-02-04 06:24:37 +00:00
|
|
|
else
|
|
|
|
cat > conftest.s <<\EOF
|
|
|
|
.section ".tdata", "awT", @progbits
|
2002-02-05 00:57:29 +00:00
|
|
|
.globl foo
|
2002-02-04 06:24:37 +00:00
|
|
|
foo: .long 1
|
|
|
|
.section ".tbss", "awT", @nobits
|
2002-02-05 00:57:29 +00:00
|
|
|
.globl bar
|
|
|
|
bar: .skip 4
|
2002-02-04 06:24:37 +00:00
|
|
|
.text
|
|
|
|
baz: leal bar@TLSLDM(%ebx), %eax
|
|
|
|
leal bar@DTPOFF(%eax), %edx
|
|
|
|
subl foo@GOTTPOFF(%edx), %eax
|
|
|
|
subl $bar@TPOFF, %eax
|
2002-09-30 10:26:59 +00:00
|
|
|
movl foo@GOTNTPOFF(%edx), %ecx
|
|
|
|
movl %gs:(%ecx), %eax
|
|
|
|
movl %gs:bar@NTPOFF, %eax
|
2002-02-04 06:24:37 +00:00
|
|
|
EOF
|
2002-10-18 05:05:55 +00:00
|
|
|
if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
|
|
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
|
|
(eval $ac_try) 2>&5
|
|
|
|
ac_status=$?
|
|
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
|
|
(exit $ac_status); }; }; then
|
2002-02-04 06:24:37 +00:00
|
|
|
libc_cv_386_tls=yes
|
|
|
|
else
|
|
|
|
libc_cv_386_tls=no
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
fi
|
2007-10-16 23:25:46 +00:00
|
|
|
{ echo "$as_me:$LINENO: result: $libc_cv_386_tls" >&5
|
|
|
|
echo "${ECHO_T}$libc_cv_386_tls" >&6; }
|
2002-02-04 06:24:37 +00:00
|
|
|
if test $libc_cv_386_tls = yes; then
|
2002-10-18 05:05:55 +00:00
|
|
|
cat >>confdefs.h <<\_ACEOF
|
2002-02-04 06:24:37 +00:00
|
|
|
#define HAVE_TLS_SUPPORT 1
|
2002-10-18 05:05:55 +00:00
|
|
|
_ACEOF
|
2002-02-04 06:24:37 +00:00
|
|
|
|
|
|
|
fi
|
2002-02-07 06:38:57 +00:00
|
|
|
fi
|
2002-08-25 07:22:45 +00:00
|
|
|
|
2002-10-18 05:05:55 +00:00
|
|
|
cat >>confdefs.h <<\_ACEOF
|
2002-08-25 07:22:45 +00:00
|
|
|
#define PI_STATIC_AND_HIDDEN 1
|
2002-10-18 05:05:55 +00:00
|
|
|
_ACEOF
|
2002-08-25 07:22:45 +00:00
|
|
|
|