Whamcloud - gitweb
Fix linux version checking so that modules install correctly under UML also.
authoradilger <adilger>
Fri, 19 Jul 2002 07:09:58 +0000 (07:09 +0000)
committeradilger <adilger>
Fri, 19 Jul 2002 07:09:58 +0000 (07:09 +0000)
lustre/configure.in

index 2a54e47..21c0aaf 100644 (file)
@@ -64,16 +64,12 @@ AC_MSG_CHECKING(for Linux release)
 
 dnl We need to rid ourselves of the nasty [ ] quotes.
 changequote(, )
-LVERSION="`sed -ne 's/^VERSION[        ]*=[    ]*//gp' $LINUX/Makefile`"
-PATCHLEVEL="`sed -ne 's/^PATCHLEVEL[   ]*=[    ]*//gp' $LINUX/Makefile`"
-SUBLEVEL="`sed -ne 's/^SUBLEVEL[       ]*=[    ]*//gp' $LINUX/Makefile`"
-EXTRAVERSION="`sed -ne 's/^EXTRAVERSION[       ]*=[    ]*//gp' $LINUX/Makefile`"
+dnl Get release from version.h
+RELEASE="`sed -ne 's/.*UTS_RELEASE[ \"]*\([0-9.a-zA-Z-]*\).*/\1/p' $LINUX/include/linux/version.h`"
 changequote([, ])
 
-RELEASE="$LVERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION"
 moduledir='$(libdir)/modules/'$RELEASE/kernel
 AC_SUBST(moduledir)
-AC_SUBST(EXTRAVERSION)
 
 modulefsdir='$(moduledir)/fs'
 AC_SUBST(modulefsdir)