Look for the Mac OS X SDKs also where current Xcode has them

This commit is contained in:
Tor Lillqvist
2012-04-15 14:08:10 +02:00
parent f649237f0a
commit 336b27890b

View File

@@ -2338,12 +2338,18 @@ if test "$_os" = "Darwin"; then
;;
10.6)
MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.6.sdk"
if test ! -d "$MACOSX_SDK_PATH"; then
MACOSX_SDK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
fi
macosx_sdk_value="1060"
AC_MSG_WARN([Building with a SDK > 10.4 is experimental])
echo "Building with a SDK > 10.4 is experimental" >> warn
;;
10.7)
MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.7.sdk"
if test ! -d "$MACOSX_SDK_PATH"; then
MACOSX_SDK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk
fi
macosx_sdk_value="1070"
AC_MSG_WARN([Building with SDK 10.7 is known to fail in vcl])
echo "Building with SDK 10.7 is known to fail in vcl" >> warn