[ft-devel] fix --with-old-mac-fonts option
Hi all, I'm sorry that --with-old-mac-fonts option in configure.ac was broken by my previous jumbo patch (to fix deprecated API issue on MacOS X). At present, the option does not work well on UNIX platforms. Following is patch to fix it. Thinking of that CoreFoundation library is published under OSI license, Carbon subset is possible on traditional UNIX platform. (maybe, we cannot expect opensource Quartz, but can expect opensource FSRef functions) In such case, I should change linking test for MacOS X specific LDFLAGS "-Xlinker -framework ..." into more generic test. If anybody knows such implementation, please let me know. Regards, mpsuzuki --- freetype2.orig/builds/unix/configure.ac +++ freetype2/builds/unix/configure.ac @@ -140,10 +140,17 @@ AS_HELP_STRING([--with-old-mac-fonts], [allow Mac resource-based fonts to be used])) if test x$with_old_mac_fonts = xyes; then + orig_LDFLAGS="${LDFLAGS}" + AC_MSG_CHECKING([CoreServices & ApplicationServices of Mac OS X]) LDFLAGS="$LDFLAGS -Xlinker -framework -Xlinker CoreServices \ -Xlinker -framework -Xlinker ApplicationServices" -else - CFLAGS="$CFLAGS -DDARWIN_NO_CARBON" + AC_TRY_LINK([ ], [ ], [ +AC_MSG_RESULT([ok]) + ], [ +AC_MSG_RESULT([not found]) +LDFLAGS="${orig_LDFLAGS}" +CFLAGS="$CFLAGS -DDARWIN_NO_CARBON" + ]) fi ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] fix --with-old-mac-fonts option
On 2006-02-06 10:12, [EMAIL PROTECTED] said: >Thinking of that CoreFoundation library is >published under OSI license, Carbon subset >is possible on traditional UNIX platform. >(maybe, we cannot expect opensource Quartz, > but can expect opensource FSRef functions) Only a subset of CoreFoundation (called CoreFoundationLite IIRC) is available as open source. None of Carbon is open source, and I would not expect that to change. -- Sean McBride, B. Eng [EMAIL PROTECTED] Rogue Researchwww.rogue-research.com Mac Software Developer Montréal, Québec, Canada ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel
Re: [ft-devel] fix --with-old-mac-fonts option
Hi, Just I've committed my fix to configure.ac, thank Werner for comment. On Mon, 6 Feb 2006 11:09:42 -0500 "Sean McBride" <[EMAIL PROTECTED]> wrote: >On 2006-02-06 10:12, [EMAIL PROTECTED] said: > >>Thinking of that CoreFoundation library is >>published under OSI license, Carbon subset >>is possible on traditional UNIX platform. >>(maybe, we cannot expect opensource Quartz, >> but can expect opensource FSRef functions) > >Only a subset of CoreFoundation (called CoreFoundationLite IIRC) is >available as open source. None of Carbon is open source, and I would >not expect that to change. Thank you, I've not known the difference between CF and CFLite. I with my fix is enough for next release :-). Regards, mpsuzuki ___ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel