aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/changedfiles/files/autofoo.patch
blob: d6020c7bf7b1d6d4b1f520c3f236f11f89d61374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- changedfiles-1.0-rc1/configure.in~autofoo
+++ changedfiles-1.0-rc1/configure.in
@@ -9,11 +9,14 @@
 case "$host" in
 	alpha*-*-linux*-*) AC_DEFINE( IS_ALPHA, 1, [System is DEC alpha based] );;
 	*-linux*) 
-		AC_MSG_CHECKING( linux version )
-		case `uname -r` in
-		*2.4*) AC_MSG_RESULT( [ Supported ] );;
-		*) AC_MSG_ERROR( [`uname -r` is an unsupported kernel (only version 2.4 is supported)] );;
-		esac;;
+		if test x"$cross_compiling" = "x"; then
+			AC_MSG_CHECKING( linux version )
+			case `uname -r` in
+			*2.4*) AC_MSG_RESULT( [ Supported ] );;
+			*) AC_MSG_ERROR( [`uname -r` is an unsupported kernel (only version 2.4 is supported)] );;
+			esac
+		fi
+		;;
 *-solaris*) AC_MSG_WARN( [Solaris port is still experimental, use at your own risk.] ); LIBS="$VAR -lfget -lsocket -lnsl";;
 *) AC_MSG_ERROR( [$host is an unsuppored platform.] );;
 esac