summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorRobert Nagy <robert@openbsd.org>2011-08-18 13:06:19 +0200
committerRobert Nagy <robert@openbsd.org>2011-08-18 13:06:19 +0200
commitfedb09d74c69a9525d2117689abd04cc6140db9e (patch)
treecfb9d1b5b83728178f8ff2956cf1808ccd883546 /configure.in
parentdon't need this depend do we really, breaks windows anyway (diff)
downloadcore-fedb09d74c69a9525d2117689abd04cc6140db9e.tar.gz
core-fedb09d74c69a9525d2117689abd04cc6140db9e.zip
fix berkeley db detection on OpenBSD
Diffstat (limited to 'configure.in')
-rwxr-xr-xconfigure.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 0fa9fbc7b41a..66aef4a71873 100755
--- a/configure.in
+++ b/configure.in
@@ -4835,6 +4835,10 @@ if test -n "$with_system_db" -o -n "$with_system_libs" && \
SYSTEM_DB_CFLAGS="-DSYSTEM_DB_HEADER='<$db_header>'"
DB_LIB=
+ dnl At least on OpenBSD dbver is not appended to the library
+ if test "$_os" = "OpenBSD"; then
+ dbver=''
+ fi
for dash in - ''; do
AC_CHECK_LIB(db$dash$dbver, dbopen,
[ DB_LIB="db$dash$dbver"; DB_CPPLIB="db_cxx$dash$dbver"; break ])