From: adilger Date: Fri, 19 Jul 2002 07:03:00 +0000 (+0000) Subject: Fix configure.in so that it gets the right kernel version for UML, so that X-Git-Tag: v1_7_110~2^11~248 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=0eb32bd2402555d63e6c3d28041220691dfb4af0;p=fs%2Flustre-release.git Fix configure.in so that it gets the right kernel version for UML, so that RPMs are installed in the correct place under UML. --- diff --git a/lustre/configure.in b/lustre/configure.in index 2935a55..65c5e7d 100644 --- a/lustre/configure.in +++ b/lustre/configure.in @@ -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)