summaryrefslogtreecommitdiffstats
path: root/kandy/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'kandy/ConfigureChecks.cmake')
-rw-r--r--kandy/ConfigureChecks.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/kandy/ConfigureChecks.cmake b/kandy/ConfigureChecks.cmake
new file mode 100644
index 000000000..296191f27
--- /dev/null
+++ b/kandy/ConfigureChecks.cmake
@@ -0,0 +1,18 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+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( )