File conftest.sh.diff of Package nvidia-gfxG02

--- conftest.sh.orig	2010-10-15 11:23:17.000000000 +0200
+++ conftest.sh	2010-10-15 11:29:15.000000000 +0200
@@ -735,119 +735,15 @@
             fi
         ;;
 
-        smp_call_function)
-            #
-            # Determine if the smp_call_function() function is
-            # present and how many arguments it takes.
-            #
-            echo "$CONFTEST_PREAMBLE
-            #include <linux/smp.h>
-            void conftest_smp_call_function(void) {
-            #ifdef CONFIG_SMP
-                smp_call_function();
-            #endif
-            }" > conftest$$.c
-
-            $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
-            rm -f conftest$$.c
-
-            if [ -f conftest$$.o ]; then
-                rm -f conftest$$.o
-                echo "#undef NV_SMP_CALL_FUNCTION_PRESENT" >> conftest.h
-                return
-            fi
-
-            echo "$CONFTEST_PREAMBLE
-            #include <linux/smp.h>
-            void conftest_smp_call_function(void) {
-                smp_call_function(NULL, NULL, 0, 0);
-            }" > conftest$$.c
-
-            $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
-            rm -f conftest$$.c
-
-            if [ -f conftest$$.o ]; then
-                rm -f conftest$$.o
-                echo "#define NV_SMP_CALL_FUNCTION_PRESENT" >> conftest.h
-                echo "#define NV_SMP_CALL_FUNCTION_ARGUMENT_COUNT 4" >> conftest.h
-                return
-            fi
-
-            echo "$CONFTEST_PREAMBLE
-            #include <linux/smp.h>
-            void conftest_smp_call_function(void) {
-                smp_call_function(NULL, NULL, 0);
-            }" > conftest$$.c
-
-            $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
-            rm -f conftest$$.c
-
-            if [ -f conftest$$.o ]; then
-                rm -f conftest$$.o
-                echo "#define NV_SMP_CALL_FUNCTION_PRESENT" >> conftest.h
-                echo "#define NV_SMP_CALL_FUNCTION_ARGUMENT_COUNT 3" >> conftest.h
-                return
-            else
-                echo "#error smp_call_function() conftest failed!" >> conftest.h
-            fi
-        ;;
-
-        on_each_cpu)
-            #
-            # Determine if the on_each_cpu() function is present
-            # and how many arguments it takes.
-            #
-            echo "$CONFTEST_PREAMBLE
-            #include <linux/smp.h>
-            void conftest_on_each_cpu(void) {
-            #ifdef CONFIG_SMP
-                on_each_cpu();
-            #endif
-            }" > conftest$$.c
-
-            $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
-            rm -f conftest$$.c
-
-            if [ -f conftest$$.o ]; then
-                rm -f conftest$$.o
-                echo "#undef NV_ON_EACH_CPU_PRESENT" >> conftest.h
-                return
-            fi
-
-            echo "$CONFTEST_PREAMBLE
-            #include <linux/smp.h>
-            void conftest_on_each_cpu(void) {
-                on_each_cpu(NULL, NULL, 0, 0);
-            }" > conftest$$.c
-
-            $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
-            rm -f conftest$$.c
-
-            if [ -f conftest$$.o ]; then
-                rm -f conftest$$.o
-                echo "#define NV_ON_EACH_CPU_PRESENT" >> conftest.h
-                echo "#define NV_ON_EACH_CPU_ARGUMENT_COUNT 4" >> conftest.h
-                return
-            fi
-
-            echo "$CONFTEST_PREAMBLE
-            #include <linux/smp.h>
-            void conftest_on_each_cpu(void) {
-                on_each_cpu(NULL, NULL, 0);
-            }" > conftest$$.c
-
-            $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1
-            rm -f conftest$$.c
-
-            if [ -f conftest$$.o ]; then
-                rm -f conftest$$.o
-                echo "#define NV_ON_EACH_CPU_PRESENT" >> conftest.h
-                echo "#define NV_ON_EACH_CPU_ARGUMENT_COUNT 3" >> conftest.h
-                return
-            else
-                echo "#error on_each_cpu() conftest failed!" >> conftest.h
-            fi
-        ;;
+	smp_call_function)
+	    echo "#define NV_SMP_CALL_FUNCTION_PRESENT" >> conftest.h
+	    echo "#define NV_SMP_CALL_FUNCTION_ARGUMENT_COUNT 4 " >> conftest.h
+	;;
+
+	on_each_cpu)
+	    echo "#define NV_ON_EACH_CPU_PRESENT" >> conftest.h
+	    echo "#define NV_ON_EACH_CPU_ARGUMENT_COUNT 4 " >> conftest.h
+	;;
 
         vmm_support)
             # check if a VMM is supported (Xen only for now).
openSUSE Build Service is sponsored by