| configure.ac (4691efef) | configure.ac (a835cb2e) |
|---|---|
| 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 --- 919 unchanged lines hidden (view full) --- 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) | 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 --- 919 unchanged lines hidden (view full) --- 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) |
| 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,) |
|
| 936AC_ARG_WITH(rat-scan, 937[ --with-rat-scan Scan source code for license headers. 938 Use as --with-rat-scan to automatically download pre-built Rat binaries. 939 Alternatively use as --with-rat-scan=<path-to-rat-direcetory> to use 940 a separately installed library. 941],with_rat_scan=$withval,) 942 943BUILD_TYPE="OOo" --- 203 unchanged lines hidden (view full) --- 1147 AC_MSG_WARN([Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray]) 1148 echo "Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >>warn 1149 enable_systray=no 1150 fi 1151 if test ! -n "$CC"; then 1152 CC="`xcrun -f clang` -arch x86_64" 1153 fi 1154 if test ! -n "$CXX"; then | 942AC_ARG_WITH(rat-scan, 943[ --with-rat-scan Scan source code for license headers. 944 Use as --with-rat-scan to automatically download pre-built Rat binaries. 945 Alternatively use as --with-rat-scan=<path-to-rat-direcetory> to use 946 a separately installed library. 947],with_rat_scan=$withval,) 948 949BUILD_TYPE="OOo" --- 203 unchanged lines hidden (view full) --- 1153 AC_MSG_WARN([Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray]) 1154 echo "Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >>warn 1155 enable_systray=no 1156 fi 1157 if test ! -n "$CC"; then 1158 CC="`xcrun -f clang` -arch x86_64" 1159 fi 1160 if test ! -n "$CXX"; then |
| 1155 CXX="`xcrun -f clang++` -stdlib=libc++ -arch x86_64" | 1161 CXX="`xcrun -f clang++` -arch x86_64" |
| 1156 fi 1157 # Don't use OSVERSION until we know no conflicts result from it 1158 _darwin_version="`uname -r | $AWK -F . '{ print $1 }'`" 1159 _osx_version="10.`expr $_darwin_version - 4`" 1160 AC_MSG_NOTICE([Detected Darwin version: $_darwin_version ($_osx_version)]) 1161 ;; 1162 os2*) 1163 test_x=no --- 2706 unchanged lines hidden (view full) --- 3870 BUILD_TYPE="$BUILD_TYPE LIBXML2 LIBXMLSEC" 3871fi 3872AC_SUBST(SYSTEM_LIBXML) 3873AC_SUBST(LIBXML_CFLAGS) 3874AC_SUBST(LIBXML_LIBS) 3875 3876 3877dnl =================================================================== | 1162 fi 1163 # Don't use OSVERSION until we know no conflicts result from it 1164 _darwin_version="`uname -r | $AWK -F . '{ print $1 }'`" 1165 _osx_version="10.`expr $_darwin_version - 4`" 1166 AC_MSG_NOTICE([Detected Darwin version: $_darwin_version ($_osx_version)]) 1167 ;; 1168 os2*) 1169 test_x=no --- 2706 unchanged lines hidden (view full) --- 3876 BUILD_TYPE="$BUILD_TYPE LIBXML2 LIBXMLSEC" 3877fi 3878AC_SUBST(SYSTEM_LIBXML) 3879AC_SUBST(LIBXML_CFLAGS) 3880AC_SUBST(LIBXML_LIBS) 3881 3882 3883dnl =================================================================== |
| 3878dnl Checks for a MacOS platform SDK compatible with an OSX 10.7 deployment target | 3884dnl Checks for a MacOS platform SDK compatible with deployment target |
| 3879dnl =================================================================== 3880if test "$_os" = "Darwin"; then 3881 sdk_target=$with_macosx_target 3882 AC_MSG_CHECKING([checking SDK compatibility with OSX $sdk_target]) 3883 3884 sdk_minor=`echo $sdk_target | cut -d"." -f2` 3885 3886 if test "$sdk_minor" -lt "7"; then 3887 AC_MSG_ERROR([SDK version < 10.7 is not longer supported]) 3888 else 3889 MACOSX_DEPLOYMENT_TARGET=$sdk_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]) 3894 else 3895 MACOSX_DEPLOYMENT_TARGET=$sdk_target |
| 3890 3891 dnl Why not MacOSX10.9.sdk? It lacks Python.h (!?) 3892 dnl First look for macOS10.x SDKs (Up thru Xcode 12.1) 3893 sdk_found=`xcodebuild -showsdks | $EGREP "sdk macosx10.(7|8|10|11|12|13|14|15)" | sed -e "s/.*sdk //" | tail -n1` 3894 dnl If not found, look for macOS11.x SDKs (Xcode 12.2 and later) 3895 if test -z "$sdk_found"; then 3896 sdk_found=`xcodebuild -showsdks | $EGREP "sdk macosx11.(0)" | sed -e "s/.*sdk //" | tail -n1` | 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` 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]) 3910 fi 3911 sdk_path=`xcodebuild -version -sdk ${sdk_found} Path` 3912 elif test ! -d "$sdk_path"; then 3913 sdk_found=`xcodebuild -showsdks | $EGREP "sdk macosx${sdk_path}" | sed -e "s/.*sdk //" | tail -n1` 3914 if test -z "$sdk_found"; then 3915 AC_MSG_ERROR([SDK macosx${sdk_path} not found by xcodebuild]) 3916 else 3917 AC_MSG_RESULT([SDK $sdk_found]) 3918 fi 3919 sdk_path=`xcodebuild -version -sdk ${sdk_found} Path` |
| 3897 fi | 3920 fi |
| 3898 if test -z "$sdk_found"; then 3899 AC_MSG_ERROR([No SDK with OSX $sdk_target compatibility found]) 3900 else 3901 AC_MSG_RESULT([yes, by using SDK $sdk_found]) 3902 fi 3903 3904 sdk_path=`xcodebuild -version -sdk ${sdk_found} Path` | |
| 3905 AC_MSG_CHECKING([for $sdk_path]) 3906 if test -d "$sdk_path"; then 3907 AC_MSG_RESULT([yes]) 3908 else 3909 AC_MSG_ERROR([not found!]) 3910 fi 3911 3912 MACOSX_SDK_PATH=$sdk_path --- 3559 unchanged lines hidden --- | 3921 AC_MSG_CHECKING([for $sdk_path]) 3922 if test -d "$sdk_path"; then 3923 AC_MSG_RESULT([yes]) 3924 else 3925 AC_MSG_ERROR([not found!]) 3926 fi 3927 3928 MACOSX_SDK_PATH=$sdk_path --- 3559 unchanged lines hidden --- |