1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

Remove --wth-tls option, TLS support is required

This commit is contained in:
Ulrich Drepper
2011-09-11 15:02:01 -04:00
parent 633f745dca
commit 83cd142045
34 changed files with 888 additions and 343 deletions

View File

@@ -1,5 +1,21 @@
2011-09-11 Ulrich Drepper <drepper@gmail.com> 2011-09-11 Ulrich Drepper <drepper@gmail.com>
* configure.in: Remove --with-tls option.
* config.h.in: Remove HAVE_TLS_SUPPORT entry.
* sysdeps/i386/elf/configure.in: Always test for TLS support and err
out in case it is missing.
* sysdeps/ia64/elf/configure.in: Likewise.
* sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
* sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
* sysdeps/s390/s390-32/elf/configure.in: Likewise.
* sysdeps/s390/s390-64/elf/configure.in: Likewise.
* sysdeps/sh/elf/configure.in: Likewise.
* sysdeps/sparc/sparc32/elf/configure.in: Likewise.
* sysdeps/sparc/sparc64/elf/configure.in: Likewise.
* sysdeps/x86_64/elf/configure.in: Likewise.
* sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
* sysdeps/mach/hurd/tls.h: Likewise.
[BZ #13067] [BZ #13067]
* malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int. * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.

View File

@@ -112,9 +112,6 @@
/* Define if _rtld_local structure should be forced into .sdata section. */ /* Define if _rtld_local structure should be forced into .sdata section. */
#undef HAVE_SDATA_SECTION #undef HAVE_SDATA_SECTION
/* Define if binutils support TLS handling. */
#undef HAVE_TLS_SUPPORT
/* Define if gcc supports SSE4. */ /* Define if gcc supports SSE4. */
#undef HAVE_SSE4_SUPPORT #undef HAVE_SSE4_SUPPORT

11
configure vendored
View File

@@ -783,7 +783,6 @@ enable_versioning
enable_oldest_abi enable_oldest_abi
enable_stackguard_randomization enable_stackguard_randomization
enable_add_ons enable_add_ons
with_tls
enable_hidden_plt enable_hidden_plt
enable_bind_now enable_bind_now
enable_static_nss enable_static_nss
@@ -1466,7 +1465,6 @@ Optional Packages:
--with-headers=PATH location of system headers to use (for example --with-headers=PATH location of system headers to use (for example
/usr/src/linux/include) [default=compiler default] /usr/src/linux/include) [default=compiler default]
--with-default-link do not use explicit linker scripts --with-default-link do not use explicit linker scripts
--with-tls enable support for TLS
--with-cpu=CPU select code for CPU variant --with-cpu=CPU select code for CPU variant
Some influential environment variables: Some influential environment variables:
@@ -3668,15 +3666,6 @@ else
fi fi
# Check whether --with-tls was given.
if test "${with_tls+set}" = set; then :
withval=$with_tls; usetls=$withval
else
usetls=yes
fi
# Check whether --enable-hidden-plt was given. # Check whether --enable-hidden-plt was given.
if test "${enable_hidden_plt+set}" = set; then : if test "${enable_hidden_plt+set}" = set; then :
enableval=$enable_hidden_plt; hidden=$enableval enableval=$enable_hidden_plt; hidden=$enableval

View File

@@ -187,13 +187,6 @@ AC_ARG_ENABLE([add-ons],
search for add-ons if no parameter given]), search for add-ons if no parameter given]),
, [enable_add_ons=yes]) , [enable_add_ons=yes])
dnl Let the user avoid using TLS. Don't know why but...
AC_ARG_WITH([tls],
AC_HELP_STRING([--with-tls],
[enable support for TLS]),
[usetls=$withval],
[usetls=yes])
AC_ARG_ENABLE([hidden-plt], AC_ARG_ENABLE([hidden-plt],
AC_HELP_STRING([--disable-hidden-plt], AC_HELP_STRING([--disable-hidden-plt],
[do not hide internal function calls to avoid PLT]), [do not hide internal function calls to avoid PLT]),

View File

@@ -1,3 +1,13 @@
2011-09-11 Ulrich Drepper <drepper@gmail.com>
* sysdeps/i386/tls.h: Remove HAVE_TLS_SUPPORT test.
* sysdeps/ia64/tls.h: Likewise.
* sysdeps/powerpc/tls.h: Likewise.
* sysdeps/s390/tls.h: Likewise.
* sysdeps/sh/tls.h: Likewise.
* sysdeps/sparc/tls.h: Likewise.
* sysdeps/x86_64/tls.h: Likewise.
2011-09-10 Ulrich Drepper <drepper@gmail.com> 2011-09-10 Ulrich Drepper <drepper@gmail.com>
* sysdeps/pthread/malloc-machine.h: Define MUTEX_INITIALIZER. * sysdeps/pthread/malloc-machine.h: Define MUTEX_INITIALIZER.

View File

@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. nptl/i386 version. /* Definition for thread-local data handling. nptl/i386 version.
Copyright (C) 2002-2007, 2009 Free Software Foundation, Inc. Copyright (C) 2002-2007, 2009, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@@ -70,11 +70,6 @@ typedef struct
#endif #endif
/* We require TLS support in the tools. */
#ifndef HAVE_TLS_SUPPORT
# error "TLS support is required."
#endif
/* Alignment requirement for the stack. For IA-32 this is governed by /* Alignment requirement for the stack. For IA-32 this is governed by
the SSE memory functions. */ the SSE memory functions. */
#define STACK_ALIGN 16 #define STACK_ALIGN 16

View File

@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. nptl/IA-64 version. /* Definition for thread-local data handling. nptl/IA-64 version.
Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. Copyright (C) 2003-2007, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@@ -56,11 +56,6 @@ register struct pthread *__thread_self __asm__("r13");
#endif #endif
/* We require TLS support in the tools. */
#ifndef HAVE_TLS_SUPPORT
# error "TLS support is required."
#endif
/* Alignment requirement for the stack. */ /* Alignment requirement for the stack. */
#define STACK_ALIGN 16 #define STACK_ALIGN 16

View File

@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. NPTL/PowerPC version. /* Definition for thread-local data handling. NPTL/PowerPC version.
Copyright (C) 2003, 2005, 2006, 2007 Free Software Foundation, Inc. Copyright (C) 2003, 2005, 2006, 2007, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@@ -43,11 +43,6 @@ typedef union dtv
#endif /* __ASSEMBLER__ */ #endif /* __ASSEMBLER__ */
/* We require TLS support in the tools. */
#ifndef HAVE_TLS_SUPPORT
# error "TLS support is required."
#endif
#ifndef __ASSEMBLER__ #ifndef __ASSEMBLER__
/* Get system call information. */ /* Get system call information. */

View File

@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. NPTL/s390 version. /* Definition for thread-local data handling. NPTL/s390 version.
Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. Copyright (C) 2003-2007, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@@ -66,11 +66,6 @@ typedef struct
#endif #endif
/* We require TLS support in the tools. */
#ifndef HAVE_TLS_SUPPORT
# error "TLS support is required."
#endif
/* Alignment requirement for the stack. For IA-32 this is governed by /* Alignment requirement for the stack. For IA-32 this is governed by
the SSE memory functions. */ the SSE memory functions. */
#define STACK_ALIGN 16 #define STACK_ALIGN 16

View File

@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. NPTL/SH version. /* Definition for thread-local data handling. NPTL/SH version.
Copyright (C) 2003, 2005, 2006, 2007 Free Software Foundation, Inc. Copyright (C) 2003, 2005, 2006, 2007, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@@ -55,11 +55,6 @@ typedef struct
#endif /* __ASSEMBLER__ */ #endif /* __ASSEMBLER__ */
/* We require TLS support in the tools. */
#ifndef HAVE_TLS_SUPPORT
# error "TLS support is required."
#endif
#ifndef __ASSEMBLER__ #ifndef __ASSEMBLER__
/* Get system call information. */ /* Get system call information. */

View File

@@ -1,5 +1,5 @@
/* Definitions for thread-local data handling. NPTL/sparc version. /* Definitions for thread-local data handling. NPTL/sparc version.
Copyright (C) 2003, 2005, 2006, 2007 Free Software Foundation, Inc. Copyright (C) 2003, 2005, 2006, 2007, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@@ -65,10 +65,6 @@ typedef struct
# include <tcb-offsets.h> # include <tcb-offsets.h>
#endif /* __ASSEMBLER__ */ #endif /* __ASSEMBLER__ */
/* We require TLS support in the tools. */
#ifndef HAVE_TLS_SUPPORT
# error "TLS support is required."
#endif
#ifndef __ASSEMBLER__ #ifndef __ASSEMBLER__
/* Get system call information. */ /* Get system call information. */

View File

@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. nptl/x86_64 version. /* Definition for thread-local data handling. nptl/x86_64 version.
Copyright (C) 2002-2007, 2008, 2009 Free Software Foundation, Inc. Copyright (C) 2002-2007, 2008, 2009, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@@ -80,11 +80,6 @@ typedef struct
#endif #endif
/* We require TLS support in the tools. */
#ifndef HAVE_TLS_SUPPORT
# error "TLS support is required."
#endif
/* Alignment requirement for the stack. */ /* Alignment requirement for the stack. */
#define STACK_ALIGN 16 #define STACK_ALIGN 16

View File

@@ -83,12 +83,11 @@ $as_echo X/"$0" |
# This file is generated from configure.in by Autoconf. DO NOT EDIT! # This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/i386/elf. # Local configure fragment for sysdeps/i386/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386 TLS support" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386 TLS support" >&5
$as_echo_n "checking for i386 TLS support... " >&6; } $as_echo_n "checking for i386 TLS support... " >&6; }
if test "${libc_cv_386_tls+set}" = set; then : if ${libc_cv_386_tls+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat > conftest.s <<\EOF cat > conftest.s <<\EOF
@@ -121,10 +120,8 @@ rm -f conftest*
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_386_tls" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_386_tls" >&5
$as_echo "$libc_cv_386_tls" >&6; } $as_echo "$libc_cv_386_tls" >&6; }
if test $libc_cv_386_tls = yes; then if test $libc_cv_386_tls = no; then
$as_echo "#define HAVE_TLS_SUPPORT 1" >>confdefs.h as_fn_error $? "the assembler must support TLS" "$LINENO" 5
fi
fi fi
$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h

