瀏覽代碼

Added --with-tclinclude flag to Expect build. Bug 1580.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6134 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Jeremy Huntwork 20 年之前
父節點
當前提交
e0ef857ffc
共有 3 個文件被更改,包括 21 次插入1 次删除
  1. 3 0
      chapter01/changelog.xml
  2. 13 1
      chapter05/expect.xml
  3. 5 0
      chapter05/tcl.xml

+ 3 - 0
chapter01/changelog.xml

@@ -89,6 +89,9 @@ First a summary, then a detailed log.</para>
 </itemizedlist>
 </listitem>
 
+<listitem><para>June 23rd, 2005 [jhuntwork]: Added --with-tclinclude in Expect build
+to ensure it finds the Tcl headers.</para></listitem>
+
 <listitem><para>June 23rd, 2005 [archaic]: Rewrote the inputrc page.
 </para></listitem>
 

+ 13 - 1
chapter05/expect.xml

@@ -38,7 +38,8 @@ suite run:</para>
 
 <para>Now prepare Expect for compilation:</para>
 
-<screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no</userinput></screen>
+<screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \
+   --with-tclinclude=$TCLPATH --with-x=no</userinput></screen>
 
 <para>The meaning of the configure options:</para>
 
@@ -50,6 +51,13 @@ the temporary tools location instead of possibly locating an existing
 one on the host system.</para></listitem>
 </varlistentry>
 
+<varlistentry>
+<term><parameter>--with-tclinclude=$TCLPATH</parameter></term>
+<listitem><para>This explicitly tells Expect where to find Tcl's source directory
+containing its internal headers. Using this option avoids conditions where configure fails
+because it hasn't automatically discovered the location of the Tcl source directory.</para></listitem>
+</varlistentry>
+
 <varlistentry>
 <term><parameter>--with-x=no</parameter></term>
 <listitem><para>This tells the configure script not to search for Tk
@@ -82,6 +90,10 @@ scripts, which are not needed.</para></listitem>
 </varlistentry>
 </variablelist>
 
+<para>Now remove the TCLPATH variable:</para>
+
+<screen><userinput>unset TCLPATH</userinput></screen>
+
 <para>The source directories of both Tcl and Expect can now be removed.</para>
 
 </sect2>

+ 5 - 0
chapter05/tcl.xml

@@ -68,6 +68,11 @@ Details on the <envar>TZ</envar> environment variable is provided in
 <filename class="directory">tcl&tcl-version;</filename> source directory yet, as the next package
 will need its internal headers.</para></warning>
 
+<para>Set a variable containing the full path of the current directory.
+The next package, Expect, will use this variable to find Tcl's headers.</para>
+
+<screen><userinput>export TCLPATH=`pwd`</userinput></screen>
+
 <para>Now make a necessary symbolic link:</para>
 
 <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen>