This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update File-Temp to CPAN version 0.2311
[perl5.git] / cpan / DB_File / config.in
1 # Filename:     config.in
2 #
3 # written by Paul Marquess <pmqs@cpan.org>
4 # last modified 9th Sept 1997
5 # version 1.55
6
7 # 1. Where is the file db.h?
8 #
9 #    Change the path below to point to the directory where db.h is
10 #    installed on your system.
11
12 INCLUDE = /usr/local/BerkeleyDB/include
13 #INCLUDE        = /usr/local/include
14 #INCLUDE        = /usr/include
15
16 # 2. Where is libdb?
17 #
18 #    Change the path below to point to the directory where libdb is
19 #    installed on your system.
20
21 LIB     = /usr/local/BerkeleyDB/lib
22 #LIB    = /usr/local/lib
23 #LIB    = /usr/lib
24
25 # 3. What version of Berkely DB have you got?
26 #
27 #    If you have version 2.0 or greater, you can skip this question.
28 #
29 #    If you have Berkeley DB 1.78 or greater you shouldn't have to
30 #    change the definitions for PREFIX and HASH below.
31 #
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.
34 #
35 #    If you don't know what version you have have a look in the file db.h.
36 #
37 #    Search for the string "DB_VERSION_MAJOR". If it is present, you
38 #    have Berkeley DB version 2 (or greater).
39 #
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:
43 #
44 #        int      (*prefix)      __P((const DBT *, const DBT *));
45 #
46 #    and like this in a more recent copy:
47 #
48 #        size_t  (*prefix)       /* prefix function */
49 #            __P((const DBT *, const DBT *));
50 #
51 #    Change the definition of PREFIX, below, to reflect the return type
52 #    of the prefix function in your db.h.
53 #
54 #    Now find the definition of the HASHINFO typedef. Check the return
55 #    type of the hash element. Older versions look like this:
56 #
57 #        int      (*hash) __P((const void *, size_t));
58 #
59 #    newer like this:
60 #
61 #        u_int32_t               /* hash function */
62 #                (*hash) __P((const void *, size_t));
63 #
64 #    Change the definition of HASH, below, to reflect the return type of
65 #    the hash function in your db.h.
66 #
67
68 PREFIX  =       size_t
69 HASH    =       u_int32_t
70
71 # 4. Is the library called libdb?
72 #
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.
77 #
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:
82 #
83 #        DBNAME = -ldb-2.3.12
84 #
85 #    That will ensure you are linking the correct version of the DB
86 #    library.
87 #
88 #    Note: If you are building this module with Win32, -llibdb will be
89 #    used by default.
90 #
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
93 #    you have picked.
94
95 #DBNAME = -ldb-2.4.10
96
97 # end of file config.in