From eb6737e55e1881908cacf1c18f8941997e80122c Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Wed, 27 Nov 2024 03:15:47 +0100 Subject: [PATCH] Move messages for linuxspi --- CMakeLists.txt | 4 ++-- src/configure.ac | 13 ++++++------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8be9e1655..77218fa61 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -484,9 +484,9 @@ else() endif() if(HAVE_LINUXSPI) - message(STATUS "ENABLED linuxspi") + buildinfo_item("linuxspi" "ENABLED") else() - message(STATUS "DISABLED linuxspi") + buildinfo_item("linuxspi" "DISABLED") endif() if(HAVE_SWIG) diff --git a/src/configure.ac b/src/configure.ac index e45af4005..abbb739ec 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -645,6 +645,12 @@ else confsubst="$confsubst -e /^@HAVE_LINUXSPI_BEGIN@/,/^@HAVE_LINUXSPI_END@/d" fi +AS_VAR_IF([enabled_linuxspi], [yes], [dnl + BUILDINFO_ITEM([linuxspi], [ENABLED]) +], [dnl + BUILDINFO_ITEM([linuxspi], [DISABLED]) +]) + # If we are compiling with gcc, enable all warnings and make warnings errors. ENABLE_WARNINGS="" @@ -828,10 +834,3 @@ if test "x$enabled_linuxgpio" = xyes; then else echo "DISABLED linuxgpio" fi - -if test "x$enabled_linuxspi" = xyes; then - echo "ENABLED linuxspi" -else - echo "DISABLED linuxspi" -fi -