[OpenAFS-devel] [PATCH] handle nesting of vars in configure.in properly
Jeremy Katz
katzj@redhat.com
Tue, 9 Oct 2001 00:25:31 -0400
On Monday, October 08 2001, Derrick J Brashear said:
> On Sat, 6 Oct 2001, Jeremy Katz wrote:
> > The following patch modifies configure.in so that it will properly
> > substitute variables without expanding all of the variables. This makes
> > it so that you can relocate paths properly on make install. Originally
> > vs 1.2.0 but applies to 1.2.1 and current CVS with offsets.
>
> I'm confused why you're not just configuring with the variables as you
> wants the paths built and then overriding at make install time.
> Can you explain a little more about your motivations and why what exists
> now doesn't work?
Sure. Easiest to demonstrate how this is done with an example I guess --
If you currently run configure with something like the following
./configure --sysconfdir=/etc --with-afs-sysname=i386_linux24 ...
then, eg, viceetcdir is set to /etc/openafs throughout all of the
makefiles. With the patch, it is set to ${sysconfdir}/openafs which is
literally what is wanted because it allows you to do things like
make sysconfdir=$buildroot/etc install
and have viceetcdir be $buildroot/etc/openafs during the make install as
opposed to /etc/openafs.
This makes OpenAFS act more like most things which use autoconf/automake
in following relocations transparently during the install process. It
also allows the use of the stock %configure and %makeinstall macros
built into RPM.
Cheers,
Jeremy