3
# written by Paul Marquess <Paul.Marquess@btinternet.com>
4
# last modified 9th Sept 1997
7
# 1. Where is the file db.h?
9
# Change the path below to point to the directory where db.h is
10
# installed on your system.
12
INCLUDE = /usr/local/BerkeleyDB/include
13
#INCLUDE = /usr/local/include
14
#INCLUDE = /usr/include
18
# Change the path below to point to the directory where libdb is
19
# installed on your system.
21
LIB = /usr/local/BerkeleyDB/lib
25
# 3. What version of Berkely DB have you got?
27
# If you have version 2.0 or greater, you can skip this question.
29
# If you have Berkeley DB 1.78 or greater you shouldn't have to
30
# change the definitions for PREFIX and HASH below.
32
# For older versions of Berkeley DB change both PREFIX and HASH to int.
33
# Version 1.71, 1.72 and 1.73 are known to need this change.
35
# If you don't know what version you have have a look in the file db.h.
37
# Search for the string "DB_VERSION_MAJOR". If it is present, you
38
# have Berkeley DB version 2 (or greater).
40
# If that didn't work, find the definition of the BTREEINFO typedef.
41
# Check the return type from the prefix element. It should look like
42
# this in an older copy of db.h:
44
# int (*prefix) __P((const DBT *, const DBT *));
46
# and like this in a more recent copy:
48
# size_t (*prefix) /* prefix function */
49
# __P((const DBT *, const DBT *));
51
# Change the definition of PREFIX, below, to reflect the return type
52
# of the prefix function in your db.h.
54
# Now find the definition of the HASHINFO typedef. Check the return
55
# type of the hash element. Older versions look like this:
57
# int (*hash) __P((const void *, size_t));
61
# u_int32_t /* hash function */
62
# (*hash) __P((const void *, size_t));
64
# Change the definition of HASH, below, to reflect the return type of
65
# the hash function in your db.h.
71
# 4. Is the library called libdb?
73
# If you have copies of both 1.x and 2.x Berkeley DB installed on
74
# your system it can sometimes be tricky to make sure you are using
75
# the correct one. Renaming one (or creating a symbolic link) to
76
# include the version number of the library can help.
78
# For example, if you have both Berkeley DB 2.3.12 and 1.85 on your
79
# system and you want to use the Berkeley DB version 2 library you
80
# could rename the version 2 library from libdb.a to libdb-2.3.12.a and
81
# change the DBNAME line below to look like this:
83
# DBNAME = -ldb-2.3.12
85
# That will ensure you are linking the correct version of the DB
88
# Note: If you are building this module with Win32, -llibdb will be
91
# If you have changed the name of the library, uncomment the line
92
# below (by removing the leading #) and edit the line to use the name
97
# end of file config.in