summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-04-28 01:31:08 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-04-29 02:01:03 +0200
commitd7235b31b1f53695559f23aa0e62b9f347229502 (patch)
treec8a0f5293912b244ed13351845c22a8031f4cec7 /ConfigureChecks.cmake
parent7c55134dee71ab9a2f916ed2f61d33c45a7681df (diff)
downloadtdebase-d7235b31b1f53695559f23aa0e62b9f347229502.tar.gz
tdebase-d7235b31b1f53695559f23aa0e62b9f347229502.zip
twin/compton: make CONFIG_XSYNC autoconfigurable to fix FTBFS with older libXext versions which doesn't provide XSyncFence
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index f89bfa09f..96c7feac6 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -136,6 +136,13 @@ if( WITH_XCOMPOSITE )
tde_message_fatal( "xext is required for xcomposite support, but was not found on your system" )
endif( )
+ # for (twin/compton)
+ # older libXext (e.g.in debian-6.0) doesn't provide XSyncFence
+ tde_save_and_set( CMAKE_REQUIRED_INCLUDES "${XEXT_INCLUDE_DIRS}" )
+ tde_save_and_set( CMAKE_REQUIRED_LIBRARIES "${XEXT_LIBRARIES}" )
+ check_symbol_exists( "XSyncCreateFence" "X11/Xlib.h;X11/extensions/sync.h" HAVE_XEXT_XSYNCFENCE )
+ tde_restore( CMAKE_REQUIRED_LIBRARIES )
+ tde_restore( CMAKE_REQUIRED_INCLUDES )
endif( )