[519ee45] | 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-tools-expect" role="wrap">
|
---|
| 9 | <?dbhtml filename="expect.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Expect-&expect-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-tools-expect">
|
---|
| 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 | <segmentedlist>
|
---|
| 24 | <segtitle>&buildtime;</segtitle>
|
---|
| 25 | <segtitle>&diskspace;</segtitle>
|
---|
| 26 |
|
---|
| 27 | <seglistitem>
|
---|
| 28 | <seg>&expect-ch5-sbu;</seg>
|
---|
| 29 | <seg>&expect-ch5-du;</seg>
|
---|
| 30 | </seglistitem>
|
---|
| 31 | </segmentedlist>
|
---|
| 32 |
|
---|
| 33 | </sect2>
|
---|
| 34 |
|
---|
| 35 | <sect2 role="installation">
|
---|
| 36 | <title>Installation of Expect</title>
|
---|
| 37 |
|
---|
| 38 | <para>First, fix a bug that can result in false failures during the GCC test
|
---|
| 39 | suite run:</para>
|
---|
| 40 |
|
---|
| 41 | <screen><userinput>patch -Np1 -i ../&expect-spawn-patch;</userinput></screen>
|
---|
| 42 |
|
---|
| 43 | <para>Now prepare Expect for compilation:</para>
|
---|
| 44 |
|
---|
| 45 | <screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \
|
---|
| 46 | --with-tclinclude=/tools/include --with-x=no</userinput></screen>
|
---|
| 47 |
|
---|
| 48 | <variablelist>
|
---|
| 49 | <title>The meaning of the configure options:</title>
|
---|
| 50 |
|
---|
| 51 | <varlistentry>
|
---|
| 52 | <term><parameter>--with-tcl=/tools/lib</parameter></term>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>This ensures that the configure script finds the Tcl
|
---|
| 55 | installation in the temporary tools location instead of possibly
|
---|
| 56 | locating an existing one on the host system.</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </varlistentry>
|
---|
| 59 |
|
---|
| 60 | <varlistentry>
|
---|
| 61 | <term><parameter>--with-tclinclude=/tools/include</parameter></term>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>This explicitly tells Expect where to find Tcl's internal
|
---|
| 64 | headers. Using this option avoids conditions where
|
---|
| 65 | <command>configure</command> fails because it cannot automatically
|
---|
| 66 | discover the location of Tcl's headers.</para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </varlistentry>
|
---|
| 69 |
|
---|
| 70 | <varlistentry>
|
---|
| 71 | <term><parameter>--with-x=no</parameter></term>
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>This tells the configure script not to search for Tk (the
|
---|
| 74 | Tcl GUI component) or the X Window System libraries, both of which
|
---|
| 75 | may reside on the host system but will not exist in the temporary
|
---|
| 76 | environment.</para>
|
---|
| 77 | </listitem>
|
---|
| 78 | </varlistentry>
|
---|
| 79 |
|
---|
| 80 | </variablelist>
|
---|
| 81 |
|
---|
| 82 | <para>Build the package:</para>
|
---|
| 83 |
|
---|
| 84 | <screen><userinput>make</userinput></screen>
|
---|
| 85 |
|
---|
| 86 | <para>To test the results, issue: <userinput>make test</userinput>.
|
---|
| 87 | Note that the Expect test suite is known to experience failures under
|
---|
| 88 | certain host conditions that are not within our control. Therefore,
|
---|
| 89 | test suite failures here are not surprising and are not considered
|
---|
| 90 | critical.</para>
|
---|
| 91 |
|
---|
| 92 | <para>Install the package:</para>
|
---|
| 93 |
|
---|
| 94 | <screen><userinput>make SCRIPTS="" install</userinput></screen>
|
---|
| 95 |
|
---|
| 96 | <variablelist>
|
---|
| 97 | <title>The meaning of the make parameter:</title>
|
---|
| 98 |
|
---|
| 99 | <varlistentry>
|
---|
| 100 | <term><parameter>SCRIPTS=""</parameter></term>
|
---|
| 101 | <listitem>
|
---|
| 102 | <para>This prevents installation of the supplementary Expect
|
---|
| 103 | scripts, which are not needed.</para>
|
---|
| 104 | </listitem>
|
---|
| 105 | </varlistentry>
|
---|
| 106 |
|
---|
| 107 | </variablelist>
|
---|
| 108 |
|
---|
| 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | <sect2 id="contents-expect" role="content">
|
---|
| 112 | <title>Contents of Expect</title>
|
---|
| 113 |
|
---|
| 114 | <segmentedlist>
|
---|
| 115 | <segtitle>Installed program</segtitle>
|
---|
| 116 | <segtitle>Installed library</segtitle>
|
---|
| 117 |
|
---|
| 118 | <seglistitem>
|
---|
| 119 | <seg>expect</seg>
|
---|
| 120 | <seg>libexpect-&expect-lib-version;.a</seg>
|
---|
| 121 | </seglistitem>
|
---|
| 122 | </segmentedlist>
|
---|
| 123 |
|
---|
| 124 | <variablelist>
|
---|
| 125 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 126 | <?dbfo list-presentation="list"?>
|
---|
| 127 | <?dbhtml list-presentation="table"?>
|
---|
| 128 |
|
---|
| 129 | <varlistentry id="expect">
|
---|
| 130 | <term><command>expect</command></term>
|
---|
| 131 | <listitem>
|
---|
| 132 | <para>Communicates with other interactive programs according
|
---|
| 133 | to a script</para>
|
---|
| 134 | <indexterm zone="ch-tools-expect expect">
|
---|
| 135 | <primary sortas="b-expect">expect</primary>
|
---|
| 136 | </indexterm>
|
---|
| 137 | </listitem>
|
---|
| 138 | </varlistentry>
|
---|
| 139 |
|
---|
| 140 | <varlistentry id="libexpect">
|
---|
| 141 | <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term>
|
---|
| 142 | <listitem>
|
---|
| 143 | <para>Contains functions that allow Expect to be used as a Tcl
|
---|
| 144 | extension or to be used directly from C or C++ (without Tcl)</para>
|
---|
| 145 | <indexterm zone="ch-tools-expect libexpect">
|
---|
| 146 | <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
|
---|
| 147 | </indexterm>
|
---|
| 148 | </listitem>
|
---|
| 149 | </varlistentry>
|
---|
| 150 |
|
---|
| 151 | </variablelist>
|
---|
| 152 |
|
---|
| 153 | </sect2>
|
---|
| 154 |
|
---|
| 155 | </sect1>
|
---|