diff options
author | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2018-02-13 17:39:26 -0900 |
---|---|---|
committer | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2018-02-13 17:39:26 -0900 |
commit | d71088e8da00afe434fd7dbc3988857b19742515 (patch) | |
tree | 3d1f5a0bc3505b651ad559a3feed5103924ebe64 /configure.ac | |
parent | 173b07ba11b48ae837351d4c6ac3c6d3c843ff28 (diff) | |
download | gstreamer-plugins-bad-d71088e8da00afe434fd7dbc3988857b19742515.tar.gz |
build: check gudev dependency for msdk plugin
gudev is the dependecy for rendernode support in MediaSDK plugin.
https://bugzilla.gnome.org/show_bug.cgi?id=791599
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index ceb89af00..4ce095fb2 100644 --- a/configure.ac +++ b/configure.ac @@ -1050,6 +1050,10 @@ AG_GST_CHECK_FEATURE(TINYALSA, [tinyalsa], tinyalsa, [ dnl check for intel mediasdk translit(dnm, m, l) AM_CONDITIONAL(USE_MSDK, true) AG_GST_CHECK_FEATURE(MSDK, [Intel MediaSDK], msdk, [ + PKG_CHECK_MODULES(G_UDEV, gudev-1.0 , [ + AC_DEFINE([HAVE_GUDEV], 1, [Define if gudev is installed]) + HAVE_GUDEV="yes" ], + [HAVE_GUDEV="no"]) PKG_CHECK_MODULES(LIBMFX, libmfx, [ AC_DEFINE(HAVE_LIBMFX, 1, [Define if mfx_dispatcher is available]) @@ -1090,8 +1094,9 @@ AG_GST_CHECK_FEATURE(MSDK, [Intel MediaSDK], msdk, [ PKG_CHECK_MODULES(LIBVA_DRM, libva-drm, HAVE_LIBVA_DRM="yes", HAVE_LIBVA_DRM="no") - if test "x$HAVE_MSDK" = "xyes" \ - -a "x$HAVE_LIBVA_DRM" = "xyes"; then + if test "x$HAVE_GUDEV" = "xyes" \ + -a "x$HAVE_MSDK" = "xyes" \ + -a "x$HAVE_LIBVA_DRM" = "xyes"; then HAVE_MSDK="yes" else HAVE_MSDK="no" |