Make sitecustomize relocatableinc aware
authorCarl Hayter <hayter@usc.edu>
Thu, 24 Nov 2011 16:49:50 +0000 (17:49 +0100)
committerRicardo Signes <rjbs@cpan.org>
Wed, 21 Mar 2012 01:01:28 +0000 (21:01 -0400)
commitfba9bb10a66dbd0d6ef96e01d8cc0d38d34d04a0
treecab5bbdc7d49fe64fae45addccee892b1aa407a3
parent011be0badf32a8d73f13b6565fbd8c398f8ab27e
Make sitecustomize relocatableinc aware

When -Dusesitecustomize is used with -Duserelocatableinc,
SITELIB_EXP/sitecustomize.pl is not found due to SITELIB_EXP having a
'.../..' relocation path.

This patch refactors the path relocation code from S_incpush() into
S_mayberelocate() so that it can be used in both S_incpush() and in
usesitecustomize's use of SITELIB_EXP.
AUTHORS
embed.fnc
embed.h
perl.c
proto.h