From 0f10ea37464a54de51c094d7d95715128a5be2f0 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 20 Dec 2020 21:59:31 +0100 Subject: [PATCH] configure: make graphlcd configurable Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/8e5e8b1ba8e6e12a587db1e25dbc92a16085035c Author: vanhofen Date: 2020-12-20 (Sun, 20 Dec 2020) Origin message was: ------------------ - configure: make graphlcd configurable ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- acinclude.m4 | 12 ------------ configure.ac | 5 +++++ 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 4efbec4bc..ae64255a9 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -662,18 +662,6 @@ case "$BOXMODEL" in AC_DEFINE(ENABLE_CHANGE_OSD_RESOLUTION, 1, [enable to change osd resolution]) ;; esac - -# BOXMODELs that needs GraphLCD support -case "$BOXMODEL" in - vusolo4k|vuduo4k|vuduo4kse|vuultimo4k|vuuno4kse) - AC_DEFINE(ENABLE_GRAPHLCD, 1, [include GraphLCD support]) - enable_graphlcd=yes - ;; - *) - enable_graphlcd=no - ;; -esac -AM_CONDITIONAL(ENABLE_GRAPHLCD, test "$enable_graphlcd" = "yes") ]) dnl backward compatiblity diff --git a/configure.ac b/configure.ac index 808799530..7bd90f0f8 100644 --- a/configure.ac +++ b/configure.ac @@ -177,6 +177,11 @@ if test "$BOXTYPE" = "coolstream" || AC_DEFINE(SCREENSHOT, 1, [Define to 1 if the platform supports screenshots]) fi +AC_ARG_ENABLE(graphlcd, + AS_HELP_STRING([--enable-graphlcd], [enable GraphLCD support @<:@default=no@:>@]), + AC_DEFINE(ENABLE_GRAPHLCD, 1, [enable GraphLCD support])) +AM_CONDITIONAL(ENABLE_GRAPHLCD, test "$enable_graphlcd" = "yes") + AC_ARG_ENABLE(keyboard-no-rc, AS_HELP_STRING([--enable-keyboard-no-rc], [enable keyboard control, disable rc control @<:@default=no@:>@]), AC_DEFINE(KEYBOARD_INSTEAD_OF_REMOTE_CONTROL, 1, [enable keyboard control, disable rc control]))