1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
4 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forced unwind support" >&5
5 $as_echo_n "checking for forced unwind support... " >&6; }
6 if ${libc_cv_forced_unwind+:} false; then :
7 $as_echo_n "(cached) " >&6
9 old_CPPFLAGS="$CPPFLAGS"
10 # Without inhibit_libc #define'd, GCC's unwind.h (at least for ia64)
11 # will try to include <stdlib.h>, which doesn't exist yet if we're
12 # building libc in a bare environment.
13 CPPFLAGS="$CPPFLAGS -Dinhibit_libc=1"
14 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21 struct _Unwind_Exception exc;
22 struct _Unwind_Context *context;
23 _Unwind_GetCFA (context)
28 if ac_fn_c_try_compile "$LINENO"; then :
29 libc_cv_forced_unwind=yes
31 libc_cv_forced_unwind=no
33 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34 CPPFLAGS="$old_CPPFLAGS"
36 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_forced_unwind" >&5
37 $as_echo "$libc_cv_forced_unwind" >&6; }
38 if test $libc_cv_forced_unwind = yes; then
39 $as_echo "#define HAVE_FORCED_UNWIND 1" >>confdefs.h
42 CFLAGS="$CFLAGS -Werror -fexceptions"
43 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C cleanup handling" >&5
44 $as_echo_n "checking for C cleanup handling... " >&6; }
45 if ${libc_cv_c_cleanup+:} false; then :
46 $as_echo_n "(cached) " >&6
48 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51 extern void some_function (void);
57 int a __attribute__ ((cleanup (cl)));
63 if ac_fn_c_try_compile "$LINENO"; then :
68 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
70 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_cleanup" >&5
71 $as_echo "$libc_cv_c_cleanup" >&6; }
73 if test $libc_cv_c_cleanup = no; then
74 as_fn_error $? "the compiler must support C cleanup handling" "$LINENO" 5
77 as_fn_error $? "forced unwind support is required" "$LINENO" 5