On Wed, May 26, 2004 at 03:49:27PM -0400, Brent Gulanowski wrote:
> >>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.
Understood.
> >>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).
Which version of Mac OS X? Does this patch resemble what worked? If so, good
for someone to commit?
Explicitly naming libSystem is ugly; it would be better to have a way to try "no
library", a la AC_SEARCH_LIBS. I think avoiding the need to patch the generic
BDB detection code to accommodate this corner case trumps the ugliness, however.
diff -u -r1.9 dbm.m4
--- dbm.m4 13 Mar 2004 04:33:54 -0000 1.9
+++ dbm.m4 26 May 2004 21:02:58 -0000
@@ -298,8 +298,8 @@
fi
APU_CHECK_BERKELEY_DB(1, -1, -1,
"$places",
- "db_185.h",
- "db"
+ "db_185.h db.h",
+ "db System" # libSystem on Mac OS X incorporates DB1.85
)
if test "$apu_have_db" = "1"; then
apu_db_version=185