diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-07-17 18:03:38 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-07-17 18:03:38 (GMT) |
commit | 33f0045d9a935fe82f07b039e0654e44b3277765 (patch) | |
tree | 6032e5fe83ad8cd77d681e193a58f34b12280d7e | |
parent | 4be014fc14ff9d311fdfb0417d8f3e738f03a88a (diff) | |
download | hdf5-33f0045d9a935fe82f07b039e0654e44b3277765.zip hdf5-33f0045d9a935fe82f07b039e0654e44b3277765.tar.gz hdf5-33f0045d9a935fe82f07b039e0654e44b3277765.tar.bz2 |
[svn-r5810] Purpose:
Fix
Description:
Better check for versions of Linux. We didn't support kernels with
major version numbers >2 and minor version numbers <4...
Solution:
Fixed to check just that.
Platforms tested:
Linux 2.2 && 2.4
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | configure.in | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -8500,7 +8500,7 @@ fi; MAJOR_VER="`uname -r | cut -d '.' -f1`" MINOR_VER="`uname -r | cut -d '.' -f2`" - if test $MAJOR_VER -ge 2 -a $MINOR_VER -ge 4; then + if test ${MAJOR_VER} -gt 2 -o ${MAJOR_VER} -eq 2 -a ${MINOR_VER} -ge 4; then LINUX_LFS="yes" fi ;; diff --git a/configure.in b/configure.in index 53820e1..9a9f3fc 100644 --- a/configure.in +++ b/configure.in @@ -512,7 +512,7 @@ case "$host_cpu-$host_vendor-$host_os" in MAJOR_VER="`uname -r | cut -d '.' -f1`" MINOR_VER="`uname -r | cut -d '.' -f2`" - if test $MAJOR_VER -ge 2 -a $MINOR_VER -ge 4; then + if test ${MAJOR_VER} -gt 2 -o ${MAJOR_VER} -eq 2 -a ${MINOR_VER} -ge 4; then LINUX_LFS="yes" fi ;; |