Re: [Gtk-osx-users] pcre.h missing?



On Mar 7, 2010, at 1:48 PM, Olivier Sessink wrote:

>> 
>> The best thing to do would be to convince the Bluefish development team that they should be using GRegex, not libpcre directly, because GRegex integrates with the rest of GLib's memory management, and to reduce their external dependencies.
> 
> I'm the lead developer so I mostly have to convince myself ;-)
> but we have quite some code that uses pcre, so it's not a small change...
> 
>> Failing that, you could write a phoney libpcre.pc file (since Bluefish finds libpcre via pkg-config) that points to glib-2.22.2/glib/pcre/pcre.h. If that's to hackey for you, write a module for pcre and just build it. The library is only 532K, it won't add much to your bundle's size.
> 
> but that will add another 532K of memory usage, while the library
> exists on OSX .....

Well, you're being the lead dev changes the answer a bit: Just do what GLib does and include the header in your own tree and add a check to your configure.ac for libpcre while including your header if the PKG_CHECK_EXISTS fails.

Regards,
John Ralls





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