Fix configure bug that was misreporting availability of MacOS X 10.5 SDK as available on Linux but not on OS X.

This commit is contained in:
Mark Dickinson 2010-05-08 19:13:21 +00:00
parent 534b8de63b
commit 0712b5651a
2 changed files with 8 additions and 4 deletions

10
configure vendored
View File

@ -1,5 +1,5 @@
#! /bin/sh
# From configure.in Revision: 80969 .
# From configure.in Revision: 80970 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.65 for python 2.7.
#
@ -9281,10 +9281,9 @@ FSIORefNum fRef = 0
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
]
else
$as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
@ -9292,6 +9291,11 @@ $as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

View File

@ -2569,7 +2569,7 @@ fi
AC_MSG_CHECKING(for OSX 10.5 SDK or later)
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[#include <Carbon/Carbon.h>]], [[FSIORefNum fRef = 0]])],
AC_LANG_PROGRAM([[#include <Carbon/Carbon.h>]], [[FSIORefNum fRef = 0]])
],[
AC_DEFINE(HAVE_OSX105_SDK, 1, [Define if compiling using MacOS X 10.5 SDK or later.])
AC_MSG_RESULT(yes)