Subject: Bug#3847: Perl "Config.pm"

From: "Brian C. White" <[email-masked]>
Date: Wed, 31 Jul 1996 11:40:46 -0400

While this isn't strictly related to "Perl & G++" (as per the original
bug report), it is still related to the building of XS modules.

The Makefile that is created defines the following values:

PREFIX = /usr
INSTALLPRIVLIB = $(PREFIX)/lib/perl5
INSTALLARCHLIB = $(PREFIX)/lib/perl5/i486-linux/5.003
INSTALLSITELIB = $(PREFIX)/local/lib/site_perl
INSTALLSITEARCH = $(PREFIX)/local/lib/site_perl/i486-linux
INSTALLBIN = $(PREFIX)/bin
INSTALLMAN1DIR = $(PREFIX)/man/man1
INSTALLMAN3DIR = $(PREFIX)/man/man3

The first five should be changed to:

PREFIX = /usr/local
INSTALLPRIVLIB = /usr/lib/perl5
INSTALLARCHLIB = /usr/lib/perl5/i486-linux/5.003
INSTALLSITELIB = /usr/local/lib/site_perl
INSTALLSITEARCH = /usr/local/lib/site_perl/i486-linux

There is no point in having "$(PREFIX)" in the latter entries because
these were fixed in location when perl was built and installed.  The "bin"
and "man" entries still need to depend on it so these can be installed in
user-defined places.  If "$(PREFIX)" were included in those latter entries,
then specifying PREFIX=<dir> on the install line would screw up the install
of the local perl extensions.

                                        Brian
                               ( [email-masked] )

-------------------------------------------------------------------------------
    In theory, theory and practice are the same.  In practice, they're not.