View File

@@ -1,7 +1,6 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/i386/elf. # Local configure fragment for sysdeps/i386/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
AC_CACHE_CHECK(for i386 TLS support, libc_cv_386_tls, [dnl AC_CACHE_CHECK(for i386 TLS support, libc_cv_386_tls, [dnl
@@ -28,9 +27,8 @@ else
libc_cv_386_tls=no libc_cv_386_tls=no
fi fi
rm -f conftest*]) rm -f conftest*])
if test $libc_cv_386_tls = yes; then if test $libc_cv_386_tls = no; then
AC_DEFINE(HAVE_TLS_SUPPORT) AC_MSG_ERROR([the assembler must support TLS])
fi
fi fi
dnl It is always possible to access static and hidden symbols in an dnl It is always possible to access static and hidden symbols in an

View File

@@ -1,12 +1,93 @@
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
return $1
} # as_fn_set_status
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
set +e
as_fn_set_status $1
exit $1
} # as_fn_exit
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
as_expr=expr
else
as_expr=false
fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
as_lineno_1=$LINENO as_lineno_1a=$LINENO
as_lineno_2=$LINENO as_lineno_2a=$LINENO
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
sed '
s/[$]LINENO.*/&-/
t lineno
b
:lineno
N
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
s/-\n.*//
' >$as_me.lineno &&
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
# Exit status is that of the last command.
exit
}
# This file is generated from configure.in by Autoconf. DO NOT EDIT! # This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/ia64/elf. # Local configure fragment for sysdeps/ia64/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
{ $as_echo "$as_me:$LINENO: checking for ia64 TLS support" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ia64 TLS support" >&5
$as_echo_n "checking for ia64 TLS support... " >&6; } $as_echo_n "checking for ia64 TLS support... " >&6; }
if test "${libc_cv_ia64_tls+set}" = set; then if ${libc_cv_ia64_tls+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat > conftest.s <<\EOF cat > conftest.s <<\EOF
@@ -24,28 +105,22 @@ foo: data8 25
movl r24 = @tprel(foo#) movl r24 = @tprel(foo#)
EOF EOF
if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5' if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
(exit $ac_status); }; }; then test $ac_status = 0; }; }; then
libc_cv_ia64_tls=yes libc_cv_ia64_tls=yes
else else
libc_cv_ia64_tls=no libc_cv_ia64_tls=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
{ $as_echo "$as_me:$LINENO: result: $libc_cv_ia64_tls" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ia64_tls" >&5
$as_echo "$libc_cv_ia64_tls" >&6; } $as_echo "$libc_cv_ia64_tls" >&6; }
if test $libc_cv_ia64_tls = yes; then if test $libc_cv_ia64_tls = no; then
cat >>confdefs.h <<\_ACEOF as_fn_error $? "the assembler must support TLS" "$LINENO" 5
#define HAVE_TLS_SUPPORT 1
_ACEOF
fi
fi fi
cat >>confdefs.h <<\_ACEOF $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
#define PI_STATIC_AND_HIDDEN 1
_ACEOF

