$NetBSD: patch-aa,v 1.1.1.1 2002/08/03 02:01:42 hubertf Exp $

--- ac-helpers/berkeley-db.m4.orig	Fri Aug  2 11:30:28 2002
+++ ac-helpers/berkeley-db.m4
@@ -102,7 +102,7 @@ AC_DEFUN(SVN_LIB_BERKELEY_DB,
     if test "$enable_shared" = "yes"; then
         SVN_DB_LIBS="$dbdir/libdb-4.0.la"
     else
-        SVN_DB_LIBS="-L$dbdir -ldb"
+        SVN_DB_LIBS="-L$dbdir -ldb4"
     fi
   elif test "$status" = "skip"; then
     svn_lib_berkeley_db=no
@@ -193,7 +193,7 @@ AC_DEFUN(SVN_LIB_BERKELEY_DB,
       ;;
       "std" )
         SVN_DB_INCLUDES=
-        SVN_DB_LIBS=-ldb
+        SVN_DB_LIBS=-ldb4
         svn_lib_berkeley_db=yes
       ;;
       *":"* )
@@ -201,13 +201,13 @@ AC_DEFUN(SVN_LIB_BERKELEY_DB,
 	lib="`echo $found | sed -e 's/^.*://'`"
         SVN_DB_INCLUDES="-I$header"
 dnl ### should look for a .la file
-        SVN_DB_LIBS="-L$lib -ldb"
+        SVN_DB_LIBS="-L$lib -ldb4"
         svn_lib_berkeley_db=yes
       ;;
       * )
         SVN_DB_INCLUDES="-I$found/include"
 dnl ### should look for a .la file
-        SVN_DB_LIBS="-L$found/lib -ldb"
+        SVN_DB_LIBS="-L$found/lib -ldb4"
 	svn_lib_berkeley_db=yes
       ;;
     esac
@@ -234,7 +234,7 @@ dnl   function, then this macro assumes 
 AC_DEFUN(SVN_LIB_BERKELEY_DB_TRY,
   [
     svn_lib_berkeley_db_try_save_libs="$LIBS"
-    LIBS="$LIBS -ldb"
+    LIBS="$LIBS -ldb4"
 
     svn_check_berkeley_db_major=$1
     svn_check_berkeley_db_minor=$2
