1 AC_DEFUN([TUXBOX_APPS_DVB],[
2 AC_ARG_WITH(dvbincludes,
3 [ --with-dvbincludes=PATH path for dvb includes [[NONE]]],
4 [DVBINCLUDES="$withval"],[DVBINCLUDES=""])
6 if test "$DVBINCLUDES"; then
7 CPPFLAGS="$CPPFLAGS -I$DVBINCLUDES"
10 AC_CHECK_HEADERS(ost/dmx.h,[
12 AC_MSG_NOTICE([found dvb version 1])
15 if test -z "$DVB_API_VERSION"; then
16 AC_CHECK_HEADERS(linux/dvb/version.h,[
17 AC_LANG_PREPROC_REQUIRE()
18 AC_REQUIRE([AC_PROG_EGREP])
19 AC_LANG_CONFTEST([AC_LANG_SOURCE([[
20 #include <linux/dvb/version.h>
21 version DVB_API_VERSION
23 DVB_API_VERSION=`(eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD | $EGREP "^version" | sed "s,version\ ,,"`
26 AC_MSG_NOTICE([found dvb version $DVB_API_VERSION])
30 if test "$DVB_API_VERSION"; then
31 AC_DEFINE(HAVE_DVB,1,[Define to 1 if you have the dvb includes])
32 AC_DEFINE_UNQUOTED(HAVE_DVB_API_VERSION,$DVB_API_VERSION,[Define to the version of the dvb api])
34 AC_MSG_ERROR([can't find dvb headers])