configure.ac (5fa6f516) configure.ac (f90c0f88)
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

--- 3887 unchanged lines hidden (view full) ---

3896 sdk_path=$with_macosx_sdk
3897 if test -z "$sdk_path"; then
3898 dnl --macosx-sdk not used (or blank): We look for the SDK
3899 dnl Why not MacOSX10.9.sdk? It lacks Python.h (!?)
3900 dnl First look for macOS10.x SDKs (Up thru Xcode 12.1)
3901 sdk_found=`xcodebuild -showsdks | $EGREP "sdk macosx10.(10|11|12|13|14|15)" | sed -e "s/.*sdk //" | tail -n1`
3902 dnl If not found, look for macOS11.x SDKs (Xcode 12.2 and later)
3903 if test -z "$sdk_found"; then
1dnl * *************************************************************
2dnl *
3dnl * Licensed to the Apache Software Foundation (ASF) under one
4dnl * or more contributor license agreements. See the NOTICE file
5dnl * distributed with this work for additional information
6dnl * regarding copyright ownership. The ASF licenses this file
7dnl * to you under the Apache License, Version 2.0 (the
8dnl * "License"); you may not use this file except in compliance

--- 3887 unchanged lines hidden (view full) ---

3896 sdk_path=$with_macosx_sdk
3897 if test -z "$sdk_path"; then
3898 dnl --macosx-sdk not used (or blank): We look for the SDK
3899 dnl Why not MacOSX10.9.sdk? It lacks Python.h (!?)
3900 dnl First look for macOS10.x SDKs (Up thru Xcode 12.1)
3901 sdk_found=`xcodebuild -showsdks | $EGREP "sdk macosx10.(10|11|12|13|14|15)" | sed -e "s/.*sdk //" | tail -n1`
3902 dnl If not found, look for macOS11.x SDKs (Xcode 12.2 and later)
3903 if test -z "$sdk_found"; then
3904 sdk_found=`xcodebuild -showsdks | $EGREP "sdk macosx11.(0)" | sed -e "s/.*sdk //" | tail -n1`
3904 sdk_found=`xcodebuild -showsdks | $EGREP "sdk macosx11.(0|1)" | sed -e "s/.*sdk //" | tail -n1`
3905 fi
3906 if test -z "$sdk_found"; then
3907 AC_MSG_ERROR([No SDK with OSX $sdk_target compatibility found])
3908 else
3909 AC_MSG_RESULT([yes, by using SDK $sdk_found])
3910 fi
3911 sdk_path=`xcodebuild -version -sdk ${sdk_found} Path`
3912 elif test ! -d "$sdk_path"; then

--- 3575 unchanged lines hidden ---
3905 fi
3906 if test -z "$sdk_found"; then
3907 AC_MSG_ERROR([No SDK with OSX $sdk_target compatibility found])
3908 else
3909 AC_MSG_RESULT([yes, by using SDK $sdk_found])
3910 fi
3911 sdk_path=`xcodebuild -version -sdk ${sdk_found} Path`
3912 elif test ! -d "$sdk_path"; then

--- 3575 unchanged lines hidden ---