View File

@@ -1,7 +1,6 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/ia64/elf. # Local configure fragment for sysdeps/ia64/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
AC_CACHE_CHECK(for ia64 TLS support, libc_cv_ia64_tls, [dnl AC_CACHE_CHECK(for ia64 TLS support, libc_cv_ia64_tls, [dnl
@@ -26,9 +25,8 @@ else
libc_cv_ia64_tls=no libc_cv_ia64_tls=no
fi fi
rm -f conftest*]) rm -f conftest*])
if test $libc_cv_ia64_tls = yes; then if test $libc_cv_ia64_tls = no; then
AC_DEFINE(HAVE_TLS_SUPPORT) AC_MSG_ERROR([the assembler must support TLS])
fi
fi fi
dnl It is always possible to access static and hidden symbols in an dnl It is always possible to access static and hidden symbols in an

View File

@@ -1,5 +1,5 @@
/* Definitions for thread-local data handling. Hurd/i386 version. /* Definitions for thread-local data handling. Hurd/i386 version.
Copyright (C) 2003, 2004, 2006, 2007 Free Software Foundation, Inc. Copyright (C) 2003, 2004, 2006, 2007, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@@ -20,7 +20,6 @@
#ifndef _I386_TLS_H #ifndef _I386_TLS_H
#define _I386_TLS_H #define _I386_TLS_H
#if defined HAVE_TLS_SUPPORT
/* Some things really need not be machine-dependent. */ /* Some things really need not be machine-dependent. */
#include <sysdeps/mach/hurd/tls.h> #include <sysdeps/mach/hurd/tls.h>
@@ -166,6 +165,5 @@ _hurd_tls_fork (thread_t child, struct i386_thread_state *state)
} }
#endif /* !__ASSEMBLER__ */ #endif /* !__ASSEMBLER__ */
#endif /* HAVE_TLS_SUPPORT */
#endif /* i386/tls.h */ #endif /* i386/tls.h */

View File

@@ -1,5 +1,5 @@
/* Definitions for thread-local data handling. Hurd version. /* Definitions for thread-local data handling. Hurd version.
Copyright (C) 2003, 2005, 2007 Free Software Foundation, Inc. Copyright (C) 2003, 2005, 2007, 2011 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@@ -20,7 +20,7 @@
#ifndef _TLS_H #ifndef _TLS_H
#define _TLS_H #define _TLS_H
#if defined HAVE_TLS_SUPPORT && !defined __ASSEMBLER__ #ifndef __ASSEMBLER__
# include <stddef.h> # include <stddef.h>
# include <stdbool.h> # include <stdbool.h>
@@ -71,7 +71,7 @@ typedef struct
# define GET_DTV(descr) \ # define GET_DTV(descr) \
(((tcbhead_t *) (descr))->dtv) (((tcbhead_t *) (descr))->dtv)
#endif /* HAVE_TLS_SUPPORT */ #endif /* !ASSEMBLER */
#endif /* tls.h */ #endif /* tls.h */

View File

@@ -1,12 +1,93 @@
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
return $1
} # as_fn_set_status
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
set +e
as_fn_set_status $1
exit $1
} # as_fn_exit
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
as_expr=expr
else
as_expr=false
fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
as_lineno_1=$LINENO as_lineno_1a=$LINENO
as_lineno_2=$LINENO as_lineno_2a=$LINENO
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
sed '
s/[$]LINENO.*/&-/
t lineno
b
:lineno
N
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
s/-\n.*//
' >$as_me.lineno &&
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
# Exit status is that of the last command.
exit
}
# This file is generated from configure.in by Autoconf. DO NOT EDIT! # This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/powerpc32/elf. # Local configure fragment for sysdeps/powerpc32/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
{ $as_echo "$as_me:$LINENO: checking for powerpc32 TLS support" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powerpc32 TLS support" >&5
$as_echo_n "checking for powerpc32 TLS support... " >&6; } $as_echo_n "checking for powerpc32 TLS support... " >&6; }
if test "${libc_cv_powerpc32_tls+set}" = set; then if ${libc_cv_powerpc32_tls+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat > conftest.s <<\EOF cat > conftest.s <<\EOF
@@ -30,23 +111,19 @@ x2: .long 1
addi 9,9,x2@tprel@l addi 9,9,x2@tprel@l
EOF EOF
if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5' if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
(exit $ac_status); }; }; then test $ac_status = 0; }; }; then
libc_cv_powerpc32_tls=yes libc_cv_powerpc32_tls=yes
else else
libc_cv_powerpc32_tls=no libc_cv_powerpc32_tls=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
{ $as_echo "$as_me:$LINENO: result: $libc_cv_powerpc32_tls" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_powerpc32_tls" >&5
$as_echo "$libc_cv_powerpc32_tls" >&6; } $as_echo "$libc_cv_powerpc32_tls" >&6; }
if test $libc_cv_powerpc32_tls = yes; then if test $libc_cv_powerpc32_tls = no; then
cat >>confdefs.h <<\_ACEOF as_fn_error $? "the assembler must support TLS" "$LINENO" 5
#define HAVE_TLS_SUPPORT 1
_ACEOF
fi
fi fi

