Justin Erenkrantz <[EMAIL PROTECTED]> writes:
> > Look for the symbol db_create_4000 (as used by Debian) when checking
> > for db4.
> >
> > Index: build/apu-conf.m4
> > ===================================================================
> > RCS file: /home/cvspublic/apr-util/build/apu-conf.m4,v
> > retrieving revision 1.47
> > diff -u -r1.47 apu-conf.m4
> > --- build/apu-conf.m4 15 Dec 2002 19:36:41 -0000 1.47
> > +++ build/apu-conf.m4 16 Dec 2002 22:29:44 -0000
> > @@ -144,12 +144,17 @@
> > ])])])
> > if test "$apu_db_version" != "4"; then
> > AC_CHECK_HEADER(db.h, [
> > + AC_CHECK_LIB(db, db_create_4000, [
> > + apu_db_header=db.h
> > + apu_db_lib=db
> > + apu_db_version=4
> > + ], [
>
> Why should we check for db_create_4000 first? Why not wait until
> after db_create is not found? -- justin
Here's a patch that does it in the other order
Index: build/apu-conf.m4
===================================================================
RCS file: /home/cvspublic/apr-util/build/apu-conf.m4,v
retrieving revision 1.47
diff -u -r1.47 apu-conf.m4
--- build/apu-conf.m4 15 Dec 2002 19:36:41 -0000 1.47
+++ build/apu-conf.m4 17 Dec 2002 21:42:31 -0000
@@ -149,6 +149,11 @@
apu_db_header=db.h
apu_db_lib=db
apu_db_version=4
+ ])], [
+ AC_CHECK_LIB(db, db_create_4000, [
+ apu_db_header=db.h
+ apu_db_lib=db
+ apu_db_version=4
])])])
fi
])
--
Philip Martin