Author: jhuntwork Date: 2005-06-25 05:24:19 -0600 (Sat, 25 Jun 2005) New Revision: 6160
Modified: branches/6.1/BOOK/chapter01/changelog.xml branches/6.1/BOOK/chapter05/expect.xml branches/6.1/BOOK/chapter05/tcl.xml Log: Added --with-tclinclude flag to Expect. (merged from trunk r6134, r6135 & r6140) Modified: branches/6.1/BOOK/chapter01/changelog.xml =================================================================== --- branches/6.1/BOOK/chapter01/changelog.xml 2005-06-25 09:58:59 UTC (rev 6159) +++ branches/6.1/BOOK/chapter01/changelog.xml 2005-06-25 11:24:19 UTC (rev 6160) @@ -87,6 +87,9 @@ </itemizedlist> </listitem> +<listitem><para>June 25th, 2005 [jhuntwork]: Added a --with-tclinclude flag to +Expect build to ensure that it knows where to find the Tcl source directory.</para></listitem> + <listitem><para>June 25th, 2005 [matthew]: Updated to the latest version of the mktemp tempfile patch, which supports building outside the source directory</para></listitem> Modified: branches/6.1/BOOK/chapter05/expect.xml =================================================================== --- branches/6.1/BOOK/chapter05/expect.xml 2005-06-25 09:58:59 UTC (rev 6159) +++ branches/6.1/BOOK/chapter05/expect.xml 2005-06-25 11:24:19 UTC (rev 6160) @@ -36,7 +36,8 @@ <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> @@ -49,6 +50,14 @@ </varlistentry> <varlistentry> +<term><parameter>--with-tclinclude=$TCLPATH</parameter></term> +<listitem><para>This explicitly tells Expect where to find Tcl's source +directory and internal headers. Using this option avoids conditions +where <command>configure</command> 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 (the Tcl GUI component) or the X Window System libraries, both of @@ -80,6 +89,10 @@ </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> <beginpage/> Modified: branches/6.1/BOOK/chapter05/tcl.xml =================================================================== --- branches/6.1/BOOK/chapter05/tcl.xml 2005-06-25 09:58:59 UTC (rev 6159) +++ branches/6.1/BOOK/chapter05/tcl.xml 2005-06-25 11:24:19 UTC (rev 6160) @@ -66,6 +66,12 @@ <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>cd .. +export TCLPATH=`pwd`</userinput></screen> + <para>Now make a necessary symbolic link:</para> <screen><userinput>ln -s tclsh8.4 /tools/bin/tclsh</userinput></screen> -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