View File

@@ -1,7 +1,6 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/powerpc32/elf. # Local configure fragment for sysdeps/powerpc32/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
AC_CACHE_CHECK(for powerpc32 TLS support, libc_cv_powerpc32_tls, [dnl AC_CACHE_CHECK(for powerpc32 TLS support, libc_cv_powerpc32_tls, [dnl
@@ -32,7 +31,6 @@ else
libc_cv_powerpc32_tls=no libc_cv_powerpc32_tls=no
fi fi
rm -f conftest*]) rm -f conftest*])
if test $libc_cv_powerpc32_tls = yes; then if test $libc_cv_powerpc32_tls = no; then
AC_DEFINE(HAVE_TLS_SUPPORT) AC_MSG_ERROR([the assembler must support TLS])
fi
fi fi

View File

@@ -1,12 +1,93 @@
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
return $1
} # as_fn_set_status
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
set +e
as_fn_set_status $1
exit $1
} # as_fn_exit
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
as_expr=expr
else
as_expr=false
fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
as_lineno_1=$LINENO as_lineno_1a=$LINENO
as_lineno_2=$LINENO as_lineno_2a=$LINENO
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
sed '
s/[$]LINENO.*/&-/
t lineno
b
:lineno
N
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
s/-\n.*//
' >$as_me.lineno &&
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
# Exit status is that of the last command.
exit
}
# This file is generated from configure.in by Autoconf. DO NOT EDIT! # This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/powerpc64/elf. # Local configure fragment for sysdeps/powerpc64/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
{ $as_echo "$as_me:$LINENO: checking for powerpc64 TLS support" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powerpc64 TLS support" >&5
$as_echo_n "checking for powerpc64 TLS support... " >&6; } $as_echo_n "checking for powerpc64 TLS support... " >&6; }
if test "${libc_cv_powerpc64_tls+set}" = set; then if ${libc_cv_powerpc64_tls+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat > conftest.s <<\EOF cat > conftest.s <<\EOF
@@ -49,24 +130,19 @@ x4: .long 1
addi 9,9,x2@tprel@l addi 9,9,x2@tprel@l
EOF EOF
if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5' if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
(exit $ac_status); }; }; then test $ac_status = 0; }; }; then
libc_cv_powerpc64_tls=yes libc_cv_powerpc64_tls=yes
else else
libc_cv_powerpc64_tls=no libc_cv_powerpc64_tls=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
{ $as_echo "$as_me:$LINENO: result: $libc_cv_powerpc64_tls" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_powerpc64_tls" >&5
$as_echo "$libc_cv_powerpc64_tls" >&6; } $as_echo "$libc_cv_powerpc64_tls" >&6; }
if test $libc_cv_powerpc64_tls = yes; then if test $libc_cv_powerpc64_tls = no; then
cat >>confdefs.h <<\_ACEOF as_fn_error $? "the assembler must support TLS" "$LINENO" 5
#define HAVE_TLS_SUPPORT 1
_ACEOF
fi fi
fi

View File

@@ -1,7 +1,6 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/powerpc64/elf. # Local configure fragment for sysdeps/powerpc64/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
AC_CACHE_CHECK(for powerpc64 TLS support, libc_cv_powerpc64_tls, [dnl AC_CACHE_CHECK(for powerpc64 TLS support, libc_cv_powerpc64_tls, [dnl
@@ -51,8 +50,6 @@ else
libc_cv_powerpc64_tls=no libc_cv_powerpc64_tls=no
fi fi
rm -f conftest*]) rm -f conftest*])
if test $libc_cv_powerpc64_tls = yes; then if test $libc_cv_powerpc64_tls = no; then
AC_DEFINE(HAVE_TLS_SUPPORT) AC_MSG_ERROR([the assembler must support TLS])
fi fi
fi

View File

