mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-01-27 19:53:35 +00:00
build-sys: Add SPICE_CHECK_GSTREAMER()
This simplifies checking for GStreamer modules by setting all the variables we normally need. Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
This commit is contained in:
parent
899a7c75e3
commit
437b817f49
@ -207,3 +207,23 @@ AC_DEFUN([SPICE_CHECK_LZ4], [
|
||||
AC_DEFINE(USE_LZ4, [1], [Define to build with lz4 support])
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
# SPICE_CHECK_GSTREAMER(VAR, version, packages-to-check-for, [action-if-found, [action-if-not-found]])
|
||||
# ---------------------
|
||||
# Checks whether the specified GStreamer modules are present and sets the
|
||||
# corresponding autoconf variables and preprocessor definitions.
|
||||
# ---------------------
|
||||
AC_DEFUN([SPICE_CHECK_GSTREAMER], [
|
||||
AS_VAR_PUSHDEF([have_gst],[have_]m4_tolower([$1]))dnl
|
||||
PKG_CHECK_MODULES([$1], [$3],
|
||||
[have_gst="yes"
|
||||
AC_SUBST(AS_TR_SH([[$1]_CFLAGS]))
|
||||
AC_SUBST(AS_TR_SH([[$1]_LIBS]))
|
||||
AS_VAR_APPEND([SPICE_REQUIRES], [" $3"])
|
||||
AC_DEFINE(AS_TR_SH([HAVE_$1]), [1], [Define if supporting GStreamer $2])
|
||||
$4],
|
||||
[have_gst="no"
|
||||
$5])
|
||||
AS_VAR_POPDEF([have_gst])dnl
|
||||
])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user