summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/oblique/configure.in.in
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit84da08d7b7fcda12c85caeb5a10b4903770a6f69 (patch)
tree2a6aea76f2dfffb4cc04bb907c4725af94f70e72 /noatun-plugins/oblique/configure.in.in
downloadtdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.tar.gz
tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun-plugins/oblique/configure.in.in')
-rw-r--r--noatun-plugins/oblique/configure.in.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/noatun-plugins/oblique/configure.in.in b/noatun-plugins/oblique/configure.in.in
new file mode 100644
index 0000000..7b7493f
--- /dev/null
+++ b/noatun-plugins/oblique/configure.in.in
@@ -0,0 +1,30 @@
+AC_ARG_WITH(berkeley-db,
+ [AC_HELP_STRING([--with-berkeley-db],[enable support for Berkeley DB++ @<:@default=check@:>@])],
+ [], with_berkeley_db=check)
+
+AC_ARG_WITH(db-lib,
+ [AC_HELP_STRING([--with-db-lib=NAME],[name of the Berkeley DB++ library @<:@default=db_cxx@:>@])],
+ [ac_db_name="$withval"], [ac_db_name="db_cxx"])
+
+berkeley_db=no
+if test "x$with_berkeley_db" != xno; then
+ berkeley_db=yes
+
+ KDE_CHECK_HEADER([db_cxx.h],
+ [:], [berkeley_db=no])
+
+ AC_CHECK_LIB([$ac_db_name], [main],
+ [:], [berkeley_db=no])
+
+ if test "x$berkeley_db" = xyes; then
+ AC_DEFINE(BERKELEY_DB, 1, [Define if you have Berkeley DB++ installed])
+ BERKELEY_DB_LIBS="-l$ac_db_name"
+ AC_SUBST(BERKELEY_DB_LIBS)
+ fi
+
+ if test "x$with_berkeley_db" != xcheck && test "x$berkeley_db" != xyes; then
+ AC_MSG_ERROR([--with-berkeley-db was given, but test for Berkeley DB++ failed])
+ fi
+fi
+
+AM_CONDITIONAL(include_BERKELEY_DB, test "$berkeley_db" = yes)