Commit | Line | Data |
---|---|---|
d8875586 MBT |
1 | ?RCS: $Id: libflex.U 1 2006-08-24 12:32:52Z rmanfredi $ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1991-1997, 2004-2006, 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 4.0. | |
10 | ?RCS: | |
11 | ?RCS: $Log: libflex.U,v $ | |
12 | ?RCS: Revision 3.0.1.3 1997/02/28 15:57:48 ram | |
13 | ?RCS: patch61: replaced .a with $_a all over the place | |
14 | ?RCS: | |
15 | ?RCS: Revision 3.0.1.2 1994/05/06 15:07:02 ram | |
16 | ?RCS: patch23: now uses full library path instead of -l notation | |
17 | ?RCS: | |
18 | ?RCS: Revision 3.0.1.1 1994/01/24 14:13:25 ram | |
19 | ?RCS: patch16: un-obsoleted this unit to allow smooth lex/flex compilations | |
20 | ?RCS: | |
21 | ?RCS: Revision 3.0 1993/08/18 12:08:59 ram | |
22 | ?RCS: Baseline for dist 3.0 netwide release. | |
23 | ?RCS: | |
24 | ?MAKE:libflex: Loc lex libpth _a | |
25 | ?MAKE: -pick add $@ %< | |
26 | ?S:libflex: | |
27 | ?S: This variable contains the argument to pass to the loader in order | |
28 | ?S: to get the flex/lex library routines. If there is no flex or flex | |
29 | ?S: library, it is null. | |
30 | ?S:. | |
31 | ?T:xxx | |
32 | : see if we should include -lfl | |
33 | echo " " | |
34 | case "$lex" in | |
35 | *flex) | |
36 | xxx=`./loc libfl$_a x $libpth` | |
37 | case "$xxx" in | |
38 | x) | |
39 | echo "No flex library found." >&4 | |
40 | libflex='' | |
41 | ;; | |
42 | *) | |
43 | echo "flex library found in $xxx." >&4 | |
44 | libflex="$xxx" | |
45 | ;; | |
46 | esac | |
47 | ;; | |
48 | *lex) | |
49 | xxx=`./loc libl$_a x $libpth` | |
50 | case "$xxx" in | |
51 | x) | |
52 | echo "No lex library found." >&4 | |
53 | libflex='' | |
54 | ;; | |
55 | *) | |
56 | echo "lex library found in $xxx." >&4 | |
57 | libflex="$xxx" | |
58 | ;; | |
59 | esac | |
60 | ;; | |
61 | *) | |
62 | echo "You don't seem to have lex or flex, so I won't look for libraries." >&4 | |
63 | ;; | |
64 | esac | |
65 |