diff --git a/configure.ac b/configure.ac index 44ba69398..21108915f 100644 --- a/configure.ac +++ b/configure.ac @@ -41,6 +41,14 @@ AC_ARG_ENABLE(restore-prev-mode, [ --enable-restore-prev-mode enable return from graphics mode], [AC_DEFINE(RETURN_FROM_GRAPHICS_MODE,1,[enable return from graphics mode])]) +AC_ARG_ENABLE(blinkenlights, + AS_HELP_STRING(--disable-blinkenlights, disable colorful progress bars and use classical style), + ,[enable_blinkenlights=yes]) + +if test "$enable_blinkenlights" != "yes"; then +AC_DEFINE(NO_BLINKENLIGHTS, 1, [disable colorful progress bars, use classical style]) +fi + # # Check for libtdservicedb - the new one - for testing only # diff --git a/src/gui/scale.h b/src/gui/scale.h index 81d68461a..03c00f7a2 100644 --- a/src/gui/scale.h +++ b/src/gui/scale.h @@ -1,10 +1,7 @@ #ifndef __scale_ #define __scale_ -/* define this if you do not want colorful blinkenlights - the classical progressbars will be used instead. */ -// #define NO_BLINKENLIGHTS #include - +/* config.h is included by driver/framebuffer.h already */ #ifdef NO_BLINKENLIGHTS #include #endif