;;
esac
EOCBU
+
+# Change by wpm 10 April 2001
+#
+# XXX -- This isn't right, since you still don't want perl itself
+# linked with -ldb, even if you *do* build the DB_File extension.
+# Linking perl with -ldb will prevent you from building the
+# Sybase::DBlib extension, due to a conflict between dbopen() in both
+# libdb.so and libsybdb.so.
+#
+case "$i_db" in
+undef)
+ set `echo X "$libswanted "|sed -e 's/ db / /'`
+ shift
+ libswanted="$*" ;;
+esac
+
+#
+# XXX -- Same is true for libgdbm. This makes it hard for us to build
+# our own GDBM_File.
+#
+case "$i_gdbm" in
+undef)
+ set `echo X "$libswanted "|sed -e 's/ gdbm / /'`
+ shift
+ libswanted="$*" ;;
+esac
+
+#
+# XXX -- damn. We also need to strip ndbm as well because:
+#
+# mglnxcs01$ ls -al /usr/lib/*ndbm*
+# lrwxrwxrwx 1 root wheel 7 Oct 4 2000 /usr/lib/libndbm.a -> libdb.a
+# lrwxrwxrwx 1 root wheel 8 Oct 4 2000 /usr/lib/libndbm.so -> libdb.so
+#
+case "$i_db" in
+undef)
+ set `echo X "$libswanted "|sed -e 's/ ndbm / /'`
+ shift
+ libswanted="$*" ;;
+esac
+
+