@@ -1,12 +1,93 @@
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
return $1
} # as_fn_set_status
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
set +e
as_fn_set_status $1
exit $1
} # as_fn_exit
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
as_expr=expr
else
as_expr=false
fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
as_lineno_1=$LINENO as_lineno_1a=$LINENO
as_lineno_2=$LINENO as_lineno_2a=$LINENO
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
sed '
s/[$]LINENO.*/&-/
t lineno
b
:lineno
N
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
s/-\n.*//
' >$as_me.lineno &&
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
# Exit status is that of the last command.
exit
}
# This file is generated from configure.in by Autoconf. DO NOT EDIT! # This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/s390/elf. # Local configure fragment for sysdeps/s390/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
{ $as_echo "$as_me:$LINENO: checking for s390 TLS support" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s390 TLS support" >&5
$as_echo_n "checking for s390 TLS support... " >&6; } $as_echo_n "checking for s390 TLS support... " >&6; }
if test "${libc_cv_390_tls+set}" = set; then if ${libc_cv_390_tls+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat > conftest.S <<\EOF cat > conftest.S <<\EOF
@@ -25,28 +106,22 @@ foo: .long 25
bas %r14,0(%r1,%r13):tls_ldcall:foo bas %r14,0(%r1,%r13):tls_ldcall:foo
EOF EOF
if { ac_try='${CC-cc} -S $CFLAGS conftest.S 1>&5' if { ac_try='${CC-cc} -S $CFLAGS conftest.S 1>&5'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
(exit $ac_status); }; }; then test $ac_status = 0; }; }; then
libc_cv_390_tls=yes libc_cv_390_tls=yes
else else
libc_cv_390_tls=no libc_cv_390_tls=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
{ $as_echo "$as_me:$LINENO: result: $libc_cv_390_tls" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_390_tls" >&5
$as_echo "$libc_cv_390_tls" >&6; } $as_echo "$libc_cv_390_tls" >&6; }
if test $libc_cv_390_tls = yes; then if test $libc_cv_390_tls = no; then
cat >>confdefs.h <<\_ACEOF as_fn_error $? "the assembler must support TLS" "$LINENO" 5
#define HAVE_TLS_SUPPORT 1
_ACEOF
fi
fi fi
cat >>confdefs.h <<\_ACEOF $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
#define PI_STATIC_AND_HIDDEN 1
_ACEOF

View File

@@ -1,7 +1,6 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/s390/elf. # Local configure fragment for sysdeps/s390/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
AC_CACHE_CHECK(for s390 TLS support, libc_cv_390_tls, [dnl AC_CACHE_CHECK(for s390 TLS support, libc_cv_390_tls, [dnl
@@ -27,9 +26,8 @@ else
libc_cv_390_tls=no libc_cv_390_tls=no
fi fi
rm -f conftest*]) rm -f conftest*])
if test $libc_cv_390_tls = yes; then if test $libc_cv_390_tls = no; then
AC_DEFINE(HAVE_TLS_SUPPORT) AC_MSG_ERROR([the assembler must support TLS])
fi
fi fi
dnl It is always possible to access static and hidden symbols in an dnl It is always possible to access static and hidden symbols in an

View File

@@ -1,12 +1,93 @@
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
return $1
} # as_fn_set_status
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
set +e
as_fn_set_status $1
exit $1
} # as_fn_exit
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
as_expr=expr
else
as_expr=false
fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
as_lineno_1=$LINENO as_lineno_1a=$LINENO
as_lineno_2=$LINENO as_lineno_2a=$LINENO
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
sed '
s/[$]LINENO.*/&-/
t lineno
b
:lineno
N
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
s/-\n.*//
' >$as_me.lineno &&
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
# Exit status is that of the last command.
exit
}
# This file is generated from configure.in by Autoconf. DO NOT EDIT! # This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/s390/elf. # Local configure fragment for sysdeps/s390/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
{ $as_echo "$as_me:$LINENO: checking for s390 TLS support" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for s390 TLS support" >&5
$as_echo_n "checking for s390 TLS support... " >&6; } $as_echo_n "checking for s390 TLS support... " >&6; }
if test "${libc_cv_390_tls+set}" = set; then if ${libc_cv_390_tls+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat > conftest.S <<\EOF cat > conftest.S <<\EOF
@@ -25,28 +106,22 @@ foo: .long 25
brasl %r14,__tls_get_offset@plt:tls_ldcall:foo brasl %r14,__tls_get_offset@plt:tls_ldcall:foo
EOF EOF
if { ac_try='${CC-cc} -S $CFLAGS conftest.S 1>&5' if { ac_try='${CC-cc} -S $CFLAGS conftest.S 1>&5'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
(exit $ac_status); }; }; then test $ac_status = 0; }; }; then
libc_cv_390_tls=yes libc_cv_390_tls=yes
else else
libc_cv_390_tls=no libc_cv_390_tls=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
{ $as_echo "$as_me:$LINENO: result: $libc_cv_390_tls" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_390_tls" >&5
$as_echo "$libc_cv_390_tls" >&6; } $as_echo "$libc_cv_390_tls" >&6; }
if test $libc_cv_390_tls = yes; then if test $libc_cv_390_tls = no; then
cat >>confdefs.h <<\_ACEOF as_fn_error $? "the assembler must support TLS" "$LINENO" 5
#define HAVE_TLS_SUPPORT 1
_ACEOF
fi
fi fi
cat >>confdefs.h <<\_ACEOF $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
#define PI_STATIC_AND_HIDDEN 1
_ACEOF

View File

@@ -1,7 +1,6 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/s390/elf. # Local configure fragment for sysdeps/s390/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
AC_CACHE_CHECK(for s390 TLS support, libc_cv_390_tls, [dnl AC_CACHE_CHECK(for s390 TLS support, libc_cv_390_tls, [dnl
@@ -27,9 +26,8 @@ else
libc_cv_390_tls=no libc_cv_390_tls=no
fi fi
rm -f conftest*]) rm -f conftest*])
if test $libc_cv_390_tls = yes; then if test $libc_cv_390_tls = no; then
AC_DEFINE(HAVE_TLS_SUPPORT) AC_MSG_ERROR([the assembler must support TLS])
fi
fi fi
dnl It is always possible to access static and hidden symbols in an dnl It is always possible to access static and hidden symbols in an

View File

