]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
fix-linux-kvers-setting-20041211
authorJeffrey Hutzelman <jhutz@cmu.edu>
Sat, 11 Dec 2004 10:52:16 +0000 (10:52 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 11 Dec 2004 10:52:16 +0000 (10:52 +0000)
FIXES 16763

set SYS_KVERS reasonably on linux always

acinclude.m4

index 76ebe182e5a0e4bf7391b56f50c3e7cd16d58c71..6d2f70cb9c3260b5c48ac4310d9f27f74c078c95 100644 (file)
@@ -157,6 +157,12 @@ case $system in
                  SUBARCH=default
                fi
                AC_MSG_RESULT(linux)
+                if test "x$enable_kernel_module" = "xyes"; then
+                 AFS_SYSKVERS=`echo $LINUX_VERSION | awk -F\. '{print $[]1 $[]2}'`
+                 if test "x${AFS_SYSKVERS}" = "x"; then
+                  AC_MSG_ERROR(Couldn't guess your Linux version [2])
+                 fi
+                fi
                 ;;
         *-solaris*)
                MKAFS_OSTYPE=SOLARIS
@@ -494,9 +500,6 @@ else
        esac
        case $AFS_SYSNAME in
                *_linux* | *_umlinux*)
-                       if test "x$enable_kernel_module" = "xyes"; then
-                        AFS_SYSKVERS=`echo $LINUX_VERSION | awk -F\. '{print $[]1 $[]2}'`
-                       fi
                        if test "x${AFS_SYSKVERS}" = "x"; then
                         AC_MSG_ERROR(Couldn't guess your Linux version. Please use the --with-afs-sysname option to configure an AFS sysname.)
                        fi