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">
8 <sect1 id="ch-system-bc" role="wrap">
9 <?dbhtml filename="bc.html"?>
11 <sect1info condition="script">
12 <productname>bc</productname>
13 <productnumber>&bc-version;</productnumber>
14 <address>&bc-url;</address>
17 <title>Bc-&bc-version;</title>
19 <indexterm zone="ch-system-bc">
20 <primary sortas="a-Bc">Bc</primary>
23 <sect2 role="package">
26 <para>The Bc package contains an arbitrary precision numeric processing
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
34 <seg>&bc-fin-sbu;</seg>
35 <seg>&bc-fin-du;</seg>
41 <sect2 role="installation">
42 <title>Installation of Bc</title>
44 <para>Prepare Bc for compilation:</para>
46 <screen><userinput remap="configure">PREFIX=/usr CC=gcc ./configure.sh -G -O3</userinput></screen>
49 <title>The meaning of the configure options:</title>
52 <term><parameter>CC=gcc</parameter></term>
54 <para>This parameter specifies the compiler to use.</para>
59 <term><parameter>-O3</parameter></term>
61 <para>Specify the optimization to use.</para>
66 <term><parameter>-G</parameter></term>
68 <para>Omit parts of the test suite that won't work
69 without a GNU bc present.</para>
74 <para>Compile the package:</para>
76 <screen><userinput remap="make">make</userinput></screen>
78 <para>To test bc, run:</para>
80 <screen><userinput remap="test">make test</userinput></screen>
83 <para>Install the package:</para>
85 <screen><userinput remap="install">make install</userinput></screen>
89 <sect2 id="contents-bc" role="content">
90 <title>Contents of Bc</title>
93 <segtitle>Installed programs</segtitle>
101 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
102 <?dbfo list-presentation="list"?>
103 <?dbhtml list-presentation="table"?>
105 <varlistentry id="bc">
106 <term><command>bc</command></term>
108 <para>A command line calculator</para>
109 <indexterm zone="ch-system-bc bc">
110 <primary sortas="b-bc">bc</primary>
115 <varlistentry id="dc">
116 <term><command>dc</command></term>
118 <para>A reverse-polish command line calculator</para>
119 <indexterm zone="ch-system-bc dc">
120 <primary sortas="b-dc">dc</primary>