summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-08-19 13:40:28 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-08-21 13:40:43 +0300
commitb56694a2d3fbe3b408c7b11fc720d2ae89a83ef4 (patch)
tree648bf4073f4a125dd0899e5206316933670ac0ce
parentf47c3f9ba74ac50aed8f4c8f3bc4723410a01536 (diff)
downloadkbiff-r14.1.x.tar.gz
kbiff-r14.1.x.zip
Make check for WITH_MLED non-fatalr14.1.x
There is no reason for the configuration check to be fatal, because the system the package builds on may be different from the one that it will run on. On the other hand the flag is pretty useless nowadays anyway, so print a hefty warning if the interface is missing. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 209a94d9bb11d90bde83deefc2f5362812c00eca)
-rw-r--r--ConfigureChecks.cmake16
1 files changed, 12 insertions, 4 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index c43a8be..4e89e3f 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -45,9 +45,17 @@ endif( WITH_SSL )
#### check for ASUS Mail LED
if( WITH_MLED )
- if( EXISTS "/proc/acpi/asus/mled" )
- set( HAVE_MLED 1 )
- else( )
- tde_mesage_fatal( "ASUS Mail LED support was requested but not found in ACPI" )
+ set( HAVE_MLED 1 )
+ if( NOT EXISTS "/proc/acpi/asus/mled" )
+ message( WARNING
+ "\n"
+ "-DWITH_MLED=ON requires 'asus-laptop' kernel module from acpi4asus "
+ "project to work, which was not found on your system. The project is "
+ "currently abandoned and the module doesn't support linux kernels above "
+ "2.6.19. There is no harm in enabling the flag besides an additional "
+ "message on stderr, but you won't get any benefits from it either unless "
+ "you run some very unusual system configuration."
+ "\n"
+ )
endif( )
endif( WITH_MLED )