This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add sin6_scope_id probe (LeoNerd)
[metaconfig.git] / U / modified / yacc.U
1 ?RCS: $Id: yacc.U,v 3.0.1.1 1994/05/13 15:28:48 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: yacc.U,v $
12 ?RCS: Revision 3.0.1.1  1994/05/13  15:28:48  ram
13 ?RCS: patch27: added byacc as another alternative (ADO)
14 ?RCS:
15 ?RCS: Revision 3.0  1993/08/18  12:10:03  ram
16 ?RCS: Baseline for dist 3.0 netwide release.
17 ?RCS:
18 ?MAKE:yacc yaccflags: Guess Myread Oldconfig byacc bison cat test _exe
19 ?MAKE:  -pick add $@ %<
20 ?S:yacc:
21 ?S:     This variable holds the name of the compiler compiler we
22 ?S:     want to use in the Makefile. It can be yacc, byacc, or bison -y.
23 ?S:.
24 ?S:yaccflags:
25 ?S:     This variable contains any additional yacc flags desired by the
26 ?S:     user.  It is up to the Makefile to use this.
27 ?S:.
28 ?T:comp
29 : determine compiler compiler
30 case "$yacc" in
31 '')
32         dflt=yacc;;
33 *)
34         dflt="$yacc";;
35 esac
36 echo " "
37 comp='yacc'
38 if $test -f "$byacc$_exe"; then
39         dflt="$byacc"
40         comp="byacc or $comp"
41 fi
42 if $test -f "$bison$_exe"; then
43         comp="$comp or bison -y"
44 fi
45 rp="Which compiler compiler ($comp) shall I use?"
46 . ./myread
47 yacc="$ans"
48 case "$yacc" in
49 *bis*)
50         case "$yacc" in
51         *-y*) ;;
52         *)
53                 yacc="$yacc -y"
54                 echo "(Adding -y option to bison to get yacc-compatible behaviour.)"
55                 ;;
56         esac
57         ;;
58 esac
59
60 @if yaccflags
61 : see if we need extra yacc flags
62 dflt="$yaccflags"
63 case "$dflt" in
64 '') dflt=none;;
65 esac
66 $cat <<EOH
67
68 Your yacc program may need extra flags to normally process the parser sources.
69 Do NOT specify any -d or -v flags here, since those are explicitely known
70 by the various Makefiles. However, if your machine has strange/undocumented
71 options (like -Sr# on SCO to specify the maximum number of grammar rules), then
72 please add them here.  To use no flags, specify the word "none".
73
74 EOH
75 rp="Any additional yacc flags?"
76 . ./myread
77 case "$ans" in
78 none) yaccflags='';;
79 *) yaccflags="$ans";;
80 esac
81
82 @end