summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-07-30 08:26:47 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-07-30 08:26:47 +0000
commitbd242a2565bd18883fdf37362d277445b988f296 (patch)
treea2a6a8dd31d9a527f95fa2176872cfc679819959 /hints
parent70c75c2418665bab57f257fc3b6b1c3b79553912 (diff)
downloadperl-bd242a2565bd18883fdf37362d277445b988f296.tar.gz
Mac OS X: tweak once again the installation directories.
p4raw-id: //depot/perl@20333
Diffstat (limited to 'hints')
-rw-r--r--hints/darwin.sh25
1 files changed, 19 insertions, 6 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh
index fe8420f975..b7af385fea 100644
--- a/hints/darwin.sh
+++ b/hints/darwin.sh
@@ -21,16 +21,29 @@ version="${perl_revision}.${perl_version}.${perl_subversion}"
# BSD paths
case "$prefix" in
''|'/usr')
- # Default install; use non-system directories
- prefix='/usr/local'; # Built-in perl uses /usr
- siteprefix='/usr/local';
- # Where to put modules.
- sitelib="/Library/Perl/${version}"; # FIXME: Want "/Network/Perl/${version}" also
+ case "$prefix" in
+ '') # Default install; use non-system directories
+ prefix='/usr/local';
+ siteprefix='/usr/local';
+ ;;
+ '/usr') # We are building/replacing the built-in perl
+ prefix=/;
+ siteprefix='/usr/local';
+ # The DSTROOT is used by the Apple build system.
+ installprefix="${DSTROOT}/";
+ bin='/usr/bin';
+ sitebin='/usr/bin';
+ installusrbinperl='define'; # You knew what you were doing.
+ privlib="/System/Library/Perl/${version}";
+ sitelib="/Library/Perl/${version}";
+ ;;
+ esac
+ vendorlib="/Network/Library/Perl/${version}";
# 4BSD uses ${prefix}/share/man, not ${prefix}/man.
man1dir='/usr/share/man/man1';
man3dir='/usr/share/man/man3';
;;
- *) # Anything else; use non-system directories
+ *) # Anything else; use non-system directories, use Configure defaults
;;
esac