@@ -1,12 +1,93 @@
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
return $1
} # as_fn_set_status
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
set +e
as_fn_set_status $1
exit $1
} # as_fn_exit
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
as_expr=expr
else
as_expr=false
fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
as_lineno_1=$LINENO as_lineno_1a=$LINENO
as_lineno_2=$LINENO as_lineno_2a=$LINENO
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
sed '
s/[$]LINENO.*/&-/
t lineno
b
:lineno
N
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
s/-\n.*//
' >$as_me.lineno &&
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
# Exit status is that of the last command.
exit
}
# This file is generated from configure.in by Autoconf. DO NOT EDIT! # This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/sh/elf. # Local configure fragment for sysdeps/sh/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
{ $as_echo "$as_me:$LINENO: checking for SH TLS support" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH TLS support" >&5
$as_echo_n "checking for SH TLS support... " >&6; } $as_echo_n "checking for SH TLS support... " >&6; }
if test "${libc_cv_sh_tls+set}" = set; then if ${libc_cv_sh_tls+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat > conftest.S <<\EOF cat > conftest.S <<\EOF
@@ -20,28 +101,22 @@ foo: .long 25
.long foo@TPOFF .long foo@TPOFF
EOF EOF
if { ac_try='${CC-cc} -S $CFLAGS conftest.S 1>&5' if { ac_try='${CC-cc} -S $CFLAGS conftest.S 1>&5'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
(exit $ac_status); }; }; then test $ac_status = 0; }; }; then
libc_cv_sh_tls=yes libc_cv_sh_tls=yes
else else
libc_cv_sh_tls=no libc_cv_sh_tls=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
{ $as_echo "$as_me:$LINENO: result: $libc_cv_sh_tls" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sh_tls" >&5
$as_echo "$libc_cv_sh_tls" >&6; } $as_echo "$libc_cv_sh_tls" >&6; }
if test $libc_cv_sh_tls = yes; then if test $libc_cv_sh_tls = no; then
cat >>confdefs.h <<\_ACEOF as_fn_error $? "the assembler must support TLS" "$LINENO" 5
#define HAVE_TLS_SUPPORT 1
_ACEOF
fi
fi fi
cat >>confdefs.h <<\_ACEOF $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h
#define PI_STATIC_AND_HIDDEN 1
_ACEOF

View File

@@ -1,7 +1,6 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/sh/elf. # Local configure fragment for sysdeps/sh/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and # Check for support of thread-local storage handling in assembler and
# linker. # linker.
AC_CACHE_CHECK(for SH TLS support, libc_cv_sh_tls, [dnl AC_CACHE_CHECK(for SH TLS support, libc_cv_sh_tls, [dnl
@@ -22,9 +21,8 @@ else
libc_cv_sh_tls=no libc_cv_sh_tls=no
fi fi
rm -f conftest*]) rm -f conftest*])
if test $libc_cv_sh_tls = yes; then if test $libc_cv_sh_tls = no; then
AC_DEFINE(HAVE_TLS_SUPPORT) AC_MSG_ERROR([the assembler must support TLS])
fi
fi fi
dnl It is always possible to access static and hidden symbols in an dnl It is always possible to access static and hidden symbols in an

View File

@@ -1,11 +1,92 @@
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
return $1
} # as_fn_set_status
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
set +e
as_fn_set_status $1
exit $1
} # as_fn_exit
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
as_expr=expr
else
as_expr=false
fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
as_lineno_1=$LINENO as_lineno_1a=$LINENO
as_lineno_2=$LINENO as_lineno_2a=$LINENO
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
sed '
s/[$]LINENO.*/&-/
t lineno
b
:lineno
N
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
s/-\n.*//
' >$as_me.lineno &&
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
# Exit status is that of the last command.
exit
}
# This file is generated from configure.in by Autoconf. DO NOT EDIT! # This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/sparc/sparc32/elf. # Local configure fragment for sysdeps/sparc/sparc32/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and linker. # Check for support of thread-local storage handling in assembler and linker.
{ $as_echo "$as_me:$LINENO: checking for sparc32 TLS support" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparc32 TLS support" >&5
$as_echo_n "checking for sparc32 TLS support... " >&6; } $as_echo_n "checking for sparc32 TLS support... " >&6; }
if test "${libc_cv_sparc32_tls+set}" = set; then if ${libc_cv_sparc32_tls+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat > conftest.s <<\EOF cat > conftest.s <<\EOF
@@ -35,42 +116,38 @@ baz: sethi %tgd_hi22(foo), %l1
xor %l1, %tle_lox10(foo), %l1 xor %l1, %tle_lox10(foo), %l1
EOF EOF
if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5' if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
(exit $ac_status); }; }; then test $ac_status = 0; }; }; then
libc_cv_sparc32_tls=yes libc_cv_sparc32_tls=yes
else else
libc_cv_sparc32_tls=no libc_cv_sparc32_tls=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
{ $as_echo "$as_me:$LINENO: result: $libc_cv_sparc32_tls" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparc32_tls" >&5
$as_echo "$libc_cv_sparc32_tls" >&6; } $as_echo "$libc_cv_sparc32_tls" >&6; }
if test $libc_cv_sparc32_tls = yes; then if test $libc_cv_sparc32_tls = no; then
cat >>confdefs.h <<\_ACEOF as_fn_error $? "the assembler must support TLS" "$LINENO" 5
#define HAVE_TLS_SUPPORT 1
_ACEOF
fi
fi fi
# Check for broken WDISP22 in the linker. # Check for broken WDISP22 in the linker.
{ $as_echo "$as_me:$LINENO: checking for sparc32 ld WDISP22 handling" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparc32 ld WDISP22 handling" >&5
$as_echo_n "checking for sparc32 ld WDISP22 handling... " >&6; } $as_echo_n "checking for sparc32 ld WDISP22 handling... " >&6; }
if test "${libc_cv_sparc32_wdisp22+set}" = set; then if ${libc_cv_sparc32_wdisp22+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
echo 'bne foo; nop' > conftest1.s echo 'bne foo; nop' > conftest1.s
echo '.globl foo; .hidden foo; foo: nop' > conftest2.s echo '.globl foo; .hidden foo; foo: nop' > conftest2.s
libc_cv_sparc32_wdisp22=unknown libc_cv_sparc32_wdisp22=unknown
if { ac_try='${CC-cc} -nostdlib -shared $CFLAGS conftest1.s conftest2.s -o conftest.so 1>&5' if { ac_try='${CC-cc} -nostdlib -shared $CFLAGS conftest1.s conftest2.s -o conftest.so 1>&5'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
(exit $ac_status); }; }; then test $ac_status = 0; }; }; then
if readelf -r conftest.so | grep -q R_SPARC_WDISP22; then if readelf -r conftest.so | grep -q R_SPARC_WDISP22; then
libc_cv_sparc32_wdisp22=broken libc_cv_sparc32_wdisp22=broken
else else
@@ -79,11 +156,9 @@ if { ac_try='${CC-cc} -nostdlib -shared $CFLAGS conftest1.s conftest2.s -o conft
fi fi
rm -f conftest* rm -f conftest*
fi fi
{ $as_echo "$as_me:$LINENO: result: $libc_cv_sparc32_wdisp22" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparc32_wdisp22" >&5
$as_echo "$libc_cv_sparc32_wdisp22" >&6; } $as_echo "$libc_cv_sparc32_wdisp22" >&6; }
if test $libc_cv_sparc32_wdisp22 != ok; then if test $libc_cv_sparc32_wdisp22 != ok; then
cat >>confdefs.h <<\_ACEOF $as_echo "#define BROKEN_SPARC_WDISP22 1" >>confdefs.h
#define BROKEN_SPARC_WDISP22 1
_ACEOF
fi fi

