source: clfs-sysroot/BOOK/final-system/common/readline.xml@ b526bf9

Last change on this file since b526bf9 was 2b4b9f4, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Updated Readline to 6.0.

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[02095ae]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c439b8a]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[02095ae]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-readline" role="wrap">
9 <?dbhtml filename="readline.html"?>
10
11 <title>Readline-&readline-version;</title>
12
13 <indexterm zone="ch-system-readline">
14 <primary sortas="a-Readline">Readline</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Readline package is a set of libraries that offers command-line
21 editing and history capabilities.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Readline</title>
27
[2b4b9f4]28 <para os="s1">This option forces Readline to link against the
29 <filename class="libraryfile">libncursesw</filename> library:</para>
[8765e79]30
[2b4b9f4]31<screen os="s2"><userinput>sed -i 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncursesw:' support/shobj-conf</userinput></screen>
[8765e79]32
[02095ae]33 <para os="a">Prepare Readline for compilation:</para>
34
[cee2ca2]35<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
36 --prefix=/usr --libdir=/lib</userinput></screen>
[02095ae]37
38 <para os="c">Compile the package:</para>
39
[2b4b9f4]40<screen os="d"><userinput>make</userinput></screen>
[02095ae]41
[2b4b9f4]42 <para os="e">Install the package:</para>
[02095ae]43
[2b4b9f4]44<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
[02095ae]45
[2b4b9f4]46 <para os="h">Install the documentation:</para>
[02095ae]47
[2b4b9f4]48<screen os="i"><userinput>make install-doc</userinput></screen>
[02095ae]49
[2b4b9f4]50 <para os="j">Now move the static libraries to a more appropriate location:</para>
[02095ae]51
[2b4b9f4]52<screen os="k"><userinput>mv -v ${CLFS}/lib/lib{readline,history}.a ${CLFS}/usr/lib</userinput></screen>
[02095ae]53
[2b4b9f4]54 <para os="l">Next, remove the <filename class="extension">.so</filename>
[02095ae]55 files in <filename class="directory">/lib</filename> and relink them into
56 <filename class="directory">/usr/lib</filename>.</para>
57
[2b4b9f4]58<screen os="m"><userinput>rm -v ${CLFS}/lib/lib{readline,history}.so
59ln -sfv ../../lib/libreadline.so.&readline-version2; ${CLFS}/usr/lib/libreadline.so
60ln -sfv ../../lib/libhistory.so.&readline-version2; ${CLFS}/usr/lib/libhistory.so</userinput></screen>
[02095ae]61
62 </sect2>
63
64 <sect2 id="contents-readline" role="content">
65 <title>Contents of Readline</title>
66
67 <segmentedlist>
68 <segtitle>Installed libraries</segtitle>
69
70 <seglistitem>
71 <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
72 </seglistitem>
73 </segmentedlist>
74
75 <variablelist>
76 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
77 <?dbfo list-presentation="list"?>
78 <?dbhtml list-presentation="table"?>
79
80 <varlistentry id="libhistory">
81 <term><filename class="libraryfile">libhistory</filename></term>
82 <listitem>
83 <para>Provides a consistent user interface
84 for recalling lines of history</para>
85 <indexterm zone="ch-system-readline libhistory">
86 <primary sortas="c-libhistory">libhistory</primary>
87 </indexterm>
88 </listitem>
89 </varlistentry>
90
91 <varlistentry id="libreadline">
92 <term><filename class="libraryfile">libreadline</filename></term>
93 <listitem>
94 <para>Aids in the consistency of user interface
95 across discrete programs that need to provide a command line
96 interface</para>
97 <indexterm zone="ch-system-readline libreadline">
98 <primary sortas="c-libreadline">libreadline</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.