[OpenAFS-devel] [PATCH] handle nesting of vars in configure.in properly

Derrick J Brashear shadow@dementia.org
Tue, 9 Oct 2001 01:03:35 -0400 (EDT)


On Tue, 9 Oct 2001, Jeremy Katz wrote:

[my own text stripped]
> 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.

How would this give a different result than say
make DESTDIR=$buildroot install
?

> 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.