This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Populate metaconfig branch.
[metaconfig.git] / U / installdirs / sitearch.U
CommitLineData
959f3c4c
JH
1?RCS: $Id: sitearch.U,v 3.1 1999/07/08 18:32:29 doughera Exp doughera $
2?RCS:
3?RCS: Copyright (c) 1996-1998, Andy Dougherty
4?RCS: Copyright (c) 1991-1993, Raphael Manfredi
5?RCS:
6?RCS: You may redistribute only under the terms of the Artistic Licence,
7?RCS: as specified in the README file that comes with the distribution.
8?RCS: You may reuse parts of this distribution only within the terms of
9?RCS: that same Artistic Licence; a copy of which may be found at the root
10?RCS: of the source tree for dist 3.0.
11?RCS:
12?RCS: $Log: sitearch.U,v $
13?RCS: Revision 3.1 1999/07/08 18:32:29 doughera
14?RCS: Updated for perl5.005_5x
15?RCS:
16?RCS: Revision 3.0.1.1 1997/02/28 16:21:30 ram
17?RCS: patch61: created
18?RCS:
19?MAKE:sitearch sitearchexp installsitearch: cat sed Getfile \
20 Oldconfig Prefixit archname apiversion installprefix \
21 prefix sitelib test
22?MAKE: -pick add $@ %<
23?Y:TOP
24?S:sitearch:
25?S: This variable contains the eventual value of the SITEARCH symbol,
26?S: which is the name of the private library for this package. It may
27?S: have a ~ on the front. It is up to the makefile to eventually create
28?S: this directory while performing installation (with ~ substitution).
29?S:.
30?S:sitearchexp:
31?S: This variable is the ~name expanded version of sitearch, so that you
32?S: may use it directly in Makefiles or shell scripts.
33?S:.
34?S:installsitearch:
35?S: This variable is really the same as sitearchexp but may differ on
36?S: those systems using AFS. For extra portability, only this variable
37?S: should be used in makefiles.
38?S:.
39?C:SITEARCH:
40?C: This symbol contains the name of the private library for this package.
41?C: The library is private in the sense that it needn't be in anyone's
42?C: execution path, but it should be accessible by the world. The program
43?C: should be prepared to do ~ expansion.
44?C: The standard distribution will put nothing in this directory.
45?C: Individual sites may place their own extensions and modules in
46?C: this directory.
47?C:.
48?C:SITEARCH_EXP:
49?C: This symbol contains the ~name expanded version of SITEARCH, to be used
50?C: in programs that are not prepared to deal with ~ expansion at run-time.
51?C:.
52?H:#define SITEARCH "$sitearch" /**/
53?H:#define SITEARCH_EXP "$sitearchexp" /**/
54?H:.
55?T:tdflt
56: determine where site specific architecture-dependent libraries go.
57: sitelib default is /usr/local/lib/perl5/site_perl/
58: sitearch default is /usr/local/lib/perl5/site_perl/$apiversion/$archname
59: sitelib may have an optional trailing /share.
60tdflt=`echo $sitelib | $sed 's,/share$,,'`
61tdflt="$tdflt/$apiversion/$archname"
62set sitearch sitearch none
63eval $prefixit
64case "$sitearch" in
65'') dflt="$tdflt" ;;
66*) dflt="$sitearch" ;;
67esac
68$cat <<EOM
69
70The installation process will also create a directory for
71architecture-dependent site-specific extensions and modules.
72
73EOM
74fn=nd~+
75rp='Pathname for the site-specific architecture-dependent library files?'
76. ./getfile
77sitearch="$ans"
78sitearchexp="$ansexp"
79: Change installation prefix, if necessary.
80if $test X"$prefix" != X"$installprefix"; then
81 installsitearch=`echo $sitearchexp | sed 's#^$prefix#$installprefix#'`
82else
83 installsitearch="$sitearchexp"
84fi
85