summaryrefslogtreecommitdiff
path: root/hints/darwin.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-07-30 17:09:59 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-07-30 17:09:59 +0000
commit6fd181510e4504d1f2336871d1c793d547feac60 (patch)
tree2fca2c851b2edbe968a5a8415198fc42d4bcab12 /hints/darwin.sh
parent1fe2610ca1fa4f2cffb9de392ab1b2aa19ed008f (diff)
downloadperl-6fd181510e4504d1f2336871d1c793d547feac60.tar.gz
This is getting comical. (Practical tip: never ask
for opinions from one than one person at one time.) Now back to -Dprefix='/usr' replacing the system Perl, but don't use the Apple internal DSTROOT. p4raw-id: //depot/perl@20353
Diffstat (limited to 'hints/darwin.sh')
-rw-r--r--hints/darwin.sh42
1 files changed, 39 insertions, 3 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh
index 1db43655a1..0035792ac9 100644
--- a/hints/darwin.sh
+++ b/hints/darwin.sh
@@ -5,9 +5,45 @@
##
# Paths
-#
-# Since Perl 5.8.1: No more special prefix games, no special handling of /usr.
-#
+##
+
+# Configure hasn't figured out the version number yet. Bummer.
+perl_revision=`awk '/define[ ]+PERL_REVISION/ {print $3}' $src/patchlevel.h`
+perl_version=`awk '/define[ ]+PERL_VERSION/ {print $3}' $src/patchlevel.h`
+perl_subversion=`awk '/define[ ]+PERL_SUBVERSION/ {print $3}' $src/patchlevel.h`
+version="${perl_revision}.${perl_version}.${perl_subversion}"
+
+# This was previously used in all but causes three cases
+# (no -Ddprefix=, -Dprefix=/usr, -Dprefix=/some/thing/else)
+# but that caused too much grief.
+# vendorlib="/System/Library/Perl/${version}"; # Apple-supplied modules
+
+# BSD paths
+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='/';
+ installprefix='/';
+ bin='/usr/bin';
+ sitebin='/usr/bin';
+ installusrbinperl='define'; # You knew what you were doing.
+ privlib="/System/Library/Perl/${version}";
+ sitelib="/Library/Perl/${version}";
+ vendorprefix='/';
+ usevendorprefix='define';
+ vendorbin='/usr/bin';
+ vendorscript='/usr/bin';
+ 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, use Configure defaults
+ ;;
+esac
##
# Tool chain settings