X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=configure.ac;h=967699255c51c1085d056f5f7276cb4f5061b6dc;hb=90b7066f7129c01c5bd012a00677ebdc0c42ae89;hp=2962a1562b979c7c24706cbf6e5cb1a2ae0311c5;hpb=cf17686925e242ec3f1d1962414e53bad5ec2a00;p=deb_libcec.git diff --git a/configure.ac b/configure.ac index 2962a15..9676992 100644 --- a/configure.ac +++ b/configure.ac @@ -43,6 +43,20 @@ AC_ARG_ENABLE([optimisation], [use_optimisation=$enableval], [use_optimisation=yes]) +## CuBox support +AC_ARG_ENABLE([cubox], + [AS_HELP_STRING([--enable-cubox], + [enable support for the CuBox (default is no)])], + [use_tda995x=$enableval], + [use_tda995x=no]) + +## Optional path to the tda995x dev toolkit +AC_ARG_WITH([tda995x-toolkit-path], + [AS_HELP_STRING([--with-tda995x-toolkit-path], + [location of the TDA995x driver toolkit (default is ./nxp_hdmi)])], + [TDA995X_CFLAGS="-I$withval/inc"], + [TDA995X_CFLAGS="-I\$(abs_top_srcdir)/nxp_hdmi/inc"]) + ## Raspberry Pi support AC_ARG_ENABLE([rpi], [AS_HELP_STRING([--enable-rpi], @@ -235,6 +249,18 @@ else features="$features\n Raspberry Pi support :\t\tno" fi +## mark CuBox support as available +if test "x$use_tda995x" != "xno"; then + AC_DEFINE([HAVE_TDA995X_API],[1],[Define to 1 to include CuBox support]) + AM_CONDITIONAL(USE_TDA995X_API, true) + features="$features\n CuBox support :\t\t\tyes" + LIB_INFO="$LIB_INFO 'CuBox'" + CPPFLAGS="$CPPFLAGS $TDA995X_CFLAGS" +else + AM_CONDITIONAL(USE_TDA995X_API, false) + features="$features\n CuBox support :\t\t\tno" +fi + ## check if our build system is complete AC_CHECK_HEADER(algorithm,,AC_MSG_ERROR($msg_required_header_missing)) AC_CHECK_HEADER(ctype.h,,AC_MSG_ERROR($msg_required_header_missing))