diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-09-21 15:33:09 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-09-27 22:25:05 +0200 |
commit | ae60cb464cebf89579ec0ff91db8b792b2f1e7cd (patch) | |
tree | fc1ab2f4a1d4d5360ffaf2df304bfe7c03f8c76c /config_h.SH | |
parent | 2982a345b7a1edb63720282eef0fba5c61d0e6b5 (diff) | |
download | perl-ae60cb464cebf89579ec0ff91db8b792b2f1e7cd.tar.gz |
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.
Diffstat (limited to 'config_h.SH')
-rwxr-xr-x | config_h.SH | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config_h.SH b/config_h.SH index 9281cddff0..7b8d31e6b5 100755 --- a/config_h.SH +++ b/config_h.SH @@ -2696,6 +2696,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un */ #$usekernprocpathname USE_KERN_PROC_PATHNAME /**/ +/* USE_NSGETEXECUTABLEPATH: + * This symbol, if defined, indicates that we can use _NSGetExecutablePath + * and realpath to get a full path for the executable, and hence convert + * $^X to an absolute path. + */ +#$usensgetexecutablepath USE_NSGETEXECUTABLEPATH /**/ + /* Fpos_t: * This symbol holds the type used to declare file positions in libc. * It can be fpos_t, long, uint, etc... It may be necessary to include |