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

(-)trunk/main/configure.ac (-23 / +19 lines)
Lines 3807-3840 Link Here
3807
dnl Checks for a MacOS platform SDK compatible with an OSX 10.7 deployment target
3807
dnl Checks for a MacOS platform SDK compatible with an OSX 10.7 deployment target
3808
dnl ===================================================================
3808
dnl ===================================================================
3809
if test  "$_os" = "Darwin"; then
3809
if test  "$_os" = "Darwin"; then
3810
   sdk_target=10.7
3810
   sdk_major=10
3811
   sdk_minor=7
3812
   sdk_target="${sdk_major}.${sdk_minor}"
3811
   AC_MSG_CHECKING([checking SDK compatibility with OSX $sdk_target])
3813
   AC_MSG_CHECKING([checking SDK compatibility with OSX $sdk_target])
3812
3814
   sdk_found=`xcodebuild -showsdks | egrep "sdk macosx10.[[0-9]]+$" | sed -e "s/.*sdk macosx//" | tail -n1`
3813
   sdk_minor=`echo $sdk_target | cut -d"." -f2`
3815
   if test -z "$sdk_found"; then
3814
3816
      AC_MSG_ERROR([No macOS SDK with macosx${sdk_target} compatibility found])
3815
   if test "$sdk_minor" -lt "7"; then
3816
      AC_MSG_ERROR([SDK version < 10.7 is not longer supported])
3817
   else
3817
   else
3818
      MACOSX_DEPLOYMENT_TARGET=$sdk_target
3818
      sdk_found_minor=`echo $sdk_found | cut -d"." -f2`
3819
3819
      if test "$sdk_found_minor" -lt "$sdk_minor"; then
3820
      sdk_found=`xcodebuild -showsdks | $EGREP "sdk macosx10.(7|8|9|10|11)" | sed -e "s/.*sdk //" | tail -n1`
3820
          AC_MSG_ERROR([SDK version < $sdk_target is not longer supported])
3821
      if test -z "$sdk_found"; then
3822
         AC_MSG_ERROR([No SDK with OSX $sdk_target compatibility found])
3823
      else
3821
      else
3824
         AC_MSG_RESULT([yes, by using SDK $sdk_found])
3822
          MACOSX_DEPLOYMENT_TARGET=$sdk_target
3823
          AC_MSG_RESULT([yes, by using SDK $sdk_found])
3824
          sdk_path=`xcodebuild -version -sdk macosx${sdk_found} Path`
3825
          AC_MSG_CHECKING([for $sdk_path])
3826
          if test -d "$sdk_path"; then
3827
            AC_MSG_RESULT([yes])
3828
          else
3829
            AC_MSG_ERROR([not found!])
3830
          fi
3831
          MACOSX_SDK_PATH=$sdk_path
3825
      fi
3832
      fi
3826
3827
      sdk_path=`xcodebuild -version -sdk ${sdk_found} Path`
3828
      AC_MSG_CHECKING([for $sdk_path])
3829
      if test -d "$sdk_path"; then
3830
         AC_MSG_RESULT([yes])
3831
      else
3832
         AC_MSG_ERROR([not found!])
3833
      fi
3834
3835
      MACOSX_SDK_PATH=$sdk_path
3836
   fi
3833
   fi
3837
3838
fi
3834
fi
3839
AC_SUBST(MACOSX_DEPLOYMENT_TARGET)
3835
AC_SUBST(MACOSX_DEPLOYMENT_TARGET)
3840
AC_SUBST(MACOSX_SDK_PATH)
3836
AC_SUBST(MACOSX_SDK_PATH)

Return to issue 127137