Commit 6c99941f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Check for Linux DVB version 5

This should fix compilation with kernel headers 2.6.27 and older
(obviously not tested).
parent c768a6cf
...@@ -2126,6 +2126,21 @@ then ...@@ -2126,6 +2126,21 @@ then
fi fi
fi fi
dnl
dnl Linux DVB
dnl
AC_CACHE_CHECK([for Linux DVB version 5], [ac_cv_linux_s2api], [
AC_PREPROC_IFELSE([AC_LANG_PROGRAM([
[#include <linux/dvb/version.h>
#if (DVB_API_VERSION < 5)
EXPLODE
#endif]])], [
ac_cv_linux_s2api=yes
], [
ac_cv_linux_s2api=no
])])
AM_CONDITIONAL([HAVE_LINUX_DVB], [test "$ac_cv_linux_s2api" = no])
dnl dnl
dnl libdvbpsi check for ts mux/demux dnl libdvbpsi check for ts mux/demux
dnl dnl
......
...@@ -158,7 +158,7 @@ libdtv_plugin_la_CFLAGS = $(AM_CFLAGS) ...@@ -158,7 +158,7 @@ libdtv_plugin_la_CFLAGS = $(AM_CFLAGS)
libdtv_plugin_la_LIBADD = $(AM_LIBADD) libdtv_plugin_la_LIBADD = $(AM_LIBADD)
libdtv_plugin_la_DEPENDENCIES = libdtv_plugin_la_DEPENDENCIES =
if HAVE_LINUX if HAVE_LINUX_DVB
libdtv_plugin_la_SOURCES += dtv/linux.c libdtv_plugin_la_SOURCES += dtv/linux.c
if HAVE_DVBPSI if HAVE_DVBPSI
libdtv_plugin_la_SOURCES += dtv/en50221.c dtv/en50221.h libdtv_plugin_la_SOURCES += dtv/en50221.c dtv/en50221.h
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment