fi
if test $SENSORS != "yes"; then
- HAVE_SENSORS="n"
+ HAVE_SENSORS="n"
else
- HAVE_SENSORS="y"
+ HAVE_SENSORS="y"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
$as_echo "$SENSORS" >&6; }
# Check for lm_sensors
-SENSORS=no
LFSENSORS=""
DFSENSORS=""
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
+if test $HAVE_SENSORS = "y"; then
+ SENSORS=no
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
$as_echo_n "checking for sensors_get_detected_chips in -lsensors... " >&6; }
if ${ac_cv_lib_sensors_sensors_get_detected_chips+:} false; then :
$as_echo_n "(cached) " >&6
HAVE_SENSORS="n"
fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors lib" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors lib" >&5
$as_echo_n "checking for sensors lib... " >&6; }
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sensors/sensors.h>
-#include <sensors/error.h>
+ #include <sensors/error.h>
int
main ()
HAVE_SENSORS="n"; SENSORS=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
$as_echo "$SENSORS" >&6; }
+fi
[disable sensors support]),
SENSORS=$enableval,SENSORS=yes)
if test $SENSORS != "yes"; then
- HAVE_SENSORS="n"
+ HAVE_SENSORS="n"
else
- HAVE_SENSORS="y"
+ HAVE_SENSORS="y"
fi
AC_MSG_RESULT($SENSORS)
# Check for lm_sensors
-SENSORS=no
LFSENSORS=""
DFSENSORS=""
-AC_CHECK_LIB(sensors, sensors_get_detected_chips, LFSENSORS="-lsensors", HAVE_SENSORS="n")
-AC_MSG_CHECKING(for sensors lib)
-AC_TRY_COMPILE(#include <sensors/sensors.h>
-#include <sensors/error.h>
- , sensors_cleanup();,SENSORS=yes; DFSENSORS="-DHAVE_SENSORS", HAVE_SENSORS="n"; SENSORS=no)
-AC_MSG_RESULT($SENSORS)
+if test $HAVE_SENSORS = "y"; then
+ SENSORS=no
+ AC_CHECK_LIB(sensors, sensors_get_detected_chips, LFSENSORS="-lsensors", HAVE_SENSORS="n")
+ AC_MSG_CHECKING(for sensors lib)
+ AC_TRY_COMPILE(#include <sensors/sensors.h>
+ #include <sensors/error.h>
+ , sensors_cleanup();,SENSORS=yes; DFSENSORS="-DHAVE_SENSORS", HAVE_SENSORS="n"; SENSORS=no)
+ AC_MSG_RESULT($SENSORS)
+fi
AC_SUBST(HAVE_SENSORS)
AC_SUBST(LFSENSORS)
AC_SUBST(DFSENSORS)