This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Where available, use _NSGetExecutablePath() to make $^X absolute.
authorNicholas Clark <nick@ccl4.org>
Wed, 21 Sep 2011 14:33:09 +0000 (15:33 +0100)
committerNicholas Clark <nick@ccl4.org>
Tue, 27 Sep 2011 20:25:05 +0000 (22:25 +0200)
commitae60cb464cebf89579ec0ff91db8b792b2f1e7cd
treefc1ab2f4a1d4d5360ffaf2df304bfe7c03f8c76c
parent2982a345b7a1edb63720282eef0fba5c61d0e6b5
Where available, use _NSGetExecutablePath() to make $^X absolute.

In Configure, check whether _NSGetExecutablePath() can be used to find the
absolute pathname of the executable. If so, set usensgetexecutablepath in
config.sh and USE_NSGETEXECUTABLEPATH in config.h. If this is set, then use
this approach in S_set_caret_X() to canonicalise $^X as an absolute
path. This approach works on OS X, and possible on other platforms that
use dyld.
21 files changed:
Configure
Cross/config.sh-arm-linux
NetWare/config.wc
Porting/Glossary
Porting/config.sh
config_h.SH
configure.com
epoc/config.sh
perl.c
plan9/config_sh.sample
symbian/config.sh
t/op/magic.t
uconfig.h
uconfig.sh
uconfig64.sh
win32/config.ce
win32/config.gc
win32/config.gc64
win32/config.gc64nox
win32/config.vc
win32/config.vc64