Fix sensors configure argument

This commit is contained in:
Christian Göttsche 2020-12-03 16:42:38 +01:00
parent 64230ee5cd
commit 4f08d2d5ad
1 changed files with 6 additions and 6 deletions

View File

@ -307,12 +307,12 @@ then
])
fi
AC_ARG_ENABLE(sensors, [AS_HELP_STRING([--with-sensors], [Compile with libsensors support for reading temperature data. Only requires libsensors headers at compile time, at runtime libsensors is loaded via dlopen.])],, enable_sensors="check")
if test "x$enable_sensors" = xyes; then
AC_ARG_WITH(sensors, [AS_HELP_STRING([--with-sensors], [Compile with libsensors support for reading temperature data. Only requires libsensors headers at compile time, at runtime libsensors is loaded via dlopen.])],, with_sensors="check")
if test "x$with_sensors" = xyes; then
AC_CHECK_HEADERS([sensors/sensors.h], [], [missing_headers="$missing_headers $ac_header"])
elif test "x$enable_sensors" = xcheck; then
enable_sensors=yes
AC_CHECK_HEADERS([sensors/sensors.h], [], [enable_sensors=no])
elif test "x$with_sensors" = xcheck; then
with_sensors=yes
AC_CHECK_HEADERS([sensors/sensors.h], [], [with_sensors=no])
fi
AM_CFLAGS="\
@ -391,7 +391,7 @@ AC_MSG_RESULT([
(Linux) ancient vserver: $enable_ancient_vserver
(Linux) affinity: $enable_linux_affinity
(Linux) delay accounting: $enable_delayacct
(Linux) sensors: $enable_sensors
(Linux) sensors: $with_sensors
unicode: $enable_unicode
hwloc: $enable_hwloc
setuid: $enable_setuid