On May 26, 2004, at 2:51 PM, Noah Misch wrote:

On Wed, May 26, 2004 at 12:21:32PM -0400, Brent Gulanowski wrote:
Hi.

First let me apologize for my ignorance of some related matters, such
as detailed workings of configure scripts and related tools.

The Autoconf manual is pretty good. ``info Autoconf''

:) It's on the stack, but not at the top.


I am working on a port of jxta-c (jxta-c.jxta.org) to Mac OS X. jxta-c
depends on apr-util, however it requires some customization: it needs
to be built with berkeley db 1.85. On Mac OS X, it seems that this
library has been rolled into libc. When trying to build apr-util with
db185 on Mac OS X, the configure script does not seem to look in libc.
Undoubtedly, the majority of builds of apr-util simply use the included
sdbm.


If someone could give me a clue as to how to get the apr-util build
scripts to look for db in libc, I would really appreciate it. I
apologize if this has been covered before. I will happily search the
archives given a technique to do so.

I really don't want to touch any of this and would rather the jxta-c
developers would do so, but it seems not to be a priority, so now I
have to do this and share whatever I find with them.

Try this patch. I haven't tested it, and it probably isn't the best solution,
but it may well do the job for you. After applying it, regenerate ``configure''
using ``autoconf''.


I have a sinking feeling that the C library in Mac OS X was called something
exotic, like "System" (libSystem.dylib). If that's the case, you may need to
use something like that instead of "c".

You are right about that. I couldn't change the patch directly (patch seems to know if a patch is altered) so I just made the changes in dbm.m4 itself after applying the patch. (Also, in Darwin, it's db.h, not db_185.h although I have reason to believe it is nevertheless 1.85).


Thanks.



Index: dbm.m4 =================================================================== RCS file: /home/cvspublic/apr-util/build/dbm.m4,v retrieving revision 1.9 diff -u -r1.9 dbm.m4 --- dbm.m4 13 Mar 2004 04:33:54 -0000 1.9 +++ dbm.m4 26 May 2004 18:46:53 -0000 @@ -299,7 +299,7 @@ APU_CHECK_BERKELEY_DB(1, -1, -1, "$places", "db_185.h", - "db" + "db c" ) if test "$apu_have_db" = "1"; then apu_db_version=185



-- Brent Gulanowski [EMAIL PROTECTED]



Reply via email to