summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 0d81d2a..c371ab2 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -33,6 +33,22 @@ endif( WITH_GCC_VISIBILITY )
find_package( X11 )
+##### check for XCOMPOSITE and XDAMAGE (needed for XCOMPOSITE)
+if( WITH_XCOMPOSITE )
+ pkg_search_module( XDAMAGE xdamage )
+ if( NOT XDAMAGE_FOUND )
+ tde_message_fatal( "xcomposite support was requested, but xdamage was not found on your system" )
+ endif()
+
+ pkg_search_module( XCOMPOSITE xcomposite )
+ if( XCOMPOSITE_FOUND )
+ set( COMPOSITE 1 )
+ else()
+ tde_message_fatal( "xcomposite support was requested, but xcomposite was not found on your system" )
+ endif()
+endif( WITH_XCOMPOSITE )
+
+
##### check for imlib2
pkg_search_module( IMLIB2 imlib2 )