Configuring for kernels 2.6.18 and 2.6.19, thanks to Ralf Roesch.
authorFlorian Pose <fp@igh-essen.com>
Tue, 02 Jan 2007 12:47:11 +0000
changeset 507 4687f9d8254e
parent 506 ca528bb97448
child 508 11fb47492456
Configuring for kernels 2.6.18 and 2.6.19, thanks to Ralf Roesch.
configure.ac
--- a/configure.ac	Mon Jan 01 14:58:55 2007 +0000
+++ b/configure.ac	Tue Jan 02 12:47:11 2007 +0000
@@ -52,11 +52,13 @@
 # Try to get kernel release string
 if test -r ${sourcedir}/.kernelrelease; then
     kernelrelease=`cat $sourcedir/.kernelrelease`
+elif test -r ${sourcedir}/include/config/kernel.release; then
+    kernelrelease=`cat $sourcedir/include/config/kernel.release`
+elif test -r ${sourcedir}/include/linux/utsrelease.h; then
+    hdr=${sourcedir}/include/linux/utsrelease.h
+    kernelrelease=`grep UTS_RELEASE $hdr | cut -d " " -f 3- | tr -d \"`
 elif test -r ${sourcedir}/include/linux/version.h; then
-    hdr=$sourcedir/include/linux/utsrelease.h
-    if ! test -r $hdr; then
-        hdr=$sourcedir/include/linux/version.h
-    fi
+    hdr=${sourcedir}/include/linux/version.h
     kernelrelease=`grep UTS_RELEASE $hdr | cut -d " " -f 3- | tr -d \"`
 fi