View File

@@ -1,7 +1,6 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/sparc/sparc32/elf. # Local configure fragment for sysdeps/sparc/sparc32/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and linker. # Check for support of thread-local storage handling in assembler and linker.
AC_CACHE_CHECK(for sparc32 TLS support, libc_cv_sparc32_tls, [dnl AC_CACHE_CHECK(for sparc32 TLS support, libc_cv_sparc32_tls, [dnl
changequote(,)dnl changequote(,)dnl
@@ -39,9 +38,8 @@ else
libc_cv_sparc32_tls=no libc_cv_sparc32_tls=no
fi fi
rm -f conftest*]) rm -f conftest*])
if test $libc_cv_sparc32_tls = yes; then if test $libc_cv_sparc32_tls = no; then
AC_DEFINE(HAVE_TLS_SUPPORT) AC_MSG_ERROR([the assembler must support TLS])
fi
fi fi
# Check for broken WDISP22 in the linker. # Check for broken WDISP22 in the linker.

View File

@@ -1,11 +1,92 @@
# as_fn_set_status STATUS
# -----------------------
# Set $? to STATUS, without forking.
as_fn_set_status ()
{
return $1
} # as_fn_set_status
# as_fn_exit STATUS
# -----------------
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
as_fn_exit ()
{
set +e
as_fn_set_status $1
exit $1
} # as_fn_exit
if expr a : '\(a\)' >/dev/null 2>&1 &&
test "X`expr 00001 : '.*\(...\)'`" = X001; then
as_expr=expr
else
as_expr=false
fi
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
as_me=`$as_basename -- "$0" ||
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
X"$0" : 'X\(//\)$' \| \
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
$as_echo X/"$0" |
sed '/^.*\/\([^/][^/]*\)\/*$/{
s//\1/
q
}
/^X\/\(\/\/\)$/{
s//\1/
q
}
/^X\/\(\/\).*/{
s//\1/
q
}
s/.*/./; q'`
as_lineno_1=$LINENO as_lineno_1a=$LINENO
as_lineno_2=$LINENO as_lineno_2a=$LINENO
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
sed -n '
p
/[$]LINENO/=
' <$as_myself |
sed '
s/[$]LINENO.*/&-/
t lineno
b
:lineno
N
:loop
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
s/-\n.*//
' >$as_me.lineno &&
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensitive to this).
. "./$as_me.lineno"
# Exit status is that of the last command.
exit
}
# This file is generated from configure.in by Autoconf. DO NOT EDIT! # This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/sparc/sparc64/elf. # Local configure fragment for sysdeps/sparc/sparc64/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and linker. # Check for support of thread-local storage handling in assembler and linker.
{ $as_echo "$as_me:$LINENO: checking for sparc64 TLS support" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparc64 TLS support" >&5
$as_echo_n "checking for sparc64 TLS support... " >&6; } $as_echo_n "checking for sparc64 TLS support... " >&6; }
if test "${libc_cv_sparc64_tls+set}" = set; then if ${libc_cv_sparc64_tls+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
cat > conftest.s <<\EOF cat > conftest.s <<\EOF
@@ -36,42 +117,38 @@ _start: sethi %tgd_hi22(foo), %l1
xor %l1, %tle_lox10(foo), %l1 xor %l1, %tle_lox10(foo), %l1
EOF EOF
if { ac_try='${CC-cc} -o conftest.bin $CFLAGS $LDFLAGS conftest.s -nostdlib -nostartfiles 1>&5' if { ac_try='${CC-cc} -o conftest.bin $CFLAGS $LDFLAGS conftest.s -nostdlib -nostartfiles 1>&5'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
(exit $ac_status); }; }; then test $ac_status = 0; }; }; then
libc_cv_sparc64_tls=yes libc_cv_sparc64_tls=yes
else else
libc_cv_sparc64_tls=no libc_cv_sparc64_tls=no
fi fi
rm -f conftest* rm -f conftest*
fi fi
{ $as_echo "$as_me:$LINENO: result: $libc_cv_sparc64_tls" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparc64_tls" >&5
$as_echo "$libc_cv_sparc64_tls" >&6; } $as_echo "$libc_cv_sparc64_tls" >&6; }
if test $libc_cv_sparc64_tls = yes; then if test $libc_cv_sparc64_tls = no; then
cat >>confdefs.h <<\_ACEOF as_fn_error $? "the assembler must support TLS" "$LINENO" 5
#define HAVE_TLS_SUPPORT 1
_ACEOF
fi
fi fi
# Check for broken WDISP22 in the linker. # Check for broken WDISP22 in the linker.
{ $as_echo "$as_me:$LINENO: checking for sparc64 ld WDISP22 handling" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sparc64 ld WDISP22 handling" >&5
$as_echo_n "checking for sparc64 ld WDISP22 handling... " >&6; } $as_echo_n "checking for sparc64 ld WDISP22 handling... " >&6; }
if test "${libc_cv_sparc64_wdisp22+set}" = set; then if ${libc_cv_sparc64_wdisp22+:} false; then :
$as_echo_n "(cached) " >&6 $as_echo_n "(cached) " >&6
else else
echo 'bne foo; nop' > conftest1.s echo 'bne foo; nop' > conftest1.s
echo '.globl foo; .hidden foo; foo: nop' > conftest2.s echo '.globl foo; .hidden foo; foo: nop' > conftest2.s
libc_cv_sparc64_wdisp22=unknown libc_cv_sparc64_wdisp22=unknown
if { ac_try='${CC-cc} -nostdlib -shared $CFLAGS conftest1.s conftest2.s -o conftest.so 1>&5' if { ac_try='${CC-cc} -nostdlib -shared $CFLAGS conftest1.s conftest2.s -o conftest.so 1>&5'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
(eval $ac_try) 2>&5 (eval $ac_try) 2>&5
ac_status=$? ac_status=$?
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
(exit $ac_status); }; }; then test $ac_status = 0; }; }; then
if readelf -r conftest.so | grep -q R_SPARC_WDISP22; then if readelf -r conftest.so | grep -q R_SPARC_WDISP22; then
libc_cv_sparc64_wdisp22=broken libc_cv_sparc64_wdisp22=broken
else else
@@ -80,11 +157,9 @@ if { ac_try='${CC-cc} -nostdlib -shared $CFLAGS conftest1.s conftest2.s -o conft
fi fi
rm -f conftest* rm -f conftest*
fi fi
{ $as_echo "$as_me:$LINENO: result: $libc_cv_sparc64_wdisp22" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sparc64_wdisp22" >&5
$as_echo "$libc_cv_sparc64_wdisp22" >&6; } $as_echo "$libc_cv_sparc64_wdisp22" >&6; }
if test $libc_cv_sparc64_wdisp22 != ok; then if test $libc_cv_sparc64_wdisp22 != ok; then
cat >>confdefs.h <<\_ACEOF $as_echo "#define BROKEN_SPARC_WDISP22 1" >>confdefs.h
#define BROKEN_SPARC_WDISP22 1
_ACEOF
fi fi

