]> git.pld-linux.org Git - packages/apr-util.git/blame - apr-util-db4.4.patch
- fixed libaprutil build (in case buildconf puts apr_dbd.lo after apr_dbd_*)
[packages/apr-util.git] / apr-util-db4.4.patch
CommitLineData
dbf5bc06
JB
1--- apr-util-1.2.2/build/dbm.m4.orig 2005-02-24 11:23:34.000000000 +0100
2+++ apr-util-1.2.2/build/dbm.m4 2005-12-22 23:24:11.199447808 +0100
3@@ -445,6 +445,25 @@
4 apu_db_version=4
5 fi
6 ])
7+dnl
8+dnl APU_CHECK_DB44: is DB4.4 present?
9+dnl
10+dnl if present: sets apu_db_header, apu_db_lib, and apu_db_version
11+dnl
12+AC_DEFUN([APU_CHECK_DB44], [
13+ places=$1
14+ if test -z "$places"; then
15+ places="std /usr/local/BerkeleyDB.4.4 /boot/home/config"
16+ fi
17+ APU_CHECK_BERKELEY_DB("4", "4", "-1",
18+ "$places",
19+ "db44/db.h db4/db.h db.h",
20+ "db-4.4 db4-4.4 db44 db4 db"
21+ )
22+ if test "$apu_have_db" = "1"; then
23+ apu_db_version=4
24+ fi
25+])
26
27
28 AC_DEFUN([APU_CHECK_DB], [
29@@ -506,6 +525,12 @@
30 AC_MSG_ERROR(Berkeley db4 not found)
31 fi
32 ;;
33+ db43)
34+ APU_CHECK_DB44("$check_places")
35+ if test "$apu_db_version" != "4"; then
36+ AC_MSG_ERROR(Berkeley db4 not found)
37+ fi
38+ ;;
39 default)
40 APU_CHECK_DB_ALL("$check_places")
41 ;;
42@@ -513,11 +538,13 @@
43 ])
44
45 dnl
46-dnl APU_CHECK_DB_ALL: Try all Berkeley DB versions, from 4.3 to 1.
47+dnl APU_CHECK_DB_ALL: Try all Berkeley DB versions, from 4.4 to 1.
48 dnl
49 AC_DEFUN([APU_CHECK_DB_ALL], [
50 all_places=$1
51
52+ APU_CHECK_DB44("$all_places")
53+ if test "$apu_db_version" != "4"; then
54 APU_CHECK_DB43("$all_places")
55 if test "$apu_db_version" != "4"; then
56 APU_CHECK_DB42("$all_places")
57@@ -540,6 +567,7 @@
58 fi
59 fi
60 fi
61+ fi
62 AC_MSG_CHECKING(for Berkeley DB)
63 if test "$apu_have_db" = "1"; then
64 AC_MSG_RESULT(found db$apu_db_version)
This page took 0.102796 seconds and 4 git commands to generate.