source: BOOK/final-system/common/bison.xml@ d8d2f8c

clfs-3.0.0-systemd systemd
Last change on this file since d8d2f8c was 6244322, checked in by William Harrington <kb0iic@…>, 10 years ago

Add M4=m4 during configure so bison and flex don't hardcode m4 to /tools/bin/m4. The m4 used will depend on the path or the M4 variable when running bison or flex in userland. In this case for a default CLFS build, it will be /usr/bin/m4.

  • Property mode set to 100644
File size: 3.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-bison" role="wrap">
9 <?dbhtml filename="bison.html"?>
10
11 <title>Bison-&bison-version;</title>
12
13 <indexterm zone="ch-system-bison">
14 <primary sortas="a-Bison">Bison</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Bison package contains a parser generator.</para>
21
22 </sect2>
23
24 <sect2 role="installation">
25 <title>Installation of Bison</title>
26
27 <para os="a">Prepare Bison for compilation:</para>
28
29<screen os="b"><userinput>M4=m4 ./configure --prefix=/usr</userinput></screen>
30
31 <para os="c">Compile the package:</para>
32
33<screen os="d"><userinput>make</userinput></screen>
34
35 <para os="e">To test the results, issue:</para>
36
37<screen os="e2"><userinput remap="test">make check</userinput></screen>
38
39 <para os="f">Install the package:</para>
40
41<screen os="g"><userinput>make install</userinput></screen>
42
43 </sect2>
44
45 <sect2 id="contents-bison" role="content">
46 <title>Contents of Bison</title>
47
48 <segmentedlist>
49 <segtitle>Installed programs</segtitle>
50 <segtitle>Installed library</segtitle>
51 <segtitle>Installed directory</segtitle>
52
53 <seglistitem>
54 <seg>bison and yacc</seg>
55 <seg>liby.a</seg>
56 <seg>/usr/share/bison</seg>
57 </seglistitem>
58 </segmentedlist>
59
60 <variablelist>
61 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
62 <?dbfo list-presentation="list"?>
63 <?dbhtml list-presentation="table"?>
64
65 <varlistentry id="bison">
66 <term><command>bison</command></term>
67 <listitem>
68 <para>Generates, from a series of rules, a program for analyzing
69 the structure of text files; Bison is a replacement for Yacc (Yet
70 Another Compiler Compiler)</para>
71 <indexterm zone="ch-system-bison bison">
72 <primary sortas="b-bison">bison</primary>
73 </indexterm>
74 </listitem>
75 </varlistentry>
76
77 <varlistentry id="yacc">
78 <term><command>yacc</command></term>
79 <listitem>
80 <para>A wrapper for <command>bison</command>, meant for programs that
81 still call <command>yacc</command> instead of <command>bison</command>;
82 it calls <command>bison</command> with the <option>-y</option>
83 option</para>
84 <indexterm zone="ch-system-bison yacc">
85 <primary sortas="b-yacc">yacc</primary>
86 </indexterm>
87 </listitem>
88 </varlistentry>
89
90 <varlistentry id="liby.a">
91 <term><filename class="libraryfile">liby.a</filename></term>
92 <listitem>
93 <para>The Yacc library containing implementations of Yacc-compatible
94 <emphasis>yyerror</emphasis> and <emphasis>main</emphasis> functions;
95 this library is normally not very useful, but POSIX requires it</para>
96 <indexterm zone="ch-system-bison liby.a">
97 <primary sortas="c-liby.a">liby.a</primary>
98 </indexterm>
99 </listitem>
100 </varlistentry>
101
102 </variablelist>
103
104 </sect2>
105
106</sect1>
Note: See TracBrowser for help on using the repository browser.