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