bug 543089 - XP_MACOSX should be defined when cross-compiling using toolwhip. Patch by Boris Zbarsky <bzbarsky@mit.edu>, r=me NSPR_4_8_4_BETA1
authorted.mielczarek%gmail.com
Mon, 08 Feb 2010 18:41:36 +0000
changeset 4202 08bec11a622724bdd57763f858e5f6315bbeaf68
parent 4201 9c2c210301f6d093884e0a2261178fba39051e55
child 4203 011b42cad972ed1a7c95d742260c3632c3b3038d
push idunknown
push userunknown
push dateunknown
reviewersme
bugs543089
bug 543089 - XP_MACOSX should be defined when cross-compiling using toolwhip. Patch by Boris Zbarsky <bzbarsky@mit.edu>, r=me
configure
configure.in
--- a/configure
+++ b/configure
@@ -3368,17 +3368,17 @@ EOF
     STRIP="$STRIP -x -S"
     DLL_SUFFIX=dylib
     USE_PTHREADS=1
     MDCPUCFG_H=_darwin.cfg
     PR_MD_CSRCS=darwin.c
     PR_MD_ASFILES=os_Darwin.s
 
     # Add Mac OS X support for loading CFM & CFBundle plugins
-    if test -f /System/Library/Frameworks/Carbon.framework/Carbon; then
+    if test -f "${MACOS_SDK_DIR}/System/Library/Frameworks/Carbon.framework/Carbon"; then
         cat >> confdefs.h <<\EOF
 #define XP_MACOSX 1
 EOF
 
         OS_TARGET=MacOSX
 
         if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then
                         export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET
--- a/configure.in
+++ b/configure.in
@@ -1008,17 +1008,17 @@ case "$target" in
     STRIP="$STRIP -x -S"
     DLL_SUFFIX=dylib
     USE_PTHREADS=1
     MDCPUCFG_H=_darwin.cfg
     PR_MD_CSRCS=darwin.c
     PR_MD_ASFILES=os_Darwin.s
 
     # Add Mac OS X support for loading CFM & CFBundle plugins
-    if test -f /System/Library/Frameworks/Carbon.framework/Carbon; then
+    if test -f "${MACOS_SDK_DIR}/System/Library/Frameworks/Carbon.framework/Carbon"; then
         AC_DEFINE(XP_MACOSX)
         OS_TARGET=MacOSX
 
         if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then
             dnl Use the specified value
             export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET
         elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then
             dnl No value specified on the command line or in the environment,