[Libreoffice-commits] .: configure.in
Tor Lillqvist
tml at kemper.freedesktop.org
Fri Sep 30 04:55:23 PDT 2011
configure.in | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
New commits:
commit 665fc0285cbf7688839dd9f406aa1318de330945
Author: Tor Lillqvist <tml at iki.fi>
Date: Fri Sep 30 14:49:46 2011 +0300
If no SDK options given, default to 10.6 if that is present
diff --git a/configure.in b/configure.in
index b87f79c..6511744 100644
--- a/configure.in
+++ b/configure.in
@@ -1739,6 +1739,22 @@ AC_SUBST(OSVERSION)
AC_SUBST(PTHREAD_CFLAGS)
AC_SUBST(PTHREAD_LIBS)
+# On MacOSX with the 10.6 SDK, if no SDK options given at all, build
+# against the 10.6 SDK. If no CC and CXX environment variables set,
+# make sure to use the non-LLVM gcc 4.2(.1).
+
+if test $_os = Darwin -a \
+ -z "$with_macosx_version_min_required" -a \
+ -z "$with_macosx_version_max_allowed" -a \
+ -z "$with_macosx_sdk" -a \
+ -d /Developer/SDKs/MacOSX10.6.sdk; then
+ with_macosx_version_min_required="10.6"
+ if test -z "$CC" -a -z "$CXX" ; then
+ CC=gcc-4.2
+ CXX=g++-4.2
+ fi
+fi
+
dnl It is useful to have a BUILD_TYPE keyword to distinguish "normal"
dnl desktop OSes from "mobile" ones.
@@ -1923,8 +1939,8 @@ if test "$_os" = "Darwin" ; then
10.7)
MACOSX_SDK_PATH="/Developer/SDKs/MacOSX10.7.sdk"
macosx_sdk_value="1070"
- AC_MSG_WARN([Building with a SDK > 10.4 is experimental])
- echo "Building with a SDK > 10.4 is experimental" >> warn
+ AC_MSG_WARN([Building with SDK 10.7 is known to fail in vcl])
+ echo "Building with SDK 10.7 is known to fail in vcl" >> warn
;;
*)
AC_MSG_ERROR([$with_macosx_sdk is not a supported SDK value, supported value are 10.4, 10.5, 10.6 and 10.7])
More information about the Libreoffice-commits
mailing list