Changeset 3152 for libcaca


Ignore:
Timestamp:
Oct 30, 2008, 6:22:43 PM (11 years ago)
Author:
bsittler
Message:

allow SDK to be overridden by environment variables (Mac OS X)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/configure.ac

    r3139 r3152  
    241241    xpowerpc*darwin*)
    242242      # 10.3 needed to link with X11
    243       MACOSX_SDK=/Developer/SDKs/MacOSX10.3.9.sdk
    244       GCC_VERSION=3.3
    245       ARCH="-arch ppc"
    246       MACOSX_SDK_CFLAGS="-nostdinc -isystem ${MACOSX_SDK}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOSX_SDK}/usr/include"
    247       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"
    248       MACOSX_SDK_LDFLAGS="-L${MACOSX_SDK}/usr/lib/gcc/darwin -L${MACOSX_SDK}/usr/lib/gcc/darwin/${GCC_VERSION} -L${MACOSX_SDK}/usr/lib"
     243      MACOSX_SDK="${MACOSX_SDK:-/Developer/SDKs/MacOSX10.3.9.sdk}"
     244      GCC_VERSION="${GCC_VERSION:-3.3}"
     245      ARCH="${ARCH:--arch ppc}"
     246      MACOSX_SDK_CFLAGS="${MACOSX_SDK_CFLAGS:--nostdinc -isystem ${MACOSX_SDK}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOSX_SDK}/usr/include}"
     247      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}"
     248      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}"
    249249      ;;
    250250    x*86*darwin*)
    251       MACOSX_SDK=/Developer/SDKs/MacOSX10.5.sdk
    252       GCC_VERSION=4.0
    253       ARCH="-arch i386"
    254       MACOSX_SDK_CFLAGS="-isysroot ${MACOSX_SDK}"
    255       MACOSX_SDK_CXXFLAGS="${MACOSX_SDK_CFLAGS}"
     251      MACOSX_SDK="${MACOSX_SDK:-/Developer/SDKs/MacOSX10.5.sdk}"
     252      GCC_VERSION="${GCC_VERSION:-4.0}"
     253      ARCH="${ARCH:--arch i386}"
     254      MACOSX_SDK_CFLAGS="${MACOSX_SDK_CFLAGS:--isysroot ${MACOSX_SDK}}"
     255      MACOSX_SDK_CXXFLAGS="${MACOSX_SDK_CXXFLAGS:-${MACOSX_SDK_CFLAGS}}"
    256256      ;;
    257257    esac
Note: See TracChangeset for help on using the changeset viewer.