From d54da90430dfeb5915e83b0f680ff6ada0fd2db3 Mon Sep 17 00:00:00 2001 From: pieterg Date: Thu, 20 Jan 2011 21:43:52 +0100 Subject: [PATCH] introduce HAVE_TEMPFANCONTROL automake conditional Both dm8000 and dm800se support TempFanControl --- configure.ac | 3 ++- lib/python/Plugins/SystemPlugins/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 3aa22f56..991e70ee 100644 --- a/configure.ac +++ b/configure.ac @@ -51,8 +51,9 @@ AC_ARG_WITH(boxtype, [BOXTYPE="$withval"],[BOXTYPE="dm800"]) AC_SUBST(BOXTYPE) AC_DEFINE_UNQUOTED(BOXTYPE,"$BOXTYPE",[box type]) + AM_CONDITIONAL(DREAMBOX, test `echo "$BOXTYPE" | cut -b 1-2` == "dm") -AM_CONDITIONAL(DM8000, test "$BOXTYPE" == dm8000) +AM_CONDITIONAL(HAVE_TEMPFANCONTROL, test "$BOXTYPE" == dm8000 -o "$BOXTYPE" == dm800se) AC_ARG_WITH(textlcd, AC_HELP_STRING([--with-textlcd], [use ascii based lcd, yes or no]), diff --git a/lib/python/Plugins/SystemPlugins/Makefile.am b/lib/python/Plugins/SystemPlugins/Makefile.am index cf5090af..d0d246be 100755 --- a/lib/python/Plugins/SystemPlugins/Makefile.am +++ b/lib/python/Plugins/SystemPlugins/Makefile.am @@ -6,7 +6,7 @@ SUBDIRS = SoftwareManager PositionerSetup Satfinder \ CableScan FastScan OSDPositionSetup OSD3DSetup \ VideoEnhancement WirelessLan NetworkWizard -if DM8000 +if HAVE_TEMPFANCONTROL SUBDIRS += TempFanControl endif