Konrad Hofbauer wrote:
Attached two very simple patches (against the 1.6.0beta2 release) which seem to fix the problem.

Hold on. My first suggested patch ever, and already it is wrong.

So what I would THINK is correct (according to the gcc manual) is the attached new patch. However I cannot test it since
a) even with the old (incorrect) patch it worked without warning and
b) on my 10.4 system the hardcoded (/System/...) and the 10.4u-SDK files are the same.

Or is this extra -I actually needed?

I have the impression that either Apple's gcc-4.0.1 does not support the -I=/... syntax and quietly drops the include, since it appears nowhere in the make output, or that gcc suppresses the include since it is now a SDK header (as the man page suggests). I believe the later.

/Konrad
--- /Users/khofbaue/lyxdevel_16_b1/lyx-1.6.0beta2org/configure  2008-06-02 
17:44:27.000000000 +0200
+++ /Users/khofbaue/lyxdevel_16_b1/lyx-1.6.0beta2dev/configure  2008-06-02 
21:21:41.000000000 +0200
@@ -30714,7 +30714,7 @@
   $as_echo_n "(cached) " >&6
 else
   gt_save_CPPFLAGS="$CPPFLAGS"
-     CPPFLAGS="$CPPFLAGS 
-I/System/Library/Frameworks/CoreFoundation.framework/Headers"
+     CPPFLAGS="$CPPFLAGS 
-I=/System/Library/Frameworks/CoreFoundation.framework/Headers"
      gt_save_LIBS="$LIBS"
      LIBS="$LIBS -framework CoreFoundation"
      cat >conftest.$ac_ext <<_ACEOF
@@ -30782,7 +30782,7 @@
   $as_echo_n "(cached) " >&6
 else
   gt_save_CPPFLAGS="$CPPFLAGS"
-     CPPFLAGS="$CPPFLAGS 
-I/System/Library/Frameworks/CoreFoundation.framework/Headers"
+     CPPFLAGS="$CPPFLAGS 
-I=/System/Library/Frameworks/CoreFoundation.framework/Headers"
      gt_save_LIBS="$LIBS"
      LIBS="$LIBS -framework CoreFoundation"
      cat >conftest.$ac_ext <<_ACEOF
@@ -31980,7 +31980,7 @@
   fi
 
   if test -n "$INTL_MACOSX_LIBS"; then
-    CPPFLAGS="$CPPFLAGS 
-I/System/Library/Frameworks/CoreFoundation.framework/Headers"
+    CPPFLAGS="$CPPFLAGS 
-I=/System/Library/Frameworks/CoreFoundation.framework/Headers"
   fi
 
                       for ac_prog in bison
@@ -32065,7 +32065,7 @@
   $as_echo_n "(cached) " >&6
 else
   gt_save_CPPFLAGS="$CPPFLAGS"
-     CPPFLAGS="$CPPFLAGS 
-I/System/Library/Frameworks/CoreFoundation.framework/Headers"
+     CPPFLAGS="$CPPFLAGS 
-I=/System/Library/Frameworks/CoreFoundation.framework/Headers"
      gt_save_LIBS="$LIBS"
      LIBS="$LIBS -framework CoreFoundation"
      cat >conftest.$ac_ext <<_ACEOF
@@ -32133,7 +32133,7 @@
   $as_echo_n "(cached) " >&6
 else
   gt_save_CPPFLAGS="$CPPFLAGS"
-     CPPFLAGS="$CPPFLAGS 
-I/System/Library/Frameworks/CoreFoundation.framework/Headers"
+     CPPFLAGS="$CPPFLAGS 
-I=/System/Library/Frameworks/CoreFoundation.framework/Headers"
      gt_save_LIBS="$LIBS"
      LIBS="$LIBS -framework CoreFoundation"
      cat >conftest.$ac_ext <<_ACEOF
--- /Users/khofbaue/lyxdevel_16_b1/lyx-1.6.0beta2org/m4/gettext.m4      
2007-08-07 21:22:32.000000000 +0200
+++ /Users/khofbaue/lyxdevel_16_b1/lyx-1.6.0beta2dev/m4/gettext.m4      
2008-06-02 21:23:27.000000000 +0200
@@ -445,7 +445,7 @@
   fi
 
   if test -n "$INTL_MACOSX_LIBS"; then
-    CPPFLAGS="$CPPFLAGS 
-I/System/Library/Frameworks/CoreFoundation.framework/Headers"
+    CPPFLAGS="$CPPFLAGS 
-I=/System/Library/Frameworks/CoreFoundation.framework/Headers"
   fi
 
   dnl intl/plural.c is generated from intl/plural.y. It requires bison,
@@ -489,7 +489,7 @@
   AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
     gt_cv_func_CFPreferencesCopyAppValue,
     [gt_save_CPPFLAGS="$CPPFLAGS"
-     CPPFLAGS="$CPPFLAGS 
-I/System/Library/Frameworks/CoreFoundation.framework/Headers"
+     CPPFLAGS="$CPPFLAGS 
-I=/System/Library/Frameworks/CoreFoundation.framework/Headers"
      gt_save_LIBS="$LIBS"
      LIBS="$LIBS -framework CoreFoundation"
      AC_TRY_LINK([#include <CFPreferences.h>],
@@ -505,7 +505,7 @@
   dnl Check for API introduced in MacOS X 10.3.
   AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
     [gt_save_CPPFLAGS="$CPPFLAGS"
-     CPPFLAGS="$CPPFLAGS 
-I/System/Library/Frameworks/CoreFoundation.framework/Headers"
+     CPPFLAGS="$CPPFLAGS 
-I=/System/Library/Frameworks/CoreFoundation.framework/Headers"
      gt_save_LIBS="$LIBS"
      LIBS="$LIBS -framework CoreFoundation"
      AC_TRY_LINK([#include <CFLocale.h>], [CFLocaleCopyCurrent();],

Reply via email to