[virglrenderer-devel] [PATCH] Make EGL optional at configure time.
Dave Airlie
airlied at gmail.com
Mon Nov 27 22:20:38 UTC 2017
On 10 November 2017 at 10:07, Joe M. Kniss <djmk at chromium.org> wrote:
> Make EGL optional since it's use in virglrenderer isn't always
> compatible with drivers on linux, for example nVidia does not
> provide a GBM implementation (used by virgl_egl*) with their
> linux drivers.
>
> Signed-off-by: Joe M. Kniss <djmk at google.com>
> ---
> configure.ac | 12 +++++++++---
> src/Makefile.am | 2 +-
> 2 files changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 5ffd448..27a9a63 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -89,16 +89,21 @@ if test "x$build_tests" = "xyes"; then
> fi
>
> AC_CHECK_FUNCS_ONCE([eventfd])
> -AC_CHECK_HEADERS_ONCE([sys/uio.h epoxy/egl.h])
> +AC_CHECK_HEADERS_ONCE([sys/uio.h])
> AM_CONDITIONAL(HAVE_VALGRIND, [test "x$VALGRIND" != "x"])
> AM_CONDITIONAL(BUILD_TESTS, [test "x$build_tests" = "xyes"])
>
> LIBDRM_REQUIRED=2.4.50
>
> +AC_ARG_ENABLE([egl], AS_HELP_STRING([--disable-egl], [Disable EGL]))
> if test "x$os_win32" = xno; then
> - PKG_CHECK_MODULES([LIBDRM], [libdrm >= $LIBDRM_REQUIRED])
> - PKG_CHECK_MODULES([GBM], [gbm])
> + AS_IF([test "x$enable_egl" != "xno"], [
> + AC_CHECK_HEADER([epoxy/egl.h])
> + PKG_CHECK_MODULES([LIBDRM], [libdrm >= $LIBDRM_REQUIRED])
> + PKG_CHECK_MODULES([GBM], [gbm])
> + ])
> fi
> +AM_CONDITIONAL([WITH_EGL], [test "x$enable_egl" != "xno" && "x$os_wind32" = "xno"])
>
This appears to have a typo in the above line.
Dave.
More information about the virglrenderer-devel
mailing list