diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-05-29 17:20:53 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-05-29 17:20:53 -0700 |
commit | e53f4dfafca17bcba79f1e3841d76aa32e0a5438 (patch) | |
tree | 575239970dd491e9a8a57e4f9c133741f22d26bf | |
parent | 95f3a4aac6cddb3a74ba7ae44f1ca236d97c3fb7 (diff) |
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | tests/libXrandr/Makefile.am | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 2677ebf..e19209d 100644 --- a/configure.ac +++ b/configure.ac @@ -53,6 +53,8 @@ PKG_CHECK_MODULES(LIBXEXT, [xext x11]) PKG_CHECK_MODULES(LIBXI, [xi x11]) PKG_CHECK_MODULES(LIBXINERAMA, [xinerama x11]) PKG_CHECK_MODULES(LIBXRANDR, [xrandr x11]) +PKG_CHECK_EXISTS([xrandr >= 1.4], [HAVE_XRANDR_14="yes"], [HAVE_XRANDR_14="no"]) +AM_CONDITIONAL([HAVE_XRANDR_14], [test "x$HAVE_XRANDR_14" = "xyes"]) PKG_CHECK_MODULES(LIBXRENDER, [xrender x11]) PKG_CHECK_EXISTS([xcb], [HAVE_XCB="yes"], [HAVE_XCB="no"]) diff --git a/tests/libXrandr/Makefile.am b/tests/libXrandr/Makefile.am index 047ee47..ce7d860 100644 --- a/tests/libXrandr/Makefile.am +++ b/tests/libXrandr/Makefile.am @@ -22,9 +22,11 @@ # noinst_PROGRAMS = XRRGetOutputProperty -noinst_PROGRAMS += XRRGetProviderProperty noinst_PROGRAMS += XRRQueryOutputProperty +if HAVE_XRANDR_14 +noinst_PROGRAMS += XRRGetProviderProperty noinst_PROGRAMS += XRRQueryProviderProperty +endif HAVE_XRANDR_14 noinst_HEADERS = xhiv-Xrandr.h |