From 0d24c34d7fea73a0002a79e995f7c7f30b03a054 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 19 Dec 2016 08:14:23 +0100 Subject: Add coopgamma backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- configure.ac | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 77cdf3f..61d31fb 100644 --- a/configure.ac +++ b/configure.ac @@ -77,6 +77,9 @@ AS_IF([test "x$have_objc_compiler" = xyes], [ # Windows header AC_CHECK_HEADER([windows.h], [have_windows_h=yes], [have_windows_h=no]) +# libcoopgamma header +AC_CHECK_HEADER([libcoopgamma.h], [have_libcoopgamma_h=yes], [have_libcoopgamma_h=no]) + # Check for Python AM_PATH_PYTHON([3.2], [have_python=yes], [have_python=no]) @@ -204,6 +207,30 @@ AS_IF([test "x$enable_wingdi" != xno], [ ]) AM_CONDITIONAL([ENABLE_WINGDI], [test "x$enable_wingdi" = xyes]) +# Check coopgamma method +AC_MSG_CHECKING([whether to enable coopgamma method]) +AC_ARG_ENABLE([coopgamma], [AC_HELP_STRING([--enable-coopgamma], + [enable coopgamma method])], + [enable_coopgamma=$enableval],[enable_coopgamma=maybe]) +AS_IF([test "x$enable_coopgamma" != xno], [ + AS_IF([test $have_libcoopgamma_h = yes], [ + AC_DEFINE([ENABLE_COOPGAMMA], 1, + [Define to 1 to enable coopgamma method]) + AC_MSG_RESULT([yes]) + enable_coopgamma=yes + ], [ + AC_MSG_RESULT([missing dependencies]) + AS_IF([test "x$enable_coopgamma" = xyes], [ + AC_MSG_ERROR([missing libcoopgamma headers for coopgamma method]) + ]) + enable_coopgamma=no + ]) +], [ + AC_MSG_RESULT([no]) + enable_coopgamma=no +]) +AM_CONDITIONAL([ENABLE_COOPGAMMA], [test "x$enable_coopgamma" = xyes]) + # Check Geoclue location provider AC_MSG_CHECKING([whether to enable Geoclue location provider]) @@ -369,6 +396,7 @@ echo " VidMode: ${enable_vidmode} Quartz (OSX): ${enable_quartz} WinGDI (Windows): ${enable_wingdi} + coopgamma: ${enable_coopgamma} Location providers: Geoclue: ${enable_geoclue} -- cgit v1.2.3-70-g09d2