[OpenAFS-devel] [PATCH] handle nesting of vars in configure.in properly
Jeremy Katz
katzj@redhat.com
Tue, 9 Oct 2001 01:12:03 -0400
On Tuesday, October 09 2001, Derrick J Brashear said:
> 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
> ?
It doesn't give a different result, per se, but it is a more correct way
of doing things. IMHO, DESTDIR is a hack best reserved for things which
aren't using autoconf/automake since it's so trivial to do things with
automake and autoconf.
I also seem to remember hitting weirdness with shared libs and getting
odd rpaths compiled in when using DESTDIR but that's less of a problem
with OpenAFS :)
Cheers,
Jeremy