2003-03-16 04:22:41 +01:00
|
|
|
# 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
|
2003-04-12 02:58:26 +02:00
|
|
|
|
2003-07-03 23:08:05 +02:00
|
|
|
if test "x$libc_cv_asm_cfi_directives" != xyes; then
|
|
|
|
{ { echo "$as_me:$LINENO: error: CFI directive support in assembler is required" >&5
|
|
|
|
echo "$as_me: error: CFI directive support in assembler is required" >&2;}
|
|
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
fi
|
|
|
|
|
2003-04-12 02:58:26 +02:00
|
|
|
|
|
|
|
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"
|
2003-07-03 23:08:05 +02:00
|
|
|
#include "confdefs.h"
|
2003-04-12 02:58:26 +02:00
|
|
|
#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
|
2003-07-03 23:08:05 +02:00
|
|
|
cat conftest.$ac_ext >&5
|
2003-04-12 02:58:26 +02:00
|
|
|
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
|
|
|
|
|
2003-06-30 01:01:49 +02:00
|
|
|
old_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -Werror -fexceptions"
|
|
|
|
echo "$as_me:$LINENO: checking for C cleanup handling" >&5
|
|
|
|
echo $ECHO_N "checking for C cleanup handling... $ECHO_C" >&6
|
|
|
|
if test "${libc_cv_c_cleanup+set}" = set; then
|
|
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
|
|
|
else
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
#line $LINENO "configure"
|
2003-07-03 23:08:05 +02:00
|
|
|
#include "confdefs.h"
|
2003-06-30 01:01:49 +02:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
void cl (void *a) { }
|
|
|
|
extern c (void);
|
|
|
|
int
|
|
|
|
main ()
|
|
|
|
{
|
|
|
|
|
|
|
|
int a __attribute__ ((cleanup (cl)));
|
|
|
|
puts ("test")
|
|
|
|
;
|
|
|
|
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_c_cleanup=yes
|
|
|
|
else
|
|
|
|
echo "$as_me: failed program was:" >&5
|
2003-07-03 23:08:05 +02:00
|
|
|
cat conftest.$ac_ext >&5
|
2003-06-30 01:01:49 +02:00
|
|
|
libc_cv_c_cleanup=no
|
|
|
|
fi
|
|
|
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
|
|
|
fi
|
|
|
|
echo "$as_me:$LINENO: result: $libc_cv_c_cleanup" >&5
|
|
|
|
echo "${ECHO_T}$libc_cv_c_cleanup" >&6
|
|
|
|
CFLAGS="$old_CFLAGS"
|
|
|
|
if test $libc_cv_c_cleanup = no; then
|
|
|
|
{ { echo "$as_me:$LINENO: error: the compiler must support C cleanup handling" >&5
|
|
|
|
echo "$as_me: error: the compiler must support C cleanup handling" >&2;}
|
|
|
|
{ (exit 1); exit 1; }; }
|
|
|
|
fi
|
2003-04-12 02:58:26 +02:00
|
|
|
fi
|