Sophie

Sophie

distrib > Mandriva > 2010.1 > i586 > media > main-testing-src > by-pkgid > a67a978d367abb5bfdbdda5b752404f5 > files > 3

gkrellm-2.3.4-10mdv2010.1.src.rpm

diff -Naur -x '*~' gkrellm-2.3.4/src/configure gkrellm-2.3.4-force-libsensor-test-result/src/configure
--- gkrellm-2.3.4/src/configure	2009-12-21 02:47:44.000000000 +0100
+++ gkrellm-2.3.4-force-libsensor-test-result/src/configure	2010-08-12 00:12:36.000000000 +0200
@@ -167,40 +167,9 @@
 then
 echo "Checking for libsensors... " 1>& 5
 
-cat << EOF > test.c
-#include <stdio.h>
-#include <sensors/sensors.h>
-
-int main()
-	{
-#if SENSORS_API_VERSION < 0x400 /* libsensors 3 code */
-	FILE	*f;
-
-	f = fopen("/etc/sensors.conf", "r");
-	if (!f)
-		return 1;
-	if (sensors_init(f) != 0)
-		return 1;
-	fclose(f);
-	return 0;
-#else /* libsensors 4 code */
-	if (sensors_init(NULL) != 0)
-		return 1;
-	return 0;
-#endif
-	}
-EOF
-
-$CC ${CFLAGS} ${PKG_INCLUDE} -c test.c -o test.o 2>& 5
-$CC test.o -o test ${LINK_FLAGS} ${PKG_LIBS} -lsensors 2>& 5
-
-if [ -x ./test ] && ./test
-then
-	echo 'Defining HAVE_LIBSENSORS' 1>& 5
-	echo '#define HAVE_LIBSENSORS 1' >> configure.h
-else
-	echo "Not found, sensors will not have libsensors support..." 1>& 5
-fi
+# actual test relies on having sensors configured on build host
+echo 'Defining HAVE_LIBSENSORS' 1>& 5
+echo '#define HAVE_LIBSENSORS 1' >> configure.h
 fi
 # end of libsensors check