Darwin: -Dprefix=$HOME/Perl tried to install to /Library.
Jarkko Hietaniemi [Wed, 2 Jul 2003 08:58:26 +0000 (08:58 +0000)]
p4raw-id: //depot/perl@19928

hints/darwin.sh

index affa83c..33d594c 100644 (file)
@@ -35,6 +35,18 @@ case "$prefix" in
     sitelib="/Library/Perl/${version}"; # FIXME: Want "/Network/Perl/${version}" also
     vendorlib="/System/Library/Perl/${version}"; # Apple-supplied modules
     ;;
+
+  *)
+    # Anything else; use non-system directories
+    # prefix=$prefix; # Built-in perl uses /usr
+    siteprefix=$prefix;
+    vendorprefix='/usr'; usevendorprefix='define';
+
+    # Where to put modules.
+    sitelib=$prefix/lib/perl5/site_perl/${version}
+    vendorlib="/System/Library/Perl/${version}"; # Apple-supplied modules
+    ;;
+
 esac
 
 # 4BSD uses ${prefix}/share/man, not ${prefix}/man.