~ubuntu-branches/ubuntu/natty/ibm-3270/natty

« back to all changes in this revision

Viewing changes to tcl3270/html/Build.html

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2009-12-14 11:48:53 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091214114853-mywixml32hct9jr1
Tags: 3.3.10ga4-2
* Fix section to match override.
* Use debhelper compat level 7.
* Use 3.0 (quilt) source format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
<pre>&nbsp;&nbsp;&nbsp; make install</pre>
17
17
    
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>
27
 
 
28
 
<pre>&nbsp;&nbsp;&nbsp; ./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.&nbsp; For example 
34
 
(using bash, ksh, or sh):  
35
 
<pre>&nbsp;&nbsp;&nbsp; ./configure CPPFLAGS=-I/auto/unsupported/tcl LDFLAGS=-L/auto/unsupported/lib</pre>
36
 
 
37
 
<pre></pre>
38
 
  <i>tcl3270</i> has <b>not</b> been tested with versions of tcl other than
39
 
 8.2, 8.3 and 8.4.  
40
 
<h2> Using Extended Tcl (TclX)</h2>
41
 
  <i>tcl3270</i> can also use Extended Tcl (TclX).&nbsp; To use Extended
42
 
Tcl, pass the <tt>--with-tclx</tt> option to <tt>configure</tt>, e.g.:  
43
 
<blockquote>    
44
 
  <pre>./configure --with-tclx</pre>
45
 
  </blockquote>
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.&nbsp;
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>:  
51
 
<blockquote>    
52
 
  <pre>./configure --with-tclx=8.2</pre>
53
 
  </blockquote>
54
 
    
 
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.
 
23
 
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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;./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:
62
35
 <br>