| configure.ac (7805e674) | configure.ac (5fa6f516) |
|---|---|
| 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 --- 917 unchanged lines hidden (view full) --- 926 arm-target = 6 : exact armv6 compatibility 927 arm-target > 6 : armv7-a compatibility 928 929 Usage: --with-arm-target=7 930],with_arm_target=$withval,with_arm_target=4) 931AC_ARG_WITH(macosx-target, 932[ --macosx-target The minimal macOS/OSX deployment and build target 933 | 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 --- 917 unchanged lines hidden (view full) --- 926 arm-target = 6 : exact armv6 compatibility 927 arm-target > 6 : armv7-a compatibility 928 929 Usage: --with-arm-target=7 930],with_arm_target=$withval,with_arm_target=4) 931AC_ARG_WITH(macosx-target, 932[ --macosx-target The minimal macOS/OSX deployment and build target 933 |
| 934 Usage: --with-macosx-target=10.7 935],with_macosx_target=$withval,with_macosx_target=10.7) | 934 Usage: --with-macosx-target=10.9 935],with_macosx_target=$withval,with_macosx_target=10.9) |
| 936AC_ARG_WITH(macosx-sdk, 937[ --macosx-sdk The macOS SDK to build against 938 939 Usage: --with-macosx-sdk=10.11 940 (or full path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk) 941],with_macosx_sdk=$withval,) 942AC_ARG_WITH(rat-scan, 943[ --with-rat-scan Scan source code for license headers. --- 2940 unchanged lines hidden (view full) --- 3884dnl Checks for a MacOS platform SDK compatible with deployment target 3885dnl =================================================================== 3886if test "$_os" = "Darwin"; then 3887 sdk_target=$with_macosx_target 3888 AC_MSG_CHECKING([checking SDK compatibility with OSX $sdk_target]) 3889 3890 sdk_minor=`echo $sdk_target | cut -d"." -f2` 3891 | 936AC_ARG_WITH(macosx-sdk, 937[ --macosx-sdk The macOS SDK to build against 938 939 Usage: --with-macosx-sdk=10.11 940 (or full path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk) 941],with_macosx_sdk=$withval,) 942AC_ARG_WITH(rat-scan, 943[ --with-rat-scan Scan source code for license headers. --- 2940 unchanged lines hidden (view full) --- 3884dnl Checks for a MacOS platform SDK compatible with deployment target 3885dnl =================================================================== 3886if test "$_os" = "Darwin"; then 3887 sdk_target=$with_macosx_target 3888 AC_MSG_CHECKING([checking SDK compatibility with OSX $sdk_target]) 3889 3890 sdk_minor=`echo $sdk_target | cut -d"." -f2` 3891 |
| 3892 if test "$sdk_minor" -lt "7"; then 3893 AC_MSG_ERROR([SDK version < 10.7 is not longer supported]) | 3892 if test "$sdk_minor" -lt "9"; then 3893 AC_MSG_ERROR([SDK version < 10.9 is not longer supported]) |
| 3894 else 3895 MACOSX_DEPLOYMENT_TARGET=$sdk_target 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) | 3894 else 3895 MACOSX_DEPLOYMENT_TARGET=$sdk_target 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.(7|8|10|11|12|13|14|15)" | sed -e "s/.*sdk //" | tail -n1` | 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` 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]) --- 3578 unchanged lines hidden --- | 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` 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]) --- 3578 unchanged lines hidden --- |