summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-22 21:33:37 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-22 21:33:37 +0000
commit87b2ea0ac1d482adee9e36165211d09d7e8a602c (patch)
treea67e69523e57a9f5ab8afb0276b753eab060806b /ConfigureChecks.cmake
parent75f32756ec8e53a0f254866c0d7120b078ce3b6e (diff)
downloadtdepim-87b2ea0ac1d482adee9e36165211d09d7e8a602c.tar.gz
tdepim-87b2ea0ac1d482adee9e36165211d09d7e8a602c.zip
[kdepim] cmake port for kmobile, kitchensync, and doc
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1225672 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake25
1 files changed, 25 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 13dfa5327..23b631ee1 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -32,6 +32,31 @@ if( BUILD_INDEXLIB OR BUILD_KMAIL )
endif( )
+if( BUILD_KMOBILE )
+ # FIXME not checked because Gentoo don't provide baudboy.h
+ check_include_file( "baudboy.h" HAVE_BAUDBOY_H )
+endif( )
+
+
+if( BUILD_KANDY OR (BUILD_KMOBILE AND NOT HAVE_BAUDBOY_H) )
+ check_include_file( "lockdev.h" HAVE_LOCKDEV_H )
+ if( HAVE_LOCKDEV_H )
+ check_library_exists( lockdev dev_unlock "" HAVE_LOCKDEV )
+ if( HAVE_LOCKDEV )
+ set( LOCKDEV_LIBRARY lockdev CACHE INTERNAL "" FORCE )
+ endif( )
+ endif( )
+endif( )
+
+
+if( WITH_GNOKII AND (BUILD_KADDRESSBOOK OR BUILD_KMOBILE) )
+ pkg_search_module( GNOKII gnokii )
+ if( NOT GNOKII_FOUND )
+ tde_message_fatal( "gnokii are requested, but was not found on your system" )
+ endif( )
+endif( )
+
+
if( BUILD_LIBKDENETWORK OR BUILD_CERTMANAGER OR BUILD_KMAIL OR BUILD_KADDRESSBOOK )
if( NOT HAVE_GPGME_0_4_BRANCH )