diff options
author | Timothy Pearson <[email protected]> | 2012-06-11 12:17:14 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-06-11 12:17:14 -0500 |
commit | 451648d55498ac29d9164519cc4cda2e65503a16 (patch) | |
tree | 1fc285e3f05d12c27fa65c116dd46ac9a76f68a7 /ConfigureChecks.cmake | |
parent | 8ee0ab9902681d432ea668d6e09f630b3d2f9e62 (diff) | |
parent | 3081800c1471aa9cb8d67203b2c6277a92a1f5ce (diff) | |
download | tdebase-451648d55498ac29d9164519cc4cda2e65503a16.tar.gz tdebase-451648d55498ac29d9164519cc4cda2e65503a16.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdebase
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index ded1d0025..1d9c83d71 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -144,6 +144,26 @@ if( WITH_XTEST ) endif( ) +# xscreensaver () +if( WITH_XSCREENSAVER ) + check_library_exists( Xss XScreenSaverQueryInfo "" HAVE_XSSLIB ) + if( HAVE_XSSLIB ) + pkg_search_module( XSS xscrnsaver ) + else( ) + check_library_exists( Xext XScreenSaverQueryInfo "" HAVE_XSSLIB ) + if( HAVE_XSSLIB ) + pkg_search_module( XSS xext ) + endif( ) + endif( ) + check_include_file( X11/extensions/scrnsaver.h HAVE_XSCREENSAVER_H ) + if( HAVE_XSSLIB AND HAVE_XSCREENSAVER_H ) + set( HAVE_XSCREENSAVER 1 ) + else( ) + tde_message_fatal( "xscreensaver is requested, but was not found on your system" ) + endif( ) +endif( ) + + # GL if( BUILD_KDESKTOP OR BUILD_KCONTROL OR BUILD_KSCREENSAVER ) check_library_exists( GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL ) |