blob: a97c7b72facf64140e032811310ea716c49f3064 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001add "-disable-xkb" option
2
3Upstream-Status: Pending
4
5Rebase for 1.2.1 by: Yu Ke <ke.yu@intel.com>
6
Brad Bishop316dfdd2018-06-25 12:45:53 -04007Index: xset-1.2.3/configure.ac
8===================================================================
9--- xset-1.2.3.orig/configure.ac
10+++ xset-1.2.3/configure.ac
11@@ -53,11 +53,15 @@ PKG_CHECK_MODULES(SET_XEXT, xext,
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012 AC_CHECK_HEADERS([X11/extensions/dpms.h X11/extensions/MITMisc.h],,,[#include <X11/Xlib.h>])
13 CPPFLAGS="$SAVE_CPPFLAGS"],[echo "not found"])
14
15+AC_ARG_ENABLE(xkb, AC_HELP_STRING([--disable-xkb], [Disable XKB support]),
16+ XKB="$enableval", XKB="yes")
17+if test "x$XKB" = "xyes" ; then
18 PKG_CHECK_MODULES(SET_XKB, x11,
19 [SAVE_CPPFLAGS="$CPPFLAGS"
20 CPPFLAGS="$CPPFLAGS $SET_XKB_CFLAGS $SET_X11_CFLAGS"
21 AC_CHECK_HEADERS([X11/XKBlib.h],,,[#include <X11/Xlib.h>])
22 CPPFLAGS="$SAVE_CPPFLAGS"],[echo "not found"])
23+fi
24
Brad Bishop316dfdd2018-06-25 12:45:53 -040025 AC_ARG_WITH(xf86misc, AS_HELP_STRING([--without-xf86misc],[Disable xf86misc support.]),
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026 [USE_XF86MISC="$withval"], [USE_XF86MISC="yes"])