$NetBSD$

--- configure.orig	2004-01-24 06:30:30.000000000 +0000
+++ configure
@@ -8961,7 +8961,6 @@ gcc 3.0.x (or 2.95.x) *BEFORE* reporting
 Press return to resume configuration (CTRL-C to abort).
 ================================================================================
 EOF
-	read dummy
 	fi
 fi
 
@@ -9956,6 +9955,7 @@ fi
 							if test "x$HAVE_DB40" = "xyes"; then
 
 								berkeleydb_libs="-ldb4"
+							        CPPFLAGS="$CPPFLAGS -DBDB_V4"
 							else
 								{ { echo "$as_me:$LINENO: error: no supported BerkeleyDB found (4.1, 4.0, 3.1, 3.2, 3.3)" >&5
 echo "$as_me: error: no supported BerkeleyDB found (4.1, 4.0, 3.1, 3.2, 3.3)" >&2;}
