From 481d402ab03e163e180d2650fae13704858f8d81 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 3 Dec 2010 07:45:22 +0000 Subject: Apparently OS X 10.4 doesn't have __crashreporter_info__. Try to fix building on the wayback machine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120801 91177308-0d34-0410-b5e6-96231b3b80d8 --- autoconf/configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'autoconf/configure.ac') diff --git a/autoconf/configure.ac b/autoconf/configure.ac index ee58d8e9e8..b8d4a30715 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -1321,9 +1321,17 @@ if test "$llvm_cv_enable_libffi" = "yes" ; then AC_CHECK_HEADERS([ffi.h ffi/ffi.h]) fi -dnl Try to find Darwin specific crash reporting library. +dnl Try to find Darwin specific crash reporting libraries. AC_CHECK_HEADERS([CrashReporterClient.h]) +dnl Try to find Darwin specific crash reporting global. +AC_LINK_IFELSE([AC_LANG_PROGRAM([[const char *__crashreporter_info__;]], [[]])],[darwin_crashreport = yes],[darwin_crashreport = no]) +AC_MSG_RESULT($darwin_crashreport) +if test "x$darwin_crashreport = xyes" +then + AC_DEFINE([HAVE_CRASHREPORTER_INFO],[1], + [Define if __crashreporter_info__ exists.]) +fi dnl===-----------------------------------------------------------------------=== dnl=== dnl=== SECTION 7: Check for types and structures -- cgit v1.2.3