Whamcloud - gitweb
Fix configure.in so that it gets the right kernel version for UML, so that
authoradilger <adilger>
Fri, 19 Jul 2002 07:03:00 +0000 (07:03 +0000)
committeradilger <adilger>
Fri, 19 Jul 2002 07:03:00 +0000 (07:03 +0000)
RPMs are installed in the correct place under UML.

lustre/configure.in

index 2935a55..65c5e7d 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)