diff options
Diffstat (limited to 'kde-base/ksysguard/files/kdebase-3.4.1-configure.patch')
-rw-r--r-- | kde-base/ksysguard/files/kdebase-3.4.1-configure.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/kde-base/ksysguard/files/kdebase-3.4.1-configure.patch b/kde-base/ksysguard/files/kdebase-3.4.1-configure.patch new file mode 100644 index 000000000000..9bc10ebbf56f --- /dev/null +++ b/kde-base/ksysguard/files/kdebase-3.4.1-configure.patch @@ -0,0 +1,37 @@ +Index: ksysguard/configure.in.in +=================================================================== +--- ksysguard/configure.in.in (revision 420060) ++++ ksysguard/configure.in.in (working copy) +@@ -23,17 +23,27 @@ + AM_CONDITIONAL(include_ksysguardd_openbsd, test "$UNAME" = OpenBSD) + AC_SUBST(UNAME) + +-KDE_CHECK_LIB(sensors, sensors_init, [LIBSENSORS="-lsensors"]) +-AC_SUBST(LIBSENSORS) ++AC_ARG_WITH(sensors, ++ [AS_HELP_STRING(--with-sensors, ++ [enable support for lm_sensors @<:@default=check@:>@])], ++ [], with_sensors=check) + +-dnl Check for dell laptop support +-AM_CONDITIONAL(supports_i8k, test -f /proc/i8k) ++if test "x$with_sensors" != xno; then ++ KDE_CHECK_HEADERS(sensors/sensors.h) ++ KDE_CHECK_LIB(sensors, sensors_init, [LIBSENSORS="-lsensors"]) + ++ if test "x$with_readline" != xcheck && test -z "$LIBSENSORS"; then ++ AC_MSG_FAILURE([--with-sensors was given, but test for lm_sensors failed]) ++ fi ++fi ++ + case "$UNAME" in + Linux) LIBHOSTS="$LIBSENSORS" ;; + FreeBSD) LIBHOSTS="$LIBSENSORS -lkvm" ;; + Solaris) LIBHOSTS="$LIBSENSORS -lkstat -lsocket" ;; + esac + AC_SUBST(LIBHOSTS) ++AC_SUBST(LIBSENSORS) + +-KDE_CHECK_HEADERS(sensors/sensors.h) ++dnl Check for dell laptop support ++AM_CONDITIONAL(supports_i8k, test -f /proc/i8k) |