From 5743fd5f31d6a2522ec7e624d162a50a43b4980a Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Tue, 1 May 2018 21:28:34 +0200 Subject: Make windowswm protos selectable separatly --- Makefile.am | 2 ++ configure.ac | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/Makefile.am b/Makefile.am index 028ba9f..62584f3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -289,6 +289,7 @@ video_HEADERS = \ videoprotopkgconfigdir = $(datadir)/pkgconfig videoprotopkgconfig_DATA = videoproto.pc +if WINDOWSWM windowswmdir = $(includedir)/X11/extensions windowswm_HEADERS = \ include/X11/extensions/windowswm.h \ @@ -296,6 +297,7 @@ windowswm_HEADERS = \ windowswmprotopkgconfigdir = $(datadir)/pkgconfig windowswmprotopkgconfig_DATA = windowswmproto.pc +endif xprotodir = $(includedir)/X11 xproto_HEADERS = \ diff --git a/configure.ac b/configure.ac index 0234887..c8f7134 100644 --- a/configure.ac +++ b/configure.ac @@ -51,6 +51,12 @@ AC_ARG_ENABLE(applewm, [APPLEWM=$enableval], [APPLEWM=no]) AM_CONDITIONAL(APPLEWM, [test "x$APPLEWM" = "xyes"]) +AC_ARG_ENABLE(windowswm, + AS_HELP_STRING([--enable-windowswm], + [Install windows wm protocol headers (default: false)]), + [WINDOWSWM=$enableval], [WINDOWSWM=no]) +AM_CONDITIONAL(WINDOWSWM, [test "x$WINDOWSWM" = "xyes"]) + AC_CHECK_HEADERS([sys/select.h sys/param.h sys/types.h sys/time.h]) # Handle Xpoll.h.in -- cgit v1.2.3