[OpenAFS-devel] [PATCH] handle nesting of vars in configure.in properly
Derek Atkins
warlord@MIT.EDU
11 Oct 2001 12:47:50 -0400
Ken Raeburn <raeburn@raeburn.org> writes:
> $ ./configure --prefix=/afs/mycell.com/foo
> $ make all
> $ make install prefix=/afs/.mycell.com/foo
>
> What value would you give for DESTDIR?
Well, where do you want to install it. Note that what you say above
is equivalent to:
./configure --prefix=/afs/mycell.com/foo
make all
make install
(because the prefix isn't changing). So your example needs neither
prefix-munging NOR DESTDIR. Also keep in mind that sysconfdir (and
other dirs you can define) do not necessarily depend on prefix!
However, DESTDIR can move ALL of them at once :)
Using DESTDIR is more appropriate when you want to generate a package
(ala .deb or .rpm) where --prefix is generally in the local filesystem
but you don't want to install onto the local host, e.g:
./configure --prefix=/usr --sysconfdir=/etc
make all
make install DESTDIR=/var/tmp/root
Note that the equivalent install rule using 'prefix' would be:
make install prefix=/var/tmp/root/usr sysconfdir=/var/tmp/root/etc
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord@MIT.EDU PGP key available