| 1 |
?RCS: $Id: vendorarch.U,v 1.1 1999/07/08 18:32:57 doughera Exp doughera $ |
| 2 |
?RCS: |
| 3 |
?RCS: Copyright (c) 1999, Andy Dougherty |
| 4 |
?RCS: |
| 5 |
?RCS: You may redistribute only under the terms of the Artistic License, |
| 6 |
?RCS: as specified in the README file that comes with the distribution. |
| 7 |
?RCS: You may reuse parts of this distribution only within the terms of |
| 8 |
?RCS: that same Artistic License; a copy of which may be found at the root |
| 9 |
?RCS: of the source tree for dist 3.0. |
| 10 |
?RCS: |
| 11 |
?RCS: $Log: vendorarch.U,v $ |
| 12 |
?RCS: Revision 1.1 1999/07/08 18:32:57 doughera |
| 13 |
?RCS: Initial revision |
| 14 |
?RCS: |
| 15 |
?MAKE:d_vendorarch vendorarch vendorarchexp installvendorarch: sed Getfile \ |
| 16 |
Setprefixvar Oldconfig Prefixit archname vendorlib vendorprefix test |
| 17 |
?MAKE: -pick add $@ %< |
| 18 |
?Y:TOP |
| 19 |
?S:vendorarch: |
| 20 |
?S: This variable contains the value of the PERL_VENDORARCH symbol. |
| 21 |
?S: It may have a ~ on the front. |
| 22 |
?S: The standard distribution will put nothing in this directory. |
| 23 |
?S: Vendors who distribute perl may wish to place their own |
| 24 |
?S: architecture-dependent modules and extensions in this directory with |
| 25 |
?S: MakeMaker Makefile.PL INSTALLDIRS=vendor |
| 26 |
?S: or equivalent. See INSTALL for details. |
| 27 |
?S:. |
| 28 |
?S:vendorarchexp: |
| 29 |
?S: This variable is the ~name expanded version of vendorarch, so that you |
| 30 |
?S: may use it directly in Makefiles or shell scripts. |
| 31 |
?S:. |
| 32 |
?D:installvendorarch='' |
| 33 |
?S:installvendorarch: |
| 34 |
?S: This variable is really the same as vendorarchexp but may differ on |
| 35 |
?S: those systems using AFS. For extra portability, only this variable |
| 36 |
?S: should be used in makefiles. |
| 37 |
?S:. |
| 38 |
?S:d_vendorarch: |
| 39 |
?S: This variable conditionally defined PERL_VENDORARCH. |
| 40 |
?S:. |
| 41 |
?C:PERL_VENDORARCH: |
| 42 |
?C: If defined, this symbol contains the name of a private library. |
| 43 |
?C: The library is private in the sense that it needn't be in anyone's |
| 44 |
?C: execution path, but it should be accessible by the world. |
| 45 |
?C: It may have a ~ on the front. |
| 46 |
?C: The standard distribution will put nothing in this directory. |
| 47 |
?C: Vendors who distribute perl may wish to place their own |
| 48 |
?C: architecture-dependent modules and extensions in this directory with |
| 49 |
?C: MakeMaker Makefile.PL INSTALLDIRS=vendor |
| 50 |
?C: or equivalent. See INSTALL for details. |
| 51 |
?C:. |
| 52 |
?C:PERL_VENDORARCH_EXP: |
| 53 |
?C: This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used |
| 54 |
?C: in programs that are not prepared to deal with ~ expansion at run-time. |
| 55 |
?C:. |
| 56 |
?H:#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/ |
| 57 |
?H:#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/ |
| 58 |
?H:. |
| 59 |
?LINT:change prefixvar |
| 60 |
?LINT:set installvendorarch |
| 61 |
: Set the vendorarch variables |
| 62 |
case "$vendorprefix" in |
| 63 |
'') d_vendorarch="$undef" |
| 64 |
vendorarch='' |
| 65 |
vendorarchexp='' |
| 66 |
;; |
| 67 |
*) d_vendorarch="$define" |
| 68 |
: determine where vendor-supplied architecture-dependent libraries go. |
| 69 |
: vendorlib default is /usr/local/lib/perl5/vendor_perl/$version |
| 70 |
: vendorarch default is /usr/local/lib/perl5/vendor_perl/$version/$archname |
| 71 |
: vendorlib may have an optional trailing /share. |
| 72 |
case "$vendorarch" in |
| 73 |
'') dflt=`echo $vendorlib | $sed 's,/share$,,'` |
| 74 |
dflt="$dflt/$archname" |
| 75 |
;; |
| 76 |
*) dflt="$vendorarch" ;; |
| 77 |
esac |
| 78 |
fn=d~+ |
| 79 |
rp='Pathname for vendor-supplied architecture-dependent files?' |
| 80 |
. ./getfile |
| 81 |
vendorarch="$ans" |
| 82 |
vendorarchexp="$ansexp" |
| 83 |
;; |
| 84 |
esac |
| 85 |
prefixvar=vendorarch |
| 86 |
. ./installprefix |
| 87 |
if $test X"$vendorarch" = X"$vendorlib"; then |
| 88 |
d_vendorarch="$undef" |
| 89 |
else |
| 90 |
d_vendorarch="$define" |
| 91 |
fi |
| 92 |
|