# add this here so the test programs below compile
KDE_CHECK_HEADER(X11/Xlib.h)
KDE_CHECK_HEADER(X11/extensions/XKBstr.h, ,
  DO_NOT_COMPILE="$DO_NOT_COMPILE kbstateapplet",
[
#include <X11/Xlib.h>
])

dnl Solaris lacks this file, so we should skip kbstateapplet here
KDE_CHECK_HEADER(X11/XKBlib.h, ,
  DO_NOT_COMPILE="$DO_NOT_COMPILE kbstateapplet",
[
#include <X11/Xlib.h>
])

dnl Solaris lacks this file, so we should skip kbstateapplet here
KDE_CHECK_HEADER(X11/extensions/XKB.h, ,
  DO_NOT_COMPILE="$DO_NOT_COMPILE kbstateapplet",
[
#include <stdio.h>
#include <X11/Xlib.h>
#include <X11/XKBlib.h>
])
