From building kdellibs
Part 0
-- Looking for X11/extensions/Xrandr.h
-- Looking for X11/extensions/Xrandr.h - found
-- Looking for X11/extensions/XShm.h
-- Looking for X11/extensions/XShm.h - not found
find . -name Xrandr.h
/usr/include/X11/extensions/Xrandr.h
find . -name XShm.h
./usr/include/X11/extensions/XShm.h
Finds Xrandr.h but doesn't find XShm.h
As one sees they are both there
Part 1
-- checking for one of the modules 'freetype2'
-- checking for one of the modules 'fontconfig'
-- checking for one of the modules 'xrandr'
-- checking for one of the modules 'xrender'
-- checking for one of the modules 'libxml-2.0'
-- checking for one of the modules 'libxslt'
-- checking for one of the modules 'glib-2.0'
-- checking for one of the modules 'gobject-2.0'
Would these return a found status?