Commit | Line | Data |
2304df62 |
1 | ?X: These units are based on the ones supplied with dist-3.0 |
2 | ?X: patchlevel 22. They have been changed or enhanced to work with |
3 | ?X: perl5alpha. I would appreciate hearing about any changes, |
4 | ?X: corrections, or enhancements. |
5 | ?X: Andy Dougherty doughera@lafcol.lafayette.edu |
6 | ?X: Dept. of Physics |
7 | ?X: Lafayette College |
8 | ?X: Easton, PA 18042-1782 |
9 | ?X: Sat Apr 2 15:45:17 EST 1994 |
10 | ?RCS: $Id: libyacc.U,v 3.0.1.1 1994/01/24 14:13:49 ram Exp $ |
11 | ?RCS: |
12 | ?RCS: Copyright (c) 1991-1993, Raphael Manfredi |
13 | ?RCS: |
14 | ?RCS: You may redistribute only under the terms of the Artistic Licence, |
15 | ?RCS: as specified in the README file that comes with the distribution. |
16 | ?RCS: You may reuse parts of this distribution only within the terms of |
17 | ?RCS: that same Artistic Licence; a copy of which may be found at the root |
18 | ?RCS: of the source tree for dist 3.0. |
19 | ?RCS: |
20 | ?RCS: $Log: libyacc.U,v $ |
21 | ?RCS: Revision 3.0.1.1 1994/01/24 14:13:49 ram |
22 | ?RCS: patch16: un-obsoleted this unit for smooth yacc compilations |
23 | ?RCS: |
24 | ?RCS: Revision 3.0 1993/08/18 12:09:04 ram |
25 | ?RCS: Baseline for dist 3.0 netwide release. |
26 | ?RCS: |
27 | ?MAKE:libyacc: Loc yacc libpth test |
28 | ?MAKE: -pick add $@ %< |
29 | ?S:libyacc: |
30 | ?S: This variable contains the argument to pass to the loader in order |
31 | ?S: to get the yacc library routines. If there is no yacc or yacc |
32 | ?S: library, it is null. |
33 | ?S:. |
34 | ?T:xxx |
35 | : see if we should include -ly |
36 | echo " " |
37 | case "$yacc" in |
38 | *byacc*) |
39 | echo "You are using byacc, so I won't look for a yacc library." >&4 |
40 | libyacc='' |
41 | ;; |
42 | *yacc) |
43 | if $test -r /usr/lib/liby.a || $test -r /usr/local/lib/liby.a ; then |
44 | echo "-ly found." >&4 |
45 | libyacc='-ly' |
46 | else |
47 | xxx=`./loc liby.a x $libpth` |
48 | case "$xxx" in |
49 | x) |
50 | echo "No yacc library found." >&4 |
51 | libyacc='' |
52 | ;; |
53 | *) |
54 | echo "yacc library found in $xxx." >&4 |
55 | libyacc="$xxx" |
56 | ;; |
57 | esac |
58 | fi |
59 | ;; |
60 | *bison*) |
61 | echo "You are using bison, so I won't look for a yacc library." >&4 |
62 | libyacc='' |
63 | ;; |
64 | *) |
65 | echo "You don't seem to have yacc, so I won't look for the yacc library." >&4 |
66 | libyacc='' |
67 | ;; |
68 | esac |
69 | |