Fix error checking for objc_set_unexpected

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27403 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-12-22 15:18:22 +00:00
parent d22dc74b23
commit 10f5aab56a
3 changed files with 7288 additions and 7468 deletions

View file

@ -4,6 +4,8 @@
* Documentation/news.texi:
* Documentation/ReleaseNotes.gsdoc:
Update for new release.
* configure.ac: Fix error checking for objc_set_unexpected
* configure: regenerate
2008-12-22 Richard Frith-Macdonald <rfm@gnu.org>

14725
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -1391,6 +1391,22 @@ AC_EGREP_HEADER(objc_get_uninstalled_dtable, objc/objc-api.h,
AC_DEFINE(HAVE_OBJC_GET_UNINSTALLED_DTABLE,1,
[ Define if objc-api.h defines this function]),)
# Don't revert any Objective-C flags as they are used in the next test
#--------------------------------------------------------------------
# This function needed by for handling uncaught exceptions
#--------------------------------------------------------------------
AC_MSG_CHECKING(for objc_set_unexpected() in runtime)
AC_LINK_IFELSE([#include "$srcdir/config/config.unexpected.m"],
have_unexpected=yes, have_unexpected=no)
if test $have_unexpected = yes; then
AC_DEFINE(HAVE_UNEXPECTED,1,
[Define if libobjc has the objc_set_unexpected() function])
fi
AC_MSG_RESULT($have_unexpected)
# Don't revert any Objective-C flags as they are used in the next test
#--------------------------------------------------------------------
# Function needed by @synchronize directive
#--------------------------------------------------------------------
@ -2003,19 +2019,6 @@ case "$target_cpu" in
*) ;;
esac
have_unexpected=yes
saved_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $OBJCFLAGS -x objective-c"
AC_MSG_CHECKING(for objc_set_unexpected() in runtime)
AC_COMPILE_IFELSE([#include "$srcdir/config/config.unexpected.m"],
have_unexpected=yes, have_unexpected=no)
if test $have_unexpected = yes; then
AC_DEFINE(HAVE_UNEXPECTED,1,
[Define if libobjc has the objc_set_unexpected() function])
fi
AC_MSG_RESULT($have_unexpected)
CPPFLAGS="$saved_CPPFLAGS"
if test "$exceptions" = "yes"; then
# ffcall will mess up native exceptions, so we must disable it.
do_broken_libffcall=yes