mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
2002-10-17 Roland McGrath <roland@redhat.com>
* configure.in: Grok --without-__thread and disable HAVE___THREAD. * configure: Regenerated.
This commit is contained in:
28
configure.in
28
configure.in
@ -145,6 +145,10 @@ AC_ARG_WITH(tls, dnl
|
|||||||
[ --with-tls enable support for TLS],
|
[ --with-tls enable support for TLS],
|
||||||
usetls=$withval, usetls=no)
|
usetls=$withval, usetls=no)
|
||||||
|
|
||||||
|
AC_ARG_WITH(__thread, dnl
|
||||||
|
[ --without-__thread do not use TLS features even when supporting them],
|
||||||
|
use__thread=$withval, use__thread=yes)
|
||||||
|
|
||||||
AC_ARG_ENABLE(hidden-plt, dnl
|
AC_ARG_ENABLE(hidden-plt, dnl
|
||||||
[ --disable-hidden-plt do not hide internal function calls to avoid PLT],
|
[ --disable-hidden-plt do not hide internal function calls to avoid PLT],
|
||||||
hidden=$enableval, hidden=yes)
|
hidden=$enableval, hidden=yes)
|
||||||
@ -1610,19 +1614,23 @@ if test "$libc_cv_gcc_subtract_local_labels" = yes; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Check whether the compiler supports the __thread keyword.
|
dnl Check whether the compiler supports the __thread keyword.
|
||||||
AC_CACHE_CHECK([for __thread], libc_cv_gcc___thread,
|
if test "x$use__thread" != xno; then
|
||||||
[cat > conftest.c <<\EOF
|
AC_CACHE_CHECK([for __thread], libc_cv_gcc___thread,
|
||||||
__thread int a = 42;
|
[cat > conftest.c <<\EOF
|
||||||
EOF
|
__thread int a = 42;
|
||||||
if AC_TRY_COMMAND([${CC-cc} $CFLAGS -c conftest.c >&AC_FD_CC]); then
|
EOF
|
||||||
libc_cv_gcc___thread=yes
|
if AC_TRY_COMMAND([${CC-cc} $CFLAGS -c conftest.c >&AC_FD_CC]); then
|
||||||
|
libc_cv_gcc___thread=yes
|
||||||
|
else
|
||||||
|
libc_cv_gcc___thread=no
|
||||||
|
fi
|
||||||
|
rm -f conftest*])
|
||||||
|
if test "$libc_cv_gcc___thread" = yes; then
|
||||||
|
AC_DEFINE(HAVE___THREAD)
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
libc_cv_gcc___thread=no
|
libc_cv_gcc___thread=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest*])
|
|
||||||
if test "$libc_cv_gcc___thread" = yes; then
|
|
||||||
AC_DEFINE(HAVE___THREAD)
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test "$libc_cv_gcc___thread" = yes; then
|
if test "$libc_cv_gcc___thread" = yes; then
|
||||||
dnl Check whether the compiler supports the tls_model attribute.
|
dnl Check whether the compiler supports the tls_model attribute.
|
||||||
|
Reference in New Issue
Block a user