Add missing magic to GLIBC_PROVIDES.
[glibc.git] / nptl / sysdeps / pthread / configure
blob7962ed6fcfd04113be7a526004cf46b18f0645ff
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
3 if test "x$libc_cv_gcc___thread" != xyes; then
4   as_fn_error $? "compiler support for __thread is required" "$LINENO" 5
5 fi
7 if test "x${libc_cv_visibility_attribute}" != xyes ||
8    test "x${libc_cv_broken_visibility_attribute}" != xno; then
9   as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
12 if test "x$libc_cv_asm_cfi_directives" != xyes; then
13     case "$base_machine" in
14     i386 | x86_64 | powerpc | s390)
15       as_fn_error $? "CFI directive support in assembler is required" "$LINENO" 5 ;;
16     *) ;;
17   esac
21 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forced unwind support" >&5
22 $as_echo_n "checking for forced unwind support... " >&6; }
23 if ${libc_cv_forced_unwind+:} false; then :
24   $as_echo_n "(cached) " >&6
25 else
26   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27 /* end confdefs.h.  */
28 #include <unwind.h>
29 int
30 main ()
33 struct _Unwind_Exception exc;
34 struct _Unwind_Context *context;
35 _Unwind_GetCFA (context)
36   ;
37   return 0;
39 _ACEOF
40 if ac_fn_c_try_compile "$LINENO"; then :
41   libc_cv_forced_unwind=yes
42 else
43   libc_cv_forced_unwind=no
45 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_forced_unwind" >&5
48 $as_echo "$libc_cv_forced_unwind" >&6; }
49 if test $libc_cv_forced_unwind = yes; then
50   $as_echo "#define HAVE_FORCED_UNWIND 1" >>confdefs.h
52   old_CFLAGS="$CFLAGS"
53   CFLAGS="$CFLAGS -Werror -fexceptions"
54   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C cleanup handling" >&5
55 $as_echo_n "checking for C cleanup handling... " >&6; }
56 if ${libc_cv_c_cleanup+:} false; then :
57   $as_echo_n "(cached) " >&6
58 else
59     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60 /* end confdefs.h.  */
62 extern void some_function (void);
63 void cl (void *a) { }
64 int
65 main ()
68   int a __attribute__ ((cleanup (cl)));
69   some_function ()
70   ;
71   return 0;
73 _ACEOF
74 if ac_fn_c_try_compile "$LINENO"; then :
75   libc_cv_c_cleanup=yes
76 else
77   libc_cv_c_cleanup=no
79 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
81 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_cleanup" >&5
82 $as_echo "$libc_cv_c_cleanup" >&6; }
83   CFLAGS="$old_CFLAGS"
84   if test $libc_cv_c_cleanup = no; then
85     as_fn_error $? "the compiler must support C cleanup handling" "$LINENO" 5
86   fi
87 else
88   as_fn_error $? "forced unwind support is required" "$LINENO" 5