gimp r27370 - in trunk: . app/config



Author: neo
Date: Wed Oct 22 22:04:30 2008
New Revision: 27370
URL: http://svn.gnome.org/viewvc/gimp?rev=27370&view=rev

Log:
2008-10-23  Sven Neumann  <sven gimp org>

	* configure.in: removed check for Carbon and added a test for 
the
	target OS being Darwin instead.

	* app/config/gimpguiconfig.c: use PLATFORM_OSX instead of
	HAVE_CARBON to determine the default "web-browser" command.



Modified:
   trunk/ChangeLog
   trunk/app/config/gimpguiconfig.c
   trunk/configure.in

Modified: trunk/app/config/gimpguiconfig.c
==============================================================================
--- trunk/app/config/gimpguiconfig.c	(original)
+++ trunk/app/config/gimpguiconfig.c	Wed Oct 22 22:04:30 2008
@@ -42,7 +42,7 @@
 
 #ifdef G_OS_WIN32
 #  define DEFAULT_WEB_BROWSER  "not used on Windows"
-#elif HAVE_CARBON
+#elif PLATFORM_OSX
 #  define DEFAULT_WEB_BROWSER  "open %s"
 #else
 #  define DEFAULT_WEB_BROWSER  "firefox %s"

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Wed Oct 22 22:04:30 2008
@@ -1712,9 +1712,25 @@
 AC_SUBST(SCREENSHOT)
 
 
-############################################################
-# Check for Mac OS X TWAIN framework (can't build on Darwin)
-############################################################
+####################
+# Check for Mac OS X
+####################
+
+AC_MSG_CHECKING([checking if compiling for Mac OS X])
+case "$target_or_host" in
+  *-*-darwin*)
+     AC_MSG_RESULT(yes)
+     AC_DEFINE(PLATFORM_OSX, 1, [define to 1 if compiling for Mac OS X])
+     ;;
+  *)
+     AC_MSG_RESULT(no)
+     ;;
+esac
+
+
+####################################
+# Check for Mac OS X TWAIN framework
+####################################
 
 mac_twain_ok=no
 AC_MSG_CHECKING([checking for Mac OS X TWAIN support])
@@ -1726,25 +1742,6 @@
 AM_CONDITIONAL(HAVE_MAC_TWAIN, test "x$mac_twain_ok" = xyes)
 
 
-#############################################################
-# Check for Mac OS X Carbon framework (can't build on Darwin)
-#############################################################
-
-carbon_ok=no
-AC_MSG_CHECKING([checking for Mac OS X Carbon support])
-AC_TRY_CPP([
-#include <Carbon/Carbon.h>
-#include <CoreServices/CoreServices.h>
-], carbon_ok=yes)
-AC_MSG_RESULT($carbon_ok)
-if test "x$carbon_ok" = "xyes"; then
-  AC_DEFINE(HAVE_CARBON, 1, [define to 1 if Carbon is available])
-  CARBON_LDFLAGS="-framework Carbon"
-  AC_SUBST(CARBON_LDFLAGS)
-fi
-AM_CONDITIONAL(HAVE_CARBON, test "x$carbon_ok" = "xyes")
-
-
 ##########################################################
 # Determine where to install the desktop & mime info files
 ##########################################################



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]