Commit | Line | Data |
---|---|---|
edd6115f JH |
1 | ?RCS: $Id: lib.U,v 3.0.1.3 1995/09/25 09:16:47 ram Exp $ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1991-1993, Raphael Manfredi | |
4 | ?RCS: | |
5 | ?RCS: You may redistribute only under the terms of the Artistic Licence, | |
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 Licence; 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: lib.U,v $ | |
12 | ?RCS: Revision 3.0.1.3 1995/09/25 09:16:47 ram | |
13 | ?RCS: patch59: unit is now forced to the top of Configure, if possible | |
14 | ?RCS: | |
15 | ?RCS: Revision 3.0.1.2 1995/01/30 14:38:08 ram | |
16 | ?RCS: patch49: can now handle installation prefix changes (from WED) | |
17 | ?RCS: | |
18 | ?RCS: Revision 3.0.1.1 1994/08/29 16:27:40 ram | |
19 | ?RCS: patch32: now uses installation prefix to set the default | |
20 | ?RCS: | |
21 | ?RCS: Revision 3.0 1993/08/18 12:08:56 ram | |
22 | ?RCS: Baseline for dist 3.0 netwide release. | |
23 | ?RCS: | |
24 | ?LINT: empty | |
25 | ?X:?MAKE:lib libexp: Getfile Loc Oldconfig Prefixit Prefixup prefixexp | |
26 | ?X:?MAKE: -pick add $@ %< | |
27 | ?X:?Y:TOP | |
28 | ?X:?S:lib: | |
29 | ?X:?S: This variable holds the name of the directory in which the user wants | |
30 | ?X:?S: to put public library files for the package in question. It is most | |
31 | ?X:?S: often a local directory such as /usr/local/lib. Programs using this | |
32 | ?X:?S: variable must be prepared to deal with filename expansion. | |
33 | ?X:?S:. | |
34 | ?X:?S:libexp: | |
35 | ?X:?S: This variable is the same as the lib variable, but is filename expanded | |
36 | ?X:?S: at configuration time, for convenient use in your makefiles. | |
37 | ?X:?S:. | |
38 | ?X:: determine where public libraries go | |
39 | ?X:set lib lib | |
40 | ?X:eval $prefixit | |
41 | ?X:case "$lib" in | |
42 | ?X:'') | |
43 | ?X: dflt=`./loc . "." $prefixexp/lib /usr/local/lib /usr/lib /lib` | |
44 | ?X: set dflt | |
45 | ?X: eval $prefixup | |
46 | ?X: ;; | |
47 | ?X:*) dflt="$lib";; | |
48 | ?X:esac | |
49 | ?X:echo " " | |
50 | ?X:fn=d~ | |
51 | ?X:rp='Where do you want to put the public libraries?' | |
52 | ?X:. ./getfile | |
53 | ?X:lib="$ans" | |
54 | ?X:libexp="$ansexp" | |
55 |