source: clfs-sysroot/BOOK/final-system/common/bison.xml @ 59fb197

Last change on this file since 59fb197 was 02095ae, checked in by Jim Gifford <clfs@…>, 18 years ago

r3633@server (orig r1649): jciccone | 2006-05-25 16:48:42 -0700
Added the Initial clfs-2.0 branch using sysroot builds.

  • Property mode set to 100644
File size: 3.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3  "http://www.oasis-open.org/docbook/xml/4.4/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>./configure --prefix=/usr --host=${LFS_TARGET}</userinput></screen>
30
31    <para os="b1">The configure system causes bison to be built without support
32    for internationalization of error messages if a <command>bison</command>
33    program is not already in $PATH.  The following addition will correct
34    this:</para>
35
36<screen os="b2"><userinput>echo '#define YYENABLE_NLS 1' >> config.h</userinput></screen> 
37
38    <para os="c">Compile the package:</para>
39
40<screen os="d"><userinput>make</userinput></screen>
41
42    <para os="e">Install the package:</para>
43
44<screen os="f"><userinput>make DESTDIR=${LFS} install</userinput></screen>
45
46  </sect2>
47
48  <sect2 id="contents-bison" role="content">
49    <title>Contents of Bison</title>
50
51    <segmentedlist>
52      <segtitle>Installed programs</segtitle>
53      <segtitle>Installed library</segtitle>
54
55      <seglistitem>
56        <seg>bison and yacc</seg>
57        <seg>liby.a</seg>
58      </seglistitem>
59    </segmentedlist>
60
61    <variablelist>
62      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
63      <?dbfo list-presentation="list"?>
64      <?dbhtml list-presentation="table"?>
65
66      <varlistentry id="bison">
67        <term><command>bison</command></term>
68        <listitem>
69          <para>Generates, from a series of rules, a program for analyzing
70          the structure of text files; Bison is a replacement for Yacc (Yet
71          Another Compiler Compiler)</para>
72          <indexterm zone="ch-system-bison bison">
73            <primary sortas="b-bison">bison</primary>
74          </indexterm>
75        </listitem>
76      </varlistentry>
77
78      <varlistentry id="yacc">
79        <term><command>yacc</command></term>
80        <listitem>
81          <para>A wrapper for <command>bison</command>, meant for programs that
82          still call <command>yacc</command> instead of <command>bison</command>;
83          it calls <command>bison</command> with the <option>-y</option>
84          option</para>
85          <indexterm zone="ch-system-bison yacc">
86            <primary sortas="b-yacc">yacc</primary>
87          </indexterm>
88        </listitem>
89      </varlistentry>
90
91      <varlistentry id="liby.a">
92        <term><filename class="libraryfile">liby.a</filename></term>
93        <listitem>
94          <para>The Yacc library containing implementations of Yacc-compatible
95          <emphasis>yyerror</emphasis> and <emphasis>main</emphasis> functions;
96          this library is normally not very useful, but POSIX requires it</para>
97          <indexterm zone="ch-system-bison liby.a">
98            <primary sortas="c-liby.a">liby.a</primary>
99          </indexterm>
100        </listitem>
101      </varlistentry>
102
103    </variablelist>
104
105  </sect2>
106
107</sect1>
Note: See TracBrowser for help on using the repository browser.