source: testsuite-tools/common/expect.xml@ 672fd9b

Last change on this file since 672fd9b was 9222d1bf, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Added a sed to fix the build of expect primarily on multilib builds because it was always including $prefix/lib. Now it includes $libdir.

  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[bf8c11f]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
[5be6331]8<sect1 id="ch-testsuite-tools-expect" role="wrap">
[bf8c11f]9 <?dbhtml filename="expect.html"?>
10
11 <title>Expect-&expect-version;</title>
12
[5be6331]13 <indexterm zone="ch-testsuite-tools-expect">
[bf8c11f]14 <primary sortas="a-Expect">Expect</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Expect package contains a program for carrying out scripted
21 dialogues with other interactive programs.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Expect</title>
27
[9222d1bf]28 <para os="s1">The following sed prevents searching for libraries in
29 /tools/lib. It will now search in ${libdir}:</para>
30
31<screen os="s2"><userinput>sed -i '/EXP_LIB_SPEC=/s@${exec_prefix}/lib@${libdir}@' configure</userinput></screen>
32
33 <para os="a">Fix a bug that can result in false failures during the GCC
[bf8c11f]34 test suite run:</para>
35
36<screen os="b"><userinput>patch -Np1 -i ../&expect-spawn-patch;</userinput></screen>
37
38 <para os="c">Now prepare Expect for compilation:</para>
39
[e7732d7]40<screen os="d"><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \
[d1a3111]41 --with-tclinclude=/tools/include</userinput></screen>
[bf8c11f]42
[e7732d7]43 <variablelist os="e">
[bf8c11f]44 <title>The meaning of the configure options:</title>
45
[f32f537]46 <varlistentry os="e1">
[bf8c11f]47 <term><parameter>--with-tcl=/tools/lib</parameter></term>
48 <listitem>
49 <para>This ensures that the configure script finds the Tcl
[5be6331]50 installation in the temporary testsuite-tools location.</para>
[bf8c11f]51 </listitem>
52 </varlistentry>
53
[f32f537]54 <varlistentry os="e2">
[517ec63]55 <term><parameter>--with-tclinclude=/tools/include</parameter></term>
[bf8c11f]56 <listitem>
[517ec63]57 <para>This explicitly tells Expect where to find Tcl's internal headers.
58 Using this option avoids conditions
[bf8c11f]59 where <command>configure</command> fails because it cannot
60 automatically discover the location of the Tcl source directory.</para>
61 </listitem>
62 </varlistentry>
63
64 </variablelist>
65
[e7732d7]66 <para os="f">Build the package:</para>
[bf8c11f]67
[e7732d7]68<screen os="g"><userinput>make</userinput></screen>
[bf8c11f]69
[e7732d7]70 <para os="i">Install the package:</para>
[bf8c11f]71
[e7732d7]72<screen os="j"><userinput>make SCRIPTS="" install</userinput></screen>
[bf8c11f]73
[e7732d7]74 <variablelist os="k">
[bf8c11f]75 <title>The meaning of the make parameter:</title>
76
77 <varlistentry>
78 <term><parameter>SCRIPTS=""</parameter></term>
79 <listitem>
80 <para>This prevents installation of the supplementary expect
81 scripts, which are not needed.</para>
82 </listitem>
83 </varlistentry>
84
85 </variablelist>
86
87 </sect2>
88
89 <sect2 id="contents-expect" role="content">
90 <title>Contents of Expect</title>
91
92 <segmentedlist>
93 <segtitle>Installed program</segtitle>
94 <segtitle>Installed library</segtitle>
95
96 <seglistitem>
97 <seg>expect</seg>
98 <seg>libexpect-&expect-lib-version;.a</seg>
99 </seglistitem>
100 </segmentedlist>
101
102 <variablelist>
103 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
104 <?dbfo list-presentation="list"?>
105 <?dbhtml list-presentation="table"?>
106
107 <varlistentry id="expect">
108 <term><command>expect</command></term>
109 <listitem>
110 <para>Communicates with other interactive programs according
111 to a script</para>
[5be6331]112 <indexterm zone="ch-testsuite-tools-expect expect">
[bf8c11f]113 <primary sortas="b-expect">expect</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
118 <varlistentry id="libexpect">
119 <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term>
120 <listitem>
121 <para>Contains functions that allow Expect to be used as a Tcl
122 extension or to be used directly from C or C++ (without Tcl)</para>
[5be6331]123 <indexterm zone="ch-testsuite-tools-expect libexpect">
[bf8c11f]124 <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
129 </variablelist>
130
131 </sect2>
132
133</sect1>
Note: See TracBrowser for help on using the repository browser.