dvb: Use DVB_API_VERSION to know if we have recent enough version

We end up with the same end-result but it's more comprehensible
This commit is contained in:
Edward Hervey 2014-01-10 08:58:27 +01:00
parent 8b1bd86000
commit 2e9e8b5c62

View file

@ -2064,10 +2064,10 @@ dnl *** dvb ***
translit(dnm, m, l) AM_CONDITIONAL(USE_DVB, true)
AG_GST_CHECK_FEATURE(DVB, [DVB Source], dvb, [
AC_MSG_CHECKING([Checking for up to date dvb installation])
AC_CHECK_HEADER(linux/dvb/frontend.h, [
AC_CHECK_HEADER(linux/dvb/version.h, [
AC_MSG_CHECKING([for up-to-date dvb API])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <linux/dvb/frontend.h>]], [[
#ifndef SYS_DVBC_ANNEX_AC
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <linux/dvb/version.h>]], [[
#if DVB_API_VERSION < 5
#error "Incompatible dvb API"
#endif
]])], [ AC_MSG_RESULT(yes)