mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
fix-linux-kvers-setting-20041211
FIXES 16763 set SYS_KVERS reasonably on linux always
This commit is contained in:
parent
efb0f66b66
commit
6cd93d3041
@ -157,6 +157,12 @@ case $system in
|
|||||||
SUBARCH=default
|
SUBARCH=default
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT(linux)
|
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*)
|
*-solaris*)
|
||||||
MKAFS_OSTYPE=SOLARIS
|
MKAFS_OSTYPE=SOLARIS
|
||||||
@ -494,9 +500,6 @@ else
|
|||||||
esac
|
esac
|
||||||
case $AFS_SYSNAME in
|
case $AFS_SYSNAME in
|
||||||
*_linux* | *_umlinux*)
|
*_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
|
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.)
|
AC_MSG_ERROR(Couldn't guess your Linux version. Please use the --with-afs-sysname option to configure an AFS sysname.)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user