diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-04-14 08:35:50 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-04-14 08:35:50 +0000 |
commit | 8af55a14b7fb6dcc703f803ef3cd3cd359ae345d (patch) | |
tree | f828f1c548fdec0d51e315052a0cbdb58fd7d29e /Build/source/texk/xdvik/m4 | |
parent | 3606cb1179eae47f2ee7d2569ae7ac024deb1310 (diff) |
xdvik 22.87
git-svn-id: svn://tug.org/texlive/trunk@33436 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/xdvik/m4')
-rw-r--r-- | Build/source/texk/xdvik/m4/xdvi-xinput-2-1.m4 | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Build/source/texk/xdvik/m4/xdvi-xinput-2-1.m4 b/Build/source/texk/xdvik/m4/xdvi-xinput-2-1.m4 new file mode 100644 index 00000000000..3795c161f99 --- /dev/null +++ b/Build/source/texk/xdvik/m4/xdvi-xinput-2-1.m4 @@ -0,0 +1,32 @@ +# Autoconf macros for xdvik. +# Copyright (C) 2014 Paul Vojta <xdvi-core@lists.sourceforge.net> +# +# This file is free software; the copyright holder +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# XDVI_XINPUT_2_1 +# ------------------------- +# Check for whether XInput version 2.1 is supported in the X libraries. + +dnl ### Check for XInput 2.1 functionality. +AC_DEFUN([XDVI_XINPUT_2_1],[ +AC_ARG_ENABLE(xi2-scrolling, +[ --enable-xi2-scrolling Use XInput 2.1 'smooth scrolling' if available + (default: enabled)], +[], [enable_xi2_scrolling=yes]) +if test "x$enable_xi2_scrolling" = xyes; then +AC_CACHE_CHECK([for XInput version 2.1 or higher], +xdvi_cv_xinput_2_1, +[AC_TRY_COMPILE( +[#include <X11/extensions/XI2.h> +], [#if (XI_2_Major < 2 || (XI_2_Major == 2 && XI_2_Minor < 1)) +choke me "XInput version is < 2.1" +#endif +], xdvi_cv_xinput_2_1=yes, xdvi_cv_xinput_2_1=no)]) +if test $xdvi_cv_xinput_2_1 = yes; then + AC_DEFINE([HAVE_XI21], 1, + [Define if your system has XInput version 2.1 or higher.]) + X_PRE_LIBS="$X_PRE_LIBS -lXi" +fi +fi]) |