diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-03 16:42:38 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-12-03 16:42:38 +0100 |
commit | 4f08d2d5ad409cb51a8c3a8e538d7c962ebb1dfc (patch) | |
tree | 102ecf08f36f979f7aa7c17fd233014f62a84575 | |
parent | 64230ee5cde15fbc67895958d2e4dfdc011ca72e (diff) |
Fix sensors configure argument
-rw-r--r-- | configure.ac | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index 30b2502b..253ff5fe 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |