From 98f8df6427a933ee405537128e7e913684a6d791 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 1 Apr 2014 21:50:50 +0000 Subject: Fix compton-tde FTBFS on older systems --- ConfigureChecks.cmake | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'ConfigureChecks.cmake') 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( ) -- cgit v1.2.3