This is what I propose: in APR, we add a new #define called APR_DARWIN_10
which, for now, is just set on OS X 10.6.x. We then adjust apr.h and
apr_portable to wrap the tests for __LP64__ within APR_DARWIN_10 (instead
of a bare __LP64__ checks, ala done by Apple and MacPorts).

Sound OK?

On Oct 12, 2009, at 3:54 PM, Jim Jagielski wrote:

This raises an interesting question... the "best" way to do
this is to change apr.h.in so that when apr is installed, the
apr.h file is correct, no matter which arch is used. But that
muddies up apr.h with OS specific tests....

I think we need to follow Apple on this and make these changes
in apr.h.in.

On Oct 7, 2009, at 4:11 PM, Graham Leggett wrote:

Hi all,

I managed to get hold of someone at Apple who pointed me to the
following ed script that they run against apr.h to make it work with
Snow Leopard:

http://www.opensource.apple.com/source/apr/apr-23/apr/files/fix-apr.h.ed

It would seem the task is to tweak configure.in to make the above
changes happen for Darwin.

Regards,
Graham
--


Reply via email to