From 6620112a64745e31df1ec93a6a971f0cd37f101f Mon Sep 17 00:00:00 2001 From: Ben Wiley Sittler Date: Thu, 30 Oct 2008 18:00:57 +0000 Subject: [PATCH] add support for Mac OS X 10.4 (i386) and Mac OS X 10.5 (x86_64) --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5b4ac6c..5994a19 100644 --- a/configure.ac +++ b/configure.ac @@ -247,13 +247,20 @@ if test "${enable_cocoa}" != "no"; then MACOSX_SDK_CXXFLAGS="${MACOSX_SDK_CXXFLAGS:--nostdinc++ -I${MACOSX_SDK}/usr/include/gcc/darwin/${GCC_VERSION}/c++ -I${MACOSX_SDK}/usr/include/gcc/darwin/${GCC_VERSION}/c++/ppc-darwin -I${MACOSX_SDK}/usr/include/gcc/darwin/${GCC_VERSION}/c++/backward}" MACOSX_SDK_LDFLAGS="${MACOSX_SDK_LDFLAGS:--L${MACOSX_SDK}/usr/lib/gcc/darwin -L${MACOSX_SDK}/usr/lib/gcc/darwin/${GCC_VERSION} -L${MACOSX_SDK}/usr/lib}" ;; - x*86*darwin*) + x*86_64*darwin*) MACOSX_SDK="${MACOSX_SDK:-/Developer/SDKs/MacOSX10.5.sdk}" GCC_VERSION="${GCC_VERSION:-4.0}" ARCH="${ARCH:--arch i386}" MACOSX_SDK_CFLAGS="${MACOSX_SDK_CFLAGS:--isysroot ${MACOSX_SDK}}" MACOSX_SDK_CXXFLAGS="${MACOSX_SDK_CXXFLAGS:-${MACOSX_SDK_CFLAGS}}" ;; + x*86*darwin*) + MACOSX_SDK="${MACOSX_SDK:-/Developer/SDKs/MacOSX10.4u.sdk}" + GCC_VERSION="${GCC_VERSION:-4.0}" + ARCH="${ARCH:--arch i386}" + MACOSX_SDK_CFLAGS="${MACOSX_SDK_CFLAGS:--isysroot ${MACOSX_SDK}}" + MACOSX_SDK_CXXFLAGS="${MACOSX_SDK_CXXFLAGS:-${MACOSX_SDK_CFLAGS}}" + ;; esac CC=gcc-${GCC_VERSION} CXX=g++-${GCC_VERSION}