blob: cd2f404670e2ad3c1ce26979725ce9d598570995 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
--- configure.orig Mon Mar 20 04:14:57 2006
+++ configure Sat May 6 02:32:58 2006
@@ -7604,36 +7604,9 @@
done
done
fi
- if test x"$BERKELEY_DB_DIR" = xyes ; then
- for v in db43 db42 db41 db4 db3 db2 ; do
- if test -d "/usr/local/include/$v" ; then
- BERKELEY_DB_LDFLAGS="-L/usr/local/lib"
- BERKELEY_DB_CFLAGS="-I/usr/local/include/$v"
- BERKELEY_DB_LIB="-l$v"
- echo "$ac_t""FreeBSD locations" 1>&6
- break
- fi
- done
- if test x"$BERKELEY_DB_LIB" = x ; then
- for v in db43 db42 db41 db4 db3 db2 ; do
- if test -d "/usr/include/$v" ; then
- BERKELEY_DB_CFLAGS="-I/usr/include/$v"
- BERKELEY_DB_LIB="-l$v"
- echo "$ac_t""Linux locations" 1>&6
- break
- fi
- done
- if test x"$BERKELEY_DB_LIB" = x ; then
- BERKELEY_DB_LIB=-ldb
- echo "$ac_t""trying -ldb" 1>&6
- fi
- fi
- else
BERKELEY_DB_LDFLAGS="-L$BERKELEY_DB_DIR/lib"
- BERKELEY_DB_CFLAGS="-I$BERKELEY_DB_DIR/include"
- BERKELEY_DB_LIB="-ldb"
- echo "$ac_t""$BERKELEY_DB_DIR" 1>&6
- fi
+ BERKELEY_DB_CFLAGS="-I$BERKELEY_DB_DIR/include/${DB_VER}"
+ BERKELEY_DB_LIB="-l${DB_VER}"
cat >> confdefs.h <<\EOF
#define USE_BERKELEY_DB 1
EOF
|