View File

@@ -1,7 +1,6 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/sparc/sparc64/elf. # Local configure fragment for sysdeps/sparc/sparc64/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and linker. # Check for support of thread-local storage handling in assembler and linker.
AC_CACHE_CHECK(for sparc64 TLS support, libc_cv_sparc64_tls, [dnl AC_CACHE_CHECK(for sparc64 TLS support, libc_cv_sparc64_tls, [dnl
changequote(,)dnl changequote(,)dnl
@@ -40,9 +39,8 @@ else
libc_cv_sparc64_tls=no libc_cv_sparc64_tls=no
fi fi
rm -f conftest*]) rm -f conftest*])
if test $libc_cv_sparc64_tls = yes; then if test $libc_cv_sparc64_tls = no; then
AC_DEFINE(HAVE_TLS_SUPPORT) AC_MSG_ERROR([the assembler must support TLS])
fi
fi fi
# Check for broken WDISP22 in the linker. # Check for broken WDISP22 in the linker.

View File

@@ -83,7 +83,6 @@ $as_echo X/"$0" |
# This file is generated from configure.in by Autoconf. DO NOT EDIT! # This file is generated from configure.in by Autoconf. DO NOT EDIT!
# Local configure fragment for sysdeps/x86_64/elf. # Local configure fragment for sysdeps/x86_64/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and linker. # Check for support of thread-local storage handling in assembler and linker.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86-64 TLS support" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86-64 TLS support" >&5
$as_echo_n "checking for x86-64 TLS support... " >&6; } $as_echo_n "checking for x86-64 TLS support... " >&6; }
@@ -117,10 +116,8 @@ rm -f conftest*
fi fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_64_tls" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x86_64_tls" >&5
$as_echo "$libc_cv_x86_64_tls" >&6; } $as_echo "$libc_cv_x86_64_tls" >&6; }
if test $libc_cv_x86_64_tls = yes; then if test $libc_cv_x86_64_tls = no; then
$as_echo "#define HAVE_TLS_SUPPORT 1" >>confdefs.h as_fn_error $? "the assembler must support TLS" "$LINENO" 5
fi
fi fi
$as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h

View File

@@ -1,7 +1,6 @@
GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
# Local configure fragment for sysdeps/x86_64/elf. # Local configure fragment for sysdeps/x86_64/elf.
if test "$usetls" != no; then
# Check for support of thread-local storage handling in assembler and linker. # Check for support of thread-local storage handling in assembler and linker.
AC_CACHE_CHECK(for x86-64 TLS support, libc_cv_x86_64_tls, [dnl AC_CACHE_CHECK(for x86-64 TLS support, libc_cv_x86_64_tls, [dnl
cat > conftest.s <<\EOF cat > conftest.s <<\EOF
@@ -24,9 +23,8 @@ else
libc_cv_x86_64_tls=no libc_cv_x86_64_tls=no
fi fi
rm -f conftest*]) rm -f conftest*])
if test $libc_cv_x86_64_tls = yes; then if test $libc_cv_x86_64_tls = no; then
AC_DEFINE(HAVE_TLS_SUPPORT) AC_MSG_ERROR([the assembler must support TLS])
fi
fi fi
dnl It is always possible to access static and hidden symbols in an dnl It is always possible to access static and hidden symbols in an