From 7faa6ba823b8460071107ab783858ec66abcee63 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Tue, 29 Sep 2009 21:32:00 +0200 Subject: [PATCH] Add --with-macsdk flag to configure Compilation fails for some reason, so this option is disabled. --- src/configure | 2 ++ src/configure.in | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/src/configure b/src/configure index df191bbf..ed4f2e54 100755 --- a/src/configure +++ b/src/configure @@ -16498,6 +16498,8 @@ fi + + { echo "$as_me:$LINENO: checking --with-archs argument" >&5 echo $ECHO_N "checking --with-archs argument... $ECHO_C" >&6; } diff --git a/src/configure.in b/src/configure.in index 4e493eae..2a00665d 100644 --- a/src/configure.in +++ b/src/configure.in @@ -3260,6 +3260,36 @@ if test "x$MACOSX" = "xyes"; then [ AC_MSG_RESULT(using default) ]) + dnl This is an attempt to support choice of SDKs, however it does not + dnl work to compile with different SDKs. Must figure out how to fix + dnl this before this option can be used. +dnl AC_MSG_CHECKING(--with-macsdk argument) +dnl AC_ARG_WITH(macsdk, +dnl [ --with-macsdk=SDK SDK version (10.4, 10.5, 10.6, ...)], +dnl [ macsdk="$withval"; AC_MSG_RESULT($macsdk) ], +dnl [ macsdk=""; AC_MSG_RESULT(using default) ]) +dnl +dnl if test -n "$macsdk"; then +dnl AC_MSG_CHECKING(if SDK is supported) +dnl save_cflags="$CFLAGS" +dnl save_ldflags="$LDFLAGS" +dnl sdkflags="/Developer/SDKs/MacOSX$macsdk" +dnl if test "x$macsdk" = "x10.4"; then +dnl sdkflags="$sdkflags""u" +dnl fi +dnl sdkflags="$sdkflags.sdk -mmacosx-version-min=$macsdk" +dnl CFLAGS="$CFLAGS -isysroot $sdkflags" +dnl LDFLAGS="$LDFLAGS -Wl,-syslibroot,$sdkflags" +dnl AC_TRY_LINK([ ], [ ], +dnl [ AC_MSG_RESULT([yes]) +dnl XCODEFLAGS="$XCODEFLAGS -sdk macosx$macsdk" ], +dnl [ AC_MSG_RESULT([no]) +dnl ARCHS="" +dnl CFLAGS="$save_cflags" +dnl LDFLAGS="$save_ldflags" ]) +dnl fi + + AC_MSG_CHECKING(--with-archs argument) AC_ARG_WITH(archs, [ --with-archs=ARCHS space separated list of archs (i386 x86_64 ppc ...)], -- 2.11.4.GIT