diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | configure.ac | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md index 39fe759836c6..9192f828be10 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ run and compile LibreOffice, also used by the TDF builds: * Build: Cygwin + Visual Studio 2017 * macOS: * Runtime: 10.9 - * Build: 10.12 + Xcode 8 + * Build: 10.12 + Xcode 9.3 * Linux: * Runtime: RHEL 6 or CentOS 6 * Build: GCC 4.8.1 or Clang diff --git a/configure.ac b/configure.ac index 827b5f6c995e..cddfd825e4a3 100644 --- a/configure.ac +++ b/configure.ac @@ -2773,6 +2773,16 @@ if test $_os = Darwin -o $_os = iOS; then FRAMEWORKSHOME="$MACOSX_SDK_PATH/System/Library/Frameworks" MACOSX_DEPLOYMENT_TARGET="$with_macosx_version_min_required" + AC_MSG_CHECKING([whether Xcode is new enough]) + my_xcode_ver1=$(xcrun xcodebuild -version | head -n 1) + my_xcode_ver2=${my_xcode_ver1#Xcode } + my_xcode_ver3=$(printf %s "$my_xcode_ver2" | $AWK -F. '{ print $1*100+($2<100?$2:99) }') + if test "$my_xcode_ver3" -ge 903; then + AC_MSG_RESULT([yes ($my_xcode_ver2)]) + else + AC_MSG_ERROR(["$my_xcode_ver1" is too old or unrecognized, must be at least Xcode 9.3]) + fi + case "$with_macosx_version_min_required" in 10.9) MAC_OS_X_VERSION_MIN_REQUIRED="1090" |