View | Details | Raw Unified | Return to issue 127137
Collapse All | Expand All

(-)branches/AOO413/main/configure.in (-24 / +20 lines)
Lines 3937-3970 Link Here
3937
dnl Checks for a MacOS platform SDK compatible with an OSX 10.7 deployment target
3937
dnl Checks for a MacOS platform SDK compatible with an OSX 10.7 deployment target
3938
dnl ===================================================================
3938
dnl ===================================================================
3939
if test  "$_os" = "Darwin"; then
3939
if test  "$_os" = "Darwin"; then
3940
   sdk_target=10.7
3940
   sdk_major=10
3941
   sdk_minor=7
3942
   sdk_target="${sdk_major}.${sdk_minor}"
3941
   AC_MSG_CHECKING([checking SDK compatiblity with OSX $sdk_target])
3943
   AC_MSG_CHECKING([checking SDK compatiblity with OSX $sdk_target])
3942
3944
   sdk_found=`xcodebuild -showsdks | egrep "sdk macosx10.[[0-9]]+$" | sed -e "s/.*sdk macosx//" | tail -n1`
3943
   sdk_minor=`echo $sdk_target | cut -d"." -f2`
3945
   if test -z "$sdk_found"; then
3944
3946
      AC_MSG_ERROR([No macOS SDK with macosx${sdk_target} compatibility found])
3945
   if test "$sdk_minor" -lt "7"; then
3946
      AC_MSG_ERROR([SDK version < 10.7 is not longer supported])
3947
   else
3947
   else
3948
      MACOSX_DEPLOYMENT_TARGET=$sdk_target
3948
      sdk_found_minor=`echo $sdk_found | cut -d"." -f2`
3949
3949
      if test "$sdk_found_minor" -lt "$sdk_minor"; then
3950
      sdk_found=`xcodebuild -showsdks | egrep "sdk macosx10.(7|8|9|10|11)" | sed -e "s/.*sdk //" | tail -n1`
3950
          AC_MSG_ERROR([SDK version < $sdk_target is not longer supported])
3951
      if test -z "$sdk_found"; then
3952
         AC_MSG_ERROR([No SDK with OSX $sdk_target compatibility found])
3953
      else
3951
      else
3954
         AC_MSG_RESULT([yes, by using SDK $sdk_found])
3952
          MACOSX_DEPLOYMENT_TARGET=$sdk_target
3955
      fi
3953
          AC_MSG_RESULT([yes, by using SDK $sdk_found])
3956
3954
          sdk_path=`xcodebuild -version -sdk macosx${sdk_found} Path`
3957
      sdk_path=`xcodebuild -version -sdk ${sdk_found} Path`
3955
          AC_MSG_CHECKING([for $sdk_path])
3958
      AC_MSG_CHECKING([for $sdk_path])
3956
          if test -d "$sdk_path"; then
3959
      if test -d "$sdk_path"; then
3957
            AC_MSG_RESULT([yes])
3960
         AC_MSG_RESULT([yes])
3958
          else
3961
      else
3959
            AC_MSG_ERROR([not found!])
3962
         AC_MSG_ERROR([not found!])
3960
         fi
3963
      fi
3961
         MACOSX_SDK_PATH=$sdk_path
3964
3962
     fi
3965
      MACOSX_SDK_PATH=$sdk_path
3966
   fi
3963
   fi
3967
3968
fi
3964
fi
3969
AC_SUBST(MACOSX_DEPLOYMENT_TARGET)
3965
AC_SUBST(MACOSX_DEPLOYMENT_TARGET)
3970
AC_SUBST(MACOSX_SDK_PATH)
3966
AC_SUBST(MACOSX_SDK_PATH)

Return to issue 127137