From: Michael Tremer Date: Mon, 29 Sep 2025 16:34:04 +0000 (+0000) Subject: configure: Make libatasmart an optional dependency X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7a4ea3f8dfe3320cf0c01590add0092dacbafa8;p=telemetry.git configure: Make libatasmart an optional dependency Signed-off-by: Michael Tremer --- diff --git a/configure.ac b/configure.ac index cb28756..f1b87f5 100644 --- a/configure.ac +++ b/configure.ac @@ -135,7 +135,12 @@ PKG_CHECK_MODULES([RRD], [librrd]) PKG_CHECK_MODULES([SYSTEMD], [libsystemd]) # libatasmart -PKG_CHECK_MODULES([LIBATASMART], [libatasmart >= 0.19]) +PKG_CHECK_MODULES([LIBATASMART], [libatasmart >= 0.19], + [have_libatasmart=yes], [have_libatasmart=no]) + +if test "x$have_libatasmart" = "xyes"; then + AC_DEFINE([HAVE_LIBATASMART], [1], [Define if you have libatasmart]) +fi save_LIBS="$LIBS" @@ -203,4 +208,6 @@ AC_MSG_RESULT([ D-Bus system dir: ${with_dbussystemservicedir} Generate man-pages: ${have_manpages} + + libatasmart: ${have_libatasmart} ])