[Goodies-commits] r3585 - xfce4-sensors-plugin/trunk

Fabian Nowak timystery at xfce.org
Sun Nov 11 20:57:02 CET 2007


Author: timystery
Date: 2007-11-11 19:57:02 +0000 (Sun, 11 Nov 2007)
New Revision: 3585

Modified:
   xfce4-sensors-plugin/trunk/configure.in.in
Log:
add switches to force hddtemp or procacpi


Modified: xfce4-sensors-plugin/trunk/configure.in.in
===================================================================
--- xfce4-sensors-plugin/trunk/configure.in.in	2007-11-11 15:41:47 UTC (rev 3584)
+++ xfce4-sensors-plugin/trunk/configure.in.in	2007-11-11 19:57:02 UTC (rev 3585)
@@ -66,7 +66,14 @@
         AC_DEFINE([HAVE_HDDTEMP], [1], [Define to 1 if hddtemp is desired])
         HAVE_HDDTEMP=1
     else
-        HAVE_HDDTEMP=0
+        AC_ARG_ENABLE([hddtemp], [AC_HELP_STRING([--force-hddtemp], [Force using hddtemp to read your harddisk temperature @<:@default=no@:>@])],
+        [
+            echo "You forced the execution of hddtemp. Make sure it is located in /usr/sbin and executable by the user, e.g. by setting the setuid bit for root."
+            HAVE_HDDTEMP=1
+        ],
+        [
+            HAVE_HDDTEMP=0
+        ])
     fi
     PATH="$OLDPATH"
 ])
@@ -85,7 +92,14 @@
         HAVE_ACPI=1
     ],
     [
-        HAVE_ACPI=0
+        AC_ARG_ENABLE([procacpi], [AC_HELP_STRING([--force-procacpi], [Force using /proc/acpi to read your CPU temperature @<:@default=no@:>@])],
+        [
+            echo "You forced the inclusion of the ACPI module. Note that you should have loaded the kernel modules 'processor' and at least one of 'thermal', 'fan' or 'battery' then."
+            HAVE_ACPI=1
+        ],
+        [
+            HAVE_ACPI=0
+        ])
     ])
 ])
 AM_CONDITIONAL([HAVE_ACPI], [test $HAVE_ACPI = 1])




More information about the Goodies-commits mailing list