16
16
<pre> make install</pre>
18
18
<h2> Notes on the Tcl Library</h2>
19
<i>tcl3270</i> uses Tcl 8.4 by default. It assumes that the header file
20
<tt>tcl.h</tt> has been installed in the directory <tt>/usr/local/include</tt>,
21
and that the Tcl library <tt>libtcl8.4.a</tt> has been installed in the
22
directory <tt>/usr/local/lib</tt>. If you have a different version of Tcl,
23
or it is installed in different directories, you will need to pass additional
24
options to the <tt>configure</tt> script.
25
<p>To use a different version of Tcl, pass the <tt>--with-tcl=</tt> option
26
to <tt>configure</tt>, specifying the other version, e.g: </p>
28
<pre> ./configure --with-tcl=8.2</pre>
29
If you have the Tcl header files or libraries installed in directories
30
other than those selected by default, you must pass these options to <tt>configure</tt>.
31
To specify a different header file directory, put a <tt>-I</tt> option in
32
the <tt>CPPFLAGS</tt> variable. To specify a different library directory,
33
put a <tt>-L</tt> option in the <tt>LDFLAGS</tt> variable. For example
34
(using bash, ksh, or sh):
35
<pre> ./configure CPPFLAGS=-I/auto/unsupported/tcl LDFLAGS=-L/auto/unsupported/lib</pre>
38
<i>tcl3270</i> has <b>not</b> been tested with versions of tcl other than
40
<h2> Using Extended Tcl (TclX)</h2>
41
<i>tcl3270</i> can also use Extended Tcl (TclX). To use Extended
42
Tcl, pass the <tt>--with-tclx</tt> option to <tt>configure</tt>, e.g.:
44
<pre>./configure --with-tclx</pre>
46
Note that Extended Tcl releases tend to lag behind standard Tcl releases;
47
when this was written, the current release of Extended Tcl was 8.2.
48
So, to build <i>tcl3270</i> with Extended Tcl 8.2, you must have Tcl 8.2
49
installed on your system, and you must explicitly specify the version of
50
TclX with <tt>configure</tt>:
52
<pre>./configure --with-tclx=8.2</pre>
19
<i>tcl3270</i> uses the <b>tclsh</b> command to determine the version of the
20
Tcl library to use. When you run the <tt>configure</tt> script, make sure that
21
your <tt>$PATH</tt> points to the version of <b>tclsh</b> that corresponds
22
to the version of the Tcl library you want <i>tcl3270</i> to use.
55
24
<h2> Notes for Solaris 2.x and Sun's C Compiler</h2>
56
25
Do not use Sun's BSD-compatibility compiler, <tt>/usr/ucb/cc</tt>. This
57
26
is good advice in general, but in particular, <i>tcl3270</i> will not build
58
27
with it. You must have a directory containing <tt>gcc</tt> (preferred) or
59
28
Sun's standard compiler in your $PATH ahead of <tt>/usr/ucb</tt>.
29
<h2>Building on FreeBSD</h2>
30
FreeBSD's <b>iconv</b> library is installed in <tt>/usr/local</tt>, so
31
the the following options must be passed to the <tt>configure</tt> script:
32
<pre> ./configure LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include</pre>
60
33
<h2> Summary of <tt>configure</tt> Options</h2>
61
34
The <i>tcl3270</i> <tt>configure</tt> script accepts the following options: