[Spice-devel] [PATCH v4 3/5] build-sys: check for epoxy-egl support

Victor Toso lists at victortoso.com
Sat Feb 13 08:45:23 UTC 2016


Hi,

On Fri, Feb 05, 2016 at 12:36:50AM +0100, Marc-André Lureau wrote:
> From: Marc-André Lureau <marcandre.lureau at redhat.com>
>
> The following code requires epoxy with egl support. Check for pkg-config
> and egl headers.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau at redhat.com>
> ---
>  configure.ac | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 0beec7c..d59d6d6 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -243,6 +243,30 @@ AS_IF([test "x$have_phodav" = "xyes"],
>
>  AM_CONDITIONAL([WITH_PHODAV], [test "x$have_phodav" = "xyes"])
>

Could you please include a "FIXME: gtk2 support" here so we can easily
remember to drop it when we drop gtk2 support :)

ps: gtk+ links to libepoxy since 3.15

Acked-by: Victor Toso <victortoso at redhat.com>

> +AC_ARG_ENABLE([epoxy],
> +  AS_HELP_STRING([--enable-epoxy=@<:@auto/yes/no@:>@],
> +  [Enable egl/epoxy support @<:@default=auto@:>@]),
> +  [],
> +  [enable_epoxy="auto"])
> +
> +if test "x$enable_epoxy" = "xno"; then
> +  have_epoxy="no"
> +else
> +  PKG_CHECK_MODULES(EPOXY, [epoxy], [have_epoxy=yes], [have_epoxy=no])
> +  AC_SUBST(EPOXY_CFLAGS)
> +  AC_SUBST(EPOXY_LIBS)
> +  if test "x$have_epoxy" = "xyes"; then
> +    AC_CHECK_HEADER([epoxy/egl.h],,have_epoxy=no)
> +  fi
> +  if test "x$have_epoxy" = "xno" && test "x$enable_epoxy" = "xyes"; then
> +    AC_MSG_ERROR([epoxy support explicitly requested, but required package is not available])
> +  fi
> +fi
> +AS_IF([test "x$have_epoxy" = "xyes"],
> +  AC_DEFINE(USE_EPOXY, [1], [Define if supporting epoxy]))
> +
> +AM_CONDITIONAL([WITH_EPOXY], [test "x$have_epoxy" = "xyes"])
> +
>  AC_ARG_WITH([audio],
>    AS_HELP_STRING([--with-audio=@<:@gstreamer/pulse/auto/no@:>@], [For legacy compatibility only]),
>    [SPICE_WARNING([--with-audio is deprecated. Use --enable-pulse and/or --enable-gstaudio instead])
> @@ -705,6 +729,7 @@ AC_MSG_NOTICE([
>          DBus:                     ${have_dbus}
>          WebDAV support:           ${have_phodav}
>          LZ4 support:              ${enable_lz4}
> +        epoxy:                    ${have_epoxy}
>  
>          Now type 'make' to build $PACKAGE
>  
> -- 
> 2.5.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel


More information about the Spice-devel mailing list