configure: simplify --enable-lcd code; remove obsolete ENABLE_LCDAPI

Origin commit data
------------------
Branch: ni/coolstream
Commit: dd991245f0
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-10-29 (Sat, 29 Oct 2022)

Origin message was:
------------------
- configure: simplify --enable-lcd code; remove obsolete ENABLE_LCDAPI

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-10-29 22:55:26 +02:00
parent 4a55d4ce88
commit 051760fc44
2 changed files with 9 additions and 21 deletions

View File

@@ -188,27 +188,15 @@ AM_CONDITIONAL(ENABLE_LCD4LINUX, test "$enable_lcd4linux" = "yes")
# lcd
AC_ARG_ENABLE(lcd,
AS_HELP_STRING(--enable-lcd,include lcd support),
,[enable_lcd=no])
AM_CONDITIONAL(ENABLE_LCD,test "$enable_lcd" = "yes")
if test "$enable_lcd" = "yes"; then
AC_DEFINE(ENABLE_LCD,1,[include lcd support])
fi
AS_HELP_STRING([--enable-lcd], [enable internal lcd support @<:@default=no@:>@]),
AC_DEFINE(ENABLE_LCD, 1, [enable internal lcd support]))
AM_CONDITIONAL(ENABLE_LCD, test "$enable_lcd" = "yes")
# lcd update
AM_CONDITIONAL(LCD_UPDATE,test "$enable_lcd_update" = "yes")
if test "$enable_lcd" = "yes"; then
AC_DEFINE(LCD_UPDATE,1,[include lcd update support])
fi
# lcdapi
AM_CONDITIONAL(ENABLE_LCDAPI,test "$enable_lcd" = "yes")
if test "$enable_lcd" = "yes"; then
AC_DEFINE(ENABLE_LCDAPI,1,[include lcd api support])
AC_DEFINE(LCD_UPDATE, 1, [include internal lcd update support])
fi
AM_CONDITIONAL(LCD_UPDATE, test "$enable_lcd" = "yes")
AC_ARG_ENABLE(graphlcd,
AS_HELP_STRING([--enable-graphlcd], [enable GraphLCD support @<:@default=no@:>@]),