Blame config.in

Packit bc69c3
# Filename:	config.in
Packit bc69c3
#
Packit bc69c3
# written by Paul Marquess <Paul.Marquess@btinternet.com>
Packit bc69c3
# last modified 9th Sept 1997
Packit bc69c3
# version 1.55
Packit bc69c3
Packit bc69c3
# 1. Where is the file db.h?
Packit bc69c3
#
Packit bc69c3
#    Change the path below to point to the directory where db.h is
Packit bc69c3
#    installed on your system.
Packit bc69c3
Packit bc69c3
INCLUDE	= /usr/local/BerkeleyDB/include
Packit bc69c3
#INCLUDE	= /usr/local/include
Packit bc69c3
#INCLUDE	= /usr/include
Packit bc69c3
Packit bc69c3
# 2. Where is libdb?
Packit bc69c3
#
Packit bc69c3
#    Change the path below to point to the directory where libdb is
Packit bc69c3
#    installed on your system.
Packit bc69c3
Packit bc69c3
LIB	= /usr/local/BerkeleyDB/lib
Packit bc69c3
#LIB	= /usr/local/lib
Packit bc69c3
#LIB	= /usr/lib
Packit bc69c3
Packit bc69c3
# 3. What version of Berkely DB have you got?
Packit bc69c3
#
Packit bc69c3
#    If you have version 2.0 or greater, you can skip this question.
Packit bc69c3
#
Packit bc69c3
#    If you have Berkeley DB 1.78 or greater you shouldn't have to
Packit bc69c3
#    change the definitions for PREFIX and HASH below.
Packit bc69c3
#
Packit bc69c3
#    For older versions of Berkeley DB change both PREFIX and HASH to int.
Packit bc69c3
#    Version 1.71, 1.72 and 1.73 are known to need this change.
Packit bc69c3
#
Packit bc69c3
#    If you don't know what version you have have a look in the file db.h. 
Packit bc69c3
#
Packit bc69c3
#    Search for the string "DB_VERSION_MAJOR". If it is present, you
Packit bc69c3
#    have Berkeley DB version 2 (or greater).
Packit bc69c3
#
Packit bc69c3
#    If that didn't work, find the definition of the BTREEINFO typedef.
Packit bc69c3
#    Check the return type from the prefix element. It should look like
Packit bc69c3
#    this in an older copy of db.h:
Packit bc69c3
#
Packit bc69c3
#        int      (*prefix)      __P((const DBT *, const DBT *));  
Packit bc69c3
#
Packit bc69c3
#    and like this in a more recent copy:
Packit bc69c3
#
Packit bc69c3
#        size_t  (*prefix)       /* prefix function */
Packit bc69c3
#            __P((const DBT *, const DBT *));
Packit bc69c3
#
Packit bc69c3
#    Change the definition of PREFIX, below, to reflect the return type
Packit bc69c3
#    of the prefix function in your db.h.
Packit bc69c3
#
Packit bc69c3
#    Now find the definition of the HASHINFO typedef. Check the return
Packit bc69c3
#    type of the hash element. Older versions look like this:
Packit bc69c3
#
Packit bc69c3
#        int      (*hash) __P((const void *, size_t));      
Packit bc69c3
#
Packit bc69c3
#    newer like this:
Packit bc69c3
#
Packit bc69c3
#        u_int32_t               /* hash function */
Packit bc69c3
#                (*hash) __P((const void *, size_t));
Packit bc69c3
#
Packit bc69c3
#    Change the definition of HASH, below, to reflect the return type of
Packit bc69c3
#    the hash function in your db.h.
Packit bc69c3
#
Packit bc69c3
Packit bc69c3
PREFIX	=	size_t
Packit bc69c3
HASH	=	u_int32_t
Packit bc69c3
Packit bc69c3
# 4. Is the library called libdb?
Packit bc69c3
#
Packit bc69c3
#    If you have copies of both 1.x and 2.x Berkeley DB installed on
Packit bc69c3
#    your system it can sometimes be tricky to make sure you are using
Packit bc69c3
#    the correct one. Renaming one (or creating a symbolic link) to
Packit bc69c3
#    include the version number of the library can help.
Packit bc69c3
#
Packit bc69c3
#    For example, if you have both Berkeley DB 2.3.12 and 1.85 on your
Packit bc69c3
#    system and you want to use the Berkeley DB version 2 library you
Packit bc69c3
#    could rename the version 2 library from libdb.a to libdb-2.3.12.a and
Packit bc69c3
#    change the DBNAME line below to look like this:
Packit bc69c3
#
Packit bc69c3
#        DBNAME = -ldb-2.3.12
Packit bc69c3
#
Packit bc69c3
#    That will ensure you are linking the correct version of the DB
Packit bc69c3
#    library.
Packit bc69c3
#
Packit bc69c3
#    Note: If you are building this module with Win32, -llibdb will be
Packit bc69c3
#    used by default.
Packit bc69c3
#
Packit bc69c3
#    If you have changed the name of the library, uncomment the line
Packit bc69c3
#    below (by removing the leading #) and edit the line to use the name
Packit bc69c3
#    you have picked.
Packit bc69c3
 
Packit bc69c3
#DBNAME = -ldb-2.4.10
Packit bc69c3
Packit bc69c3
# end of file config.in