summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake19
1 files changed, 18 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 4fa14ed1e..9dfb6d137 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -3,6 +3,9 @@
# (C) 2010-2012 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
+# (C) 2014 Timothy Pearson
+# kb9vqf (AT) pearsoncomputing (DOT) net
+#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
@@ -133,6 +136,20 @@ if( WITH_XEXT )
endif( )
+# libconfig (twin/compton-tde)
+if( WITH_LIBCONFIG )
+ pkg_search_module( LIBCONFIG libconfig )
+ if( LIBCONFIG_FOUND )
+ set( HAVE_LIBCONFIG 1 )
+ if( LIBCONFIG_VERSION VERSION_LESS 1.5.0 )
+ set( HAVE_LIBCONFIG_OLD_API 1 )
+ endif( )
+ else( LIBCONFIG_FOUND )
+ tde_message_fatal( "libconfig is requested, but was not found on your system" )
+ endif( )
+endif( )
+
+
# xtest (kxkb)
if( WITH_XTEST )
pkg_search_module( XTEST xtst )
@@ -322,4 +339,4 @@ if( WITH_ELFICON )
message(FATAL_ERROR "\nelficon support was requested, but the libr version on your system may not be compatible with TDE" )
endif( NOT "${LIBR_VERSION}" STREQUAL "0.6.0" )
set( HAVE_ELFICON 1 )
-endif( ) \ No newline at end of file
+endif( )