~ubuntu-branches/ubuntu/precise/kde-workspace/precise-security

« back to all changes in this revision

Viewing changes to ConfigureChecks.cmake

Tags: upstream-4.7.2
Import upstream version 4.7.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
check_function_exists(getpeereid  HAVE_GETPEEREID) # kdesu
86
86
check_function_exists(setpriority  HAVE_SETPRIORITY) # kscreenlocker 
87
87
 
88
 
pkg_check_modules (XRANDR_1_2   xrandr>=1.3)
89
 
macro_bool_to_01(XRANDR_1_2_FOUND HAS_RANDR_1_3)
90
 
if (NOT XRANDR_1_2_FOUND)
91
 
   pkg_check_modules (XRANDR_1_2   xrandr>=1.2)
92
 
endif (NOT XRANDR_1_2_FOUND)
 
88
set(CMAKE_REQUIRED_INCLUDES ${X11_Xrandr_INCLUDE_PATH}/Xrandr.h)
 
89
set(CMAKE_REQUIRED_LIBRARIES ${X11_Xrandr_LIB})
 
90
check_function_exists(XRRGetScreenSizeRange XRANDR_1_2_FOUND)
93
91
macro_bool_to_01(XRANDR_1_2_FOUND HAS_RANDR_1_2)
94
 
 
 
92
check_function_exists(XRRGetScreenResourcesCurrent XRANDR_1_3_FOUND)
 
93
macro_bool_to_01(XRANDR_1_3_FOUND HAS_RANDR_1_3)