From 2e9e8b5c62adf75b933be28c258c6c718b98e40f Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 10 Jan 2014 08:58:27 +0100 Subject: [PATCH] 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 --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 6abfab0ab0..046994efb5 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ]], [[ - #ifndef SYS_DVBC_ANNEX_AC + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[ + #if DVB_API_VERSION < 5 #error "Incompatible dvb API" #endif ]])], [ AC_MSG_RESULT(yes)