$NetBSD: patch-aa,v 1.3 2005/01/02 12:43:12 seb Exp $

--- setup.py.orig	2004-12-16 09:10:17.000000000 +0000
+++ setup.py
@@ -177,11 +177,11 @@ if os.name == 'posix':
 
     # figure out from the base setting where the lib and .h are
     if not incdir:
-        incdir = os.path.join(BERKELEYDB_DIR, 'include')
+        incdir = os.path.join(BERKELEYDB_DIR, 'include/db4')
     if not libdir:
         libdir = os.path.join(BERKELEYDB_DIR, 'lib')
-    if not '-ldb' in LIBS:
-        libname = [dblib]
+    if not '-ldb4' in LIBS:
+        libname = ['db4']
     else:
         if debug: print "LIBS already contains '-ldb' not adding our own", "'-l"+dblib+"'"
         libname = []
