From alsa-devel-owner@alsa.jcu.cz  Thu Oct 29 07:42:06 1998
Received: from cyphyn.219.org (nwhn-sh3-port81.snet.net [204.60.14.81])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id HAA17771
	for <alsa-devel@jcu.cz>; Thu, 29 Oct 1998 07:41:53 +0100
Received: from localhost (emng@localhost)
          by cyphyn.219.org (8.8.4/8.8.4) with SMTP
	  id CAA16052 for <alsa-devel@jcu.cz>; Thu, 29 Oct 1998 02:44:44 -0500
Date: Thu, 29 Oct 1998 02:44:44 -0500 (EST)
From: Fred Floberg <emng@geocities.com>
To: alsa-devel@jcu.cz
Subject: Re: configure install directory
In-Reply-To: <199810290705.CAA15897@cyphyn.219.org>
Message-ID: <Pine.LNX.3.95.981029021120.15903A-100000@cyphyn.219.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list



On Thu, 29 Oct 1998 dfries@umr.edu wrote:

> I have a unusual setup here and I need to specify a different module path
> with the configuration path.  I need the modules to go in
> /lib/modules/spacedout/lib/modules/2.1.127/misc with in place of 2.1.127
> the current kernel.  The computer with the sound card is practically
> diskless, getting most all files over nfs, and the module directory can't
> be shared with the modules on the host machine.
> 
[snip]
> Is there a good way to have the kernel version be updated within the
> configure script? [...]

Hmmm.. This is just a suggestion. I haven't tested it, but it looks like
you can edit the configure script starting at around line 1287:

# Check whether --with-moddir or --without-moddir was given.
if test "${with_moddir+set}" = set; then
  withval="$with_moddir"
  moddir="$withval"
else
  # Special test for RH 5.1
  if test -d /lib/modules/preferred; then
    moddir="/lib/modules/preferred"
  else
    moddir="/lib/modules/$kaversion/misc"
  fi

fi


To become this:

# Check whether --with-moddir or --without-moddir was given.
if test "${with_moddir+set}" = set; then
  withval="$with_moddir"
  moddir="$withval"
else
  # Special test for RH 5.1
# if test -d /lib/modules/preferred; then
#   moddir="/lib/modules/preferred"
# else
#   moddir="/lib/modules/$kaversion/misc"
# fi
moddir=/lib/modules/spacedout/lib/modules/$kaversion/misc
fi


This should do what you want and still allow you to specify an
alternate directory with --with-moddir=/xxx if you should want to.

To avoid editing the configure script (which will get overwritten
every time you run autoconf) you might try

# export KERNELVER=`cat /proc/version |cut -d' ' -f3 -`
# ./configure --with-moddir=/lib/modules/spacedout/lib/modules/$KERNELVER/misc



Fred



