Index: src/modules/db_berkeley/Makefile
--- src/modules/db_berkeley/Makefile.orig
+++ src/modules/db_berkeley/Makefile
@@ -10,10 +10,10 @@ NAME=db_berkeley.so
 # extra debug messages
 # -DBDB_EXTRA_DEBUG is optional
 DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/BerkeleyDB.4.6/include \
-	-I$(SYSBASE)/include
+	-I$(SYSBASE)/include -I$(LOCALBASE)/include/db4
 
 
-LIBS=-L$(LOCALBASE)/lib -L$(SYSBASE)/lib -L$(LOCALBASE)/BerkeleyDB.4.6/lib -ldb
+LIBS=-L$(LOCALBASE)/lib -L$(SYSBASE)/lib -L$(LOCALBASE)/lib/db4 -ldb
 
 SERLIBPATH=../../lib
 SER_LIBS=$(SERLIBPATH)/srdb2/srdb1
