summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabeldict/modules/dbsearchengine/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/kbabeldict/modules/dbsearchengine/ConfigureChecks.cmake')
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/ConfigureChecks.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/ConfigureChecks.cmake b/kbabel/kbabeldict/modules/dbsearchengine/ConfigureChecks.cmake
new file mode 100644
index 00000000..3c03cff1
--- /dev/null
+++ b/kbabel/kbabeldict/modules/dbsearchengine/ConfigureChecks.cmake
@@ -0,0 +1,21 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+check_c_source_compiles("
+ #include <db.h>
+ void main() { DB *db; db->open(db, 0, 0, NULL, DB_BTREE, DB_CREATE, 0644); } "
+ HAVE_BERKELEY_DB )
+
+if( HAVE_BERKELEY_DB )
+ set( BDB_LIBRARY db )
+else( )
+ tde_message_fatal( "berkeley db is required, but was not found on your system" )
+endif( )