build: add new Mac SDKs to configure
Add SDK 10.14 and 10.15 to configure.in
Removed i386 and PPC architectures on Mac because they are
deprecated and make fails if they are used.
The configure file was generated from the configure.in
file by entering this on Linux:
aclocal
autoconf
Fixes 308
This commit is contained in:
parent
8c6cc73265
commit
2a7f8fcd7a
2 changed files with 14 additions and 8 deletions
BIN
configure
vendored
BIN
configure
vendored
Binary file not shown.
10
configure.in
10
configure.in
|
|
@ -210,7 +210,7 @@ case "${host_os}" in
|
|||
if test "x$enable_mac_universal" = "xyes" ; then
|
||||
case `xcodebuild -version | sed -n 's/Xcode \(.*\)/\1/p'` in
|
||||
|
||||
[12]*|3.0|3.1)
|
||||
3.0|3.1)
|
||||
dnl In pre-3.2 versions of Xcode, xcodebuild doesn't
|
||||
dnl support -sdk, so we can't use that to look for
|
||||
dnl SDKs. However, in those versions of Xcode, the
|
||||
|
|
@ -261,6 +261,12 @@ case "${host_os}" in
|
|||
elif xcodebuild -version -sdk macosx10.13 Path >/dev/null 2>&1 ; then
|
||||
mac_version_min="-mmacosx-version-min=10.4"
|
||||
mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.13 Path`"
|
||||
elif xcodebuild -version -sdk macosx10.14 Path >/dev/null 2>&1 ; then
|
||||
mac_version_min="-mmacosx-version-min=10.4"
|
||||
mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.14 Path`"
|
||||
elif xcodebuild -version -sdk macosx10.15 Path >/dev/null 2>&1 ; then
|
||||
mac_version_min="-mmacosx-version-min=10.4"
|
||||
mac_sysroot="-isysroot `xcodebuild -version -sdk macosx10.15 Path`"
|
||||
else
|
||||
AC_MSG_ERROR([Could not find 10.5 to 10.13 SDK.])
|
||||
fi
|
||||
|
|
@ -269,7 +275,7 @@ case "${host_os}" in
|
|||
dnl Pick which architectures to build for based on what
|
||||
dnl the compiler supports.
|
||||
mac_arches=""
|
||||
for arch in i386 x86_64 ppc ppc64
|
||||
for arch in x86_64
|
||||
do
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -arch $arch"
|
||||
|
|
|
|||
Loading…
Reference in a new issue