summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2008-12-25 23:25:24 +0200
committerAvi Kivity <avi@redhat.com>2008-12-25 23:25:24 +0200
commit229edb21a53348bc260bb23ed50dce0c4fb447a6 (patch)
tree3e44ff9454014bde48aed6349f027af2672641a8 /configure
parent6b3523a08a01c1411b33690d66cf29920b0d09ce (diff)
kvm: configure: if all else fails, infer kernel version from .config
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index d2883a74..493c178f 100755
--- a/configure
+++ b/configure
@@ -125,6 +125,9 @@ if [ -n "$no_uname" ]; then
elif [ -e "$kerneldir/include/config/kernel.release" ]; then
depmod_version=`cat "$kerneldir/include/config/kernel.release"`
+ elif [ -e "$kerneldir/.config" ]; then
+ depmod_version=$(awk '/Linux kernel version:/ { print $NF }'
+ "$kerneldir/.config")
else
echo
echo "Error: kernelversion not found"