diff options
author | nickols_k <nickols_k@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-06-05 08:12:00 +0000 |
---|---|---|
committer | nickols_k <nickols_k@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-06-05 08:12:00 +0000 |
commit | 813b798ce54bc067a7f4e9db95f86c20b87849b5 (patch) | |
tree | f3aa8afff2d25c7aff585e34564c20f741f544b2 /configure | |
parent | adb2b6f6a972059c218d94661a23967c0c3883d4 (diff) |
Kernel version checking improvements
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1026 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -6,6 +6,10 @@ # # Changes in reversed order: # +# +# 2001/06/05 by Nick Kurshev +# - added checking of kernel version +# # 2001/06/04 by Nick Kurshev # - added hard checking of gcc and soft of assembler # @@ -879,22 +883,22 @@ fi # Checking kernel version... _k_verc_problem=no -kernel_name=`uname -s 2>&1` +system_name=`uname -s 2>&1` kernel_version=`uname -r 2>&1` -echo -n "Checking $kernel_name kernel version ... $kernel_version, " +echo -n "Checking $system_name kernel version ... " case $kernel_version in '') kernel_version="?.??"; _k_verc_fail=yes;; - 2.0.[0-99]|2.2.[0-99]) + [0-1].[0-99].[0-99]|2.[0-3].[0-99]) _k_verc_problem=yes;; esac if [ $_k_verc_problem = 'yes' ] && [ $_sse = 'yes' ]; then _k_verc_fail=yes fi if ! test -z "$_k_verc_fail"; then -echo "fail" +echo "$kernel_version, fail" echo "WARNING! You want to run mplayer on this system then be prepared for problems" else -echo "ok" +echo "$kernel_version, ok" fi if [ $_x11 = 'yes' ]; then |