Kaydet (Commit) d82fd745 authored tarafından Herbert Dürr's avatar Herbert Dürr

#i114728# improve configure diagnostics for the OSX SDK check

üst 3fd8702f
...@@ -3907,7 +3907,7 @@ AC_SUBST(LIBXML_LIBS) ...@@ -3907,7 +3907,7 @@ AC_SUBST(LIBXML_LIBS)
dnl =================================================================== dnl ===================================================================
dnl Checks for a MacOS platform SDK which supports a OSX 10.7 deployment target dnl Checks for a MacOS platform SDK compatible with an OSX 10.7 deployment target
dnl =================================================================== dnl ===================================================================
if test "$_os" = "Darwin"; then if test "$_os" = "Darwin"; then
sdk_target=10.7 sdk_target=10.7
...@@ -3918,13 +3918,13 @@ if test "$_os" = "Darwin"; then ...@@ -3918,13 +3918,13 @@ if test "$_os" = "Darwin"; then
if test "$sdk_minor" -lt "7"; then if test "$sdk_minor" -lt "7"; then
AC_MSG_ERROR([SDK version < 10.7 is not longer supported]) AC_MSG_ERROR([SDK version < 10.7 is not longer supported])
else else
AC_MSG_RESULT([yes])
MACOSX_DEPLOYMENT_TARGET=$sdk_target MACOSX_DEPLOYMENT_TARGET=$sdk_target
AC_MSG_CHECKING([for SDKs compatible with $MACOSX_DEPLOYMENT_TARGET])
sdk_found=`xcodebuild -showsdks | grep "sdk macosx10.[[789]]" | sed -e "s/.*sdk //" | head -n1` sdk_found=`xcodebuild -showsdks | grep "sdk macosx10.[[789]]" | sed -e "s/.*sdk //" | head -n1`
if test -z "$sdk_found"; then if test -z "$sdk_found"; then
AC_MSG_ERROR([No SDK with OSX $sdk_target compatibility found]) AC_MSG_ERROR([No SDK with OSX $sdk_target compatibility found])
else
AC_MSG_RESULT([yes, by using SDK $sdk_found])
fi fi
sdk_path=`xcodebuild -version -sdk ${sdk_found} Path` sdk_path=`xcodebuild -version -sdk ${sdk_found} Path`
...@@ -3932,7 +3932,7 @@ if test "$_os" = "Darwin"; then ...@@ -3932,7 +3932,7 @@ if test "$_os" = "Darwin"; then
if test -d "$sdk_path"; then if test -d "$sdk_path"; then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
else else
AC_MSG_ERROR([MacOS SDK $sdk_found is not available at $sdk_path]) AC_MSG_ERROR([not found!])
fi fi
MACOSX_SDK_PATH=$sdk_path MACOSX_SDK_PATH=$sdk_path
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment