changeset 29232:ce95678d6dc8

Add -framework Carbon to LDFLAGS when Mac OS X finder or bundle is enabled.
author diego
date Thu, 07 May 2009 21:34:56 +0000
parents 43c16f39bace
children 4a268bd89bbc
files configure
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu May 07 21:02:57 2009 +0000
+++ b/configure	Thu May 07 21:34:56 2009 +0000
@@ -3809,13 +3809,19 @@
 
 echocheck "Mac OS X Finder Support"
 def_macosx_finder='#undef CONFIG_MACOSX_FINDER'
-test "$_macosx_finder" = yes && def_macosx_finder='#define CONFIG_MACOSX_FINDER 1'
+if test "$_macosx_finder" = yes ; then
+  def_macosx_finder='#define CONFIG_MACOSX_FINDER 1'
+  extra_ldflags="$extra_ldflags -framework Carbon"
+fi
 echores "$_macosx_finder"
 
 echocheck "Mac OS X Bundle file locations"
 def_macosx_bundle='#undef CONFIG_MACOSX_BUNDLE'
 test "$_macosx_bundle" = auto && _macosx_bundle=$_macosx_finder
-test "$_macosx_bundle" = yes && def_macosx_bundle='#define CONFIG_MACOSX_BUNDLE 1'
+if test "$_macosx_bundle" = yes ; then
+  def_macosx_bundle='#define CONFIG_MACOSX_BUNDLE 1'
+  extra_ldflags="$extra_ldflags -framework Carbon"
+fi
 echores "$_macosx_bundle"
 
 echocheck "Apple Remote"