summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/pthread/configure
blob: 50293a4f1c2792b8c763f04cf2c428ca4843efc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# This file is generated from configure.in by Autoconf.  DO NOT EDIT!

if test "x$libc_cv_gcc___thread" != xyes; then
  { { echo "$as_me:$LINENO: error: compiler support for __thread is required" >&5
echo "$as_me: error: compiler support for __thread is required" >&2;}
   { (exit 1); exit 1; }; }
fi


echo "$as_me:$LINENO: checking for forced unwind support" >&5
echo $ECHO_N "checking for forced unwind support... $ECHO_C" >&6
if test "${libc_cv_forced_unwind+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
else
  cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */
#include <unwind.h>
int
main ()
{

struct _Unwind_Exception exc;
struct _Unwind_Context *context;
_Unwind_GetCFA (context)
  ;
  return 0;
}
_ACEOF
rm -f conftest.$ac_objext conftest$ac_exeext
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  (eval $ac_link) 2>&5
  ac_status=$?
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
  (exit $ac_status); } &&
         { ac_try='test -s conftest$ac_exeext'
  { (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
  libc_cv_forced_unwind=yes
else
  echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5

libc_cv_forced_unwind=no
fi
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
echo "$as_me:$LINENO: result: $libc_cv_forced_unwind" >&5
echo "${ECHO_T}$libc_cv_forced_unwind" >&6
if test $libc_cv_forced_unwind = yes; then
  cat >>confdefs.h <<\_ACEOF
#define HAVE_FORCED_UNWIND 1
_ACEOF

fi