home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / emx09d.zip / INSTALL.DOC < prev    next >
Text File  |  1998-12-22  |  20KB  |  630 lines

  1. ===============================================================================
  2. install.doc       emx 0.9d     INSTALLATION GUIDE                   21-Dec-1998
  3. ===============================================================================
  4.                                      Copyright (c) 1990-1998 by Eberhard Mattes
  5.  
  6. Introduction
  7. ------------
  8.  
  9. Welcome to emx 0.9d, an environment for creating 32-bit programs for
  10. OS/2 (and DOS) with the GNU C compiler.
  11.  
  12. To use the GNU C compiler with emx, you need at least
  13.  
  14.   emxrt.zip     emx runtime package
  15.   emxdev1.zip   Files required for developing programs with emx (part 1)
  16.   emxdev2.zip   Files required for developing programs with emx (part 2)
  17.   gnudev1.zip   The GNU C compiler, the GNU debugger, and other tools (part 1)
  18.   gnudev2.zip   The GNU C compiler, the GNU debugger, and other tools (part 2)
  19.   gppdev1.zip   Additional files for GCC required for compiling C++ programs
  20.   gobjcdev.zip  Additional files for GCC required for compiling
  21.                 programs written in the Objective C language
  22.  
  23. and
  24.  
  25.   unzip.exe     a free program for unpacking ZIP files
  26.  
  27. The following packages are optional:
  28.  
  29.   emxview.zip   emx documentation in OS/2 .inf format
  30.   emxsrcd1.zip  Source for emx devlopment tools (part 1)
  31.   emxsrcd2.zip  Source for emx devlopment tools (part 2)
  32.   emxsrcr.zip   Source for the emx runtime package
  33.   emxample.zip  Sample programs
  34.   emxtest.zip   Test programs (used for testing emx and the libraries)
  35.   gnuview.zip   emxgnu.inf (emxgnu.doc in OS/2 .inf format)
  36.   gnudoc.zip    Documentation for GNU programs (texinfo sources etc.)
  37.   gnuinfo.zip   GNU texinfo (includes info file browser)
  38.   gnupat.zip    patches for GNU sources
  39.   gnusrc.zip    Patched GNU sources (info, termcap, GPPDEMID)
  40.   gbinusrc.zip  Patched GNU sources (ld, ar, nm, size, strip, objdump, gprof)
  41.   gccsrc1.zip   Patched GNU sources (GCC 2.8.1, part 1)
  42.   gccsrc2.zip   Patched GNU sources (GCC 2.8.1, part 2)
  43.   gccsrc3.zip   Patched GNU sources (GCC 2.8.1, part 3)
  44.   gdbsrc1.zip   Patched GNU sources (GDB 4.16, part 1)
  45.   gdbsrc2.zip   Patched GNU sources (GDB 4.16, part 2)
  46.   gppdev2.zip   libg++ 2.8.1.1a
  47.   gppsrc1.zip   Patched sources of libstdc++ 2.8.1.1
  48.   gppsrc2.zip   Patched sources of libg++ 2.8.1.1a
  49.   bsddev.zip    BSD programs (gprof) and libraries (curses etc.)
  50.   bsddoc.zip    Documentation for BSD libraries
  51.   bsdsrc.zip    Source for BSD libraries
  52.  
  53.  
  54. Preliminary tasks
  55. -----------------
  56.  
  57. IMPORTANT!  If there is an older version of emx already installed, you
  58. should delete the old version or rename the old directory.  Installing
  59. a new version over an old version is NOT RECOMMENDED.
  60.  
  61. Some of the emx batch files (such as texi2dvi.cmd) require REXX to be
  62. installed.  If you haven't installed REXX, use Selective Install to
  63. install it.  (Note to DOS users: REXX is OS/2's batch file language.)
  64.  
  65. emx 0.9c and later break some versions of Siegfried Hanisch's ScreenSaver.
  66. Either upgrade to version 2.6 or disable ScreenSaver before installing
  67. emx 0.9c or later.  Otherwise, your system will freeze.
  68.  
  69.  
  70. Installing the packages
  71. -----------------------
  72.  
  73. You should install all the packages on the same drive.  For instance,
  74. use
  75.  
  76.   c:
  77.   cd \
  78.   unzip emxrt
  79.  
  80. to install the emxrt.zip package on drive C:.  PKUNZIP cannot be used.
  81. All the files will be installed in the \emx subdirectory or in
  82. subdirectories thereof.  The other packages are installed the same
  83. way.  If the emx DLLs are in use, unzip won't be able to replace them.
  84. emxrt.doc (or emxrt.inf) explains how to use emxuzdll to update the
  85. DLLs while they are in use.
  86.  
  87. After unpacking the emx runtime and development system packages,
  88. you'll find further information in the following files:
  89.  
  90.   \emx\doc\COPYING.EMX          emx & library license, license overview
  91.   \emx\doc\COPYING              GNU General Public License
  92.   \emx\doc\install.doc          Installation guide
  93.   \emx\doc\emxrt.doc            User's guide to the emx runtime package
  94.   \emx\doc\emxdev.doc           Application developer's guide
  95.   \emx\doc\emxlib.doc           C library reference
  96.   \emx\doc\build.doc            Compiling the sources
  97.   \emx\doc\history.doc          Change log
  98.   \emx\doc\future.doc           Things to do
  99.   \emx\book\emxrt.inf           .inf version of emxrt.doc
  100.   \emx\book\emxdev.inf          .inf version of emxdev.doc (optional)
  101.   \emx\book\emxlib.inf          .inf version of emxlib.doc (optional)
  102.  
  103. After unpacking the GNU and BSD packages, you'll find further
  104. information in the following files:
  105.  
  106.   \emx\doc\COPYING              GNU General Public License
  107.   \emx\doc\COPYING.LIB          GNU Library General Public License
  108.   \emx\doc\COPYING.BSD          BSD license (for libraries bsd and curses)
  109.   \emx\doc\COPYING.SCP          Additional information for stdc++ library
  110.   \emx\doc\emxgnu.doc           GNU development tools information
  111.   \emx\doc\emxbsd.doc           BSD library information
  112.   \emx\doc\NEWS.GCC             Changes in GCC
  113.   \emx\doc\NEWS.GDB             Changes in GDB
  114.   \emx\gnu\doc\bounds\README    Richard W.M. Jones's bounds checking patches
  115.   \emx\book\emxgnu.inf          .inf version of emxgnu.doc (optional)
  116.   \emx\book\emxbsd.inf          .inf version of emxbsd.doc
  117.  
  118.  
  119. If you have used emx before, read history.doc first.
  120.  
  121.  
  122. Setting environment variables
  123. -----------------------------
  124.  
  125. OS/2 users should set the environment variables in config.sys, DOS
  126. users should set the environment variables in autoexec.bat.  Beware of
  127. blanks at the end of the lines!
  128.  
  129.  
  130. Developing programs on drive different from the installation drive
  131. ------------------------------------------------------------------
  132.  
  133. If you want to develop programs on a drive different from the drive
  134. where emx is installed, you have to set the C_INCLUDE_PATH and
  135. LIBRARY_PATH environment variables, for instance,
  136.  
  137.     set C_INCLUDE_PATH=c:/emx/include
  138.     set LIBRARY_PATH=c:/emx/lib
  139.  
  140. If you want to compile C++ programs, set CPLUS_INCLUDE_PATH as well:
  141.  
  142.     set CPLUS_INCLUDE_PATH=c:/emx/include/cpp;c:/emx/include
  143.  
  144. The genclass utility needs the following environment variable:
  145.  
  146.     set PROTODIR=c:/emx/include/cpp/gen
  147.  
  148. If you want to compile programs written in the Objective C language,
  149. set OBJC_INCLUDE_PATH as well:
  150.  
  151.     set OBJC_INCLUDE_PATH=c:/emx/include
  152.  
  153.  
  154. Speeding up compilation
  155. -----------------------
  156.  
  157. When compiling projects consisting of many modules (such as libraries)
  158. under OS/2, you can speed up compilation if you have enough memory by
  159. keeping GCC in memory.  For example, to keep GCC in memory for 5
  160. minutes, use
  161.  
  162.     set GCCLOAD=5
  163.  
  164. To make GCC use pipes instead of temporary files under OS/2, use
  165.  
  166.     set GCCOPT=-pipe
  167.  
  168.  
  169. Setting up termcap
  170. ------------------
  171.  
  172. To use GDB (the GNU debugger) and info (the GNU info browser) and other
  173. programs that use termcap, set the TERM and TERMCAP environment
  174. variables:
  175.  
  176.     set TERM=mono
  177.     set TERMCAP=c:/emx/etc/termcap.dat
  178.  
  179.  
  180. Setting up the info browser
  181. ---------------------------
  182.  
  183. Set the INFOPATH environment variable for info:
  184.  
  185.     set INFOPATH=c:/emx/info
  186.  
  187.  
  188. Setting up on-line documentation in OS/2 .inf format
  189. ----------------------------------------------------
  190.  
  191. To use the emx documentation in OS/2 .inf format, append c:\emx\book
  192. to the BOOKSHELF environment variable and define an environment
  193. variable which tells VIEW how to concatenate the .inf files.  Example:
  194.  
  195.     set BOOKSHELF=C:\OS2\BOOK;C:\EMX\BOOK
  196.     set EMXBOOK=emxdev.inf+emxlib.inf+emxgnu.inf+emxbsd.inf
  197.  
  198. (If you have not installed emxbsd.zip, omit `+emxbsd.inf' from EMXBOOK.)
  199.  
  200. To use the .inf files with EPM (the OS/2 Enhanced Editor), add the
  201. following line to your config.sys file:
  202.  
  203.     set HELPNDX=emxbook.ndx
  204.  
  205. If HELPNDX is already set in your config.sys file, add emxbook.ndx to
  206. the end of the HELPNDX variable, separated by a + character.
  207. Moreover, you should add c:\emx\book to the DPATH environment
  208. variable:
  209.  
  210.     set DPATH=...;c:\emx\book
  211.  
  212. where ... is the previous value of DPATH.
  213.  
  214.  
  215. Setting up on-line help for pmgdb
  216. ---------------------------------
  217.  
  218. To use pmgdb's on-line help, append c:\emx\help to the HELP
  219. environment variable.
  220.  
  221.  
  222. Finishing the installation
  223. --------------------------
  224.  
  225. To finish the installation, add c:\emx\bin (insert the correct drive
  226. letter) to your PATH.  Add c:\emx\dll (insert the correct drive
  227. letter) to the LIBPATH statement in your config.sys file.  Reboot your
  228. computer to enable the new LIBPATH statement and the new environment
  229. variables.
  230.  
  231.  
  232. Creating desktop objects
  233. ------------------------
  234.  
  235. After rebooting, you can create a folder containing icons for the
  236. on-line books by typing
  237.  
  238.     emxinst
  239.  
  240.  
  241. Creating the OMF libraries
  242. --------------------------
  243.  
  244. To create the OMF libraries (for linking with LINK386), type the
  245. following commands after installing emx:
  246.  
  247.     cd \emx\lib
  248.     omflibs
  249.  
  250. The omflibs batch file builds .lib files from .a files.  If you
  251. install (after running omflibs) a package containing additional .a
  252. files , you should run omflibs again to build the .lib files for the
  253. new package.
  254.  
  255.  
  256. Using long file names for header files on HPFS
  257. ----------------------------------------------
  258.  
  259. You need `sed' for the following procedure.  GNU sed is available for
  260. anonymous ftp:
  261.  
  262.     ftp.leo.org: /pub/comp/os/os2/leo/gnu/systools/gnused.zip
  263.  
  264. To rename and patch the header files for HPFS, type
  265.  
  266.     cd \emx\include
  267.     long
  268.  
  269. You can revert to the short names for FAT by typing
  270.  
  271.     cd \emx\include
  272.     short
  273.  
  274.  
  275. Trouble shooting
  276. ----------------
  277.  
  278. If OS/2 says
  279.  
  280.     SYS1804: The system cannot find the file EMX.
  281.  
  282. when running a program compiled for emx, you haven't set LIBPATH
  283. correctly.
  284.  
  285. If programs print `WARNING: emx 0.9d or later required', an
  286. out-of-date version of emx.dll is active.  Make sure that the latest
  287. version of emx.dll is in a directory pointed to by the LIBPATH
  288. statement in your config.sys file.  Use
  289.  
  290.     emxrev -p c:\config.sys
  291.  
  292. to list all emx dynamic link libraries reachable by the LIBPATH
  293. statement of c:\config.sys (use the drive letter of your boot drive
  294. instead of c:).  To simplify things, you should keep only one version
  295. of each DLL.  Older programs work with newer emx DLLs, but not vice
  296. versa.
  297.  
  298.  
  299. Compiling sample programs
  300. -------------------------
  301.  
  302. Install the emxample.zip package:
  303.  
  304.   c:
  305.   cd \
  306.   unzip emxample
  307.  
  308. Compile the sieve program (optimizer enabled):
  309.  
  310.   cd \emx\samples
  311.   gcc -O2 sieve.c
  312.  
  313. Run the sieve program:
  314.  
  315.   sieve
  316.   sieve 100000
  317.   sieve -p 100
  318.  
  319. Compile the hello program (C++):
  320.  
  321.   gcc hello.cc -lstdcpp
  322.  
  323. (Note that \emx\samples\hello.cc has been added by emxfix02.zip.)
  324.  
  325. A `makefile', \emx\samples\makefile, is provided for use with any
  326. `make' utility (such as dmake, GNU make, NMAKE).  If you have a make
  327. utility installed, just type
  328.  
  329.   make cpp-samples
  330.  
  331. to build all the C++ sample programs.  See the makefile for further
  332. make targets.
  333.  
  334.  
  335. Sample debugging session
  336. ------------------------
  337.  
  338. Compile the sieve program for debugging:
  339.  
  340.   cd \emx\samples
  341.   gcc -g sieve.c
  342.  
  343. Start the debugger and step through some lines:
  344.  
  345.   [C:\EMX\SAMPLES]gdb sieve.exe
  346.   GDB is free software and you are welcome to distribute copies of it
  347.    under certain conditions; type "show copying" to see the conditions.
  348.   There is absolutely no warranty for GDB; type "show warranty" for details.
  349.   GDB 4.16 (emx), Copyright 1996 Free Software Foundation, Inc...
  350.   (gdb) set arg 100                                     <- set command line
  351.   (gdb) b isqrt                                         <- set breakpoint
  352.   Breakpoint 1 at 0x1003e: file sieve.c, line 45.
  353.   (gdb) run                                             <- start program
  354.   Starting program: c:/emx/samples/sieve.exe 10
  355.  
  356.   Breakpoint 1, isqrt (x=100) at sieve.c:45
  357.   45        l = 1; r = x;
  358.   (gdb) s                                               <- step over one line
  359.   46        while (l < r)
  360.   (gdb) l                                               <- list source
  361.   41      static ULONG isqrt (ULONG x)
  362.   42      {
  363.   43        ULONG l, r, m;
  364.   44      
  365.   45        l = 1; r = x;
  366.   46        while (l < r)
  367.   47          {
  368.   48            m = (l+r) / 2;
  369.   49            if (m > 46340) m = 46340;
  370.   50            if (m*m < x)
  371.   (gdb) disp l                                          <- watch variable
  372.   1: l = 1
  373.   (gdb) disp r                                          <- watch variable
  374.   2: r = 100
  375.   (gdb) s 5                                             <- step over five lines
  376.   53                  r = m-1;
  377.   2: r = 100
  378.   1: l = 1
  379.   (gdb) p m*m                                           <- show expression
  380.   $1 = 2500
  381.   (gdb) cont                                            <- continue program
  382.   Continuing.
  383.   25 primes                                             <- output of program
  384.  
  385.  
  386.   Program exited normally.
  387.   (gdb) q                                               <- quit gdb
  388.  
  389.   [C:\EMX\TEST]
  390.  
  391. OS/2 users can use pmgdb, a Presentation Manager front end for GDB, to
  392. simplify operating GDB and to debug Presentation Manager applications:
  393.  
  394.   [C:\EMX\TEST]pmgdb sieve.exe 100
  395.  
  396. After starting pmgdb, select Tutorial from the Help menu.
  397.  
  398.  
  399. Viewing OS/2 .inf files
  400. -----------------------
  401.  
  402. If you've installed the optional emxview.zip and gnuview.zip packages,
  403. you can use the OS/2 VIEW utility to view a hypertext version of
  404. emxdev.doc, emxlib.doc, emxgnu.doc and emxbsd.doc.  If you've added
  405. c:\emx\book to the BOOKSHELF environment variable and defined the
  406. EMXBOOK environment variable (see above), type
  407.  
  408.     view emxbook
  409.  
  410. to view the concatenated .inf files.  To get help for, say, printf(),
  411. type
  412.  
  413.     view emxbook printf
  414.  
  415. If you haven't set the environment variables, type
  416.  
  417.     view c:\emx\book\emxdev
  418.  
  419. to view emxdev.inf.
  420.  
  421. If you've properly set the HELPNDX and DPATH environment variables,
  422. you can use the kwhelp (Ctrl-H) command of EPM to get on-line help for
  423. the function at the cursor.  With emxbook.ndx, all four books are
  424. required to be installed.  If you haven't installed all the books, use
  425. a subset of emxdev.ndx, emxlib.ndx, emxgnu.ndx and emxbsd.ndx in the
  426. HELPNDX environment variable.
  427.  
  428. emxbook.ndx contains all entries of emxdev.ndx, emxlib.ndx, emxgnu.ndx
  429. and emxbsd.ndx, pointing to `emxbook'.  Setting the EMXBOOK
  430. environment variable as explained above causes the three books to be
  431. concatenated and named `emxbook'.
  432.  
  433.  
  434. Viewing the GNU on-line manuals
  435. -------------------------------
  436.  
  437. To view the GCC, GDB, etc. manuals, unpack gnudoc.zip and gnuinfo.zip
  438. and install info (see emxgnu.doc).  Use GNU makeinfo to create info
  439. files for on-line help from the texinfo files.  makeinf.bat and
  440. makeinf.cmd are batch files which simplify calling makeinfo.
  441.  
  442. To create info files for the GCC manual, type:
  443.  
  444.   cd \emx\gnu\doc\gcc
  445.   ..\makeinf gcc                (Using and Porting GNU CC)
  446.   ..\makeinf cpp                (The C Preprocessor)
  447.   ..\makeinf gxxint             (Internal Architecture of the Compiler)
  448.   ..\makeinf gppfaq     (Frequently asked questions about the GNU C++ compiler)
  449.  
  450. To create info files for GDB, type:
  451.  
  452.   cd \emx\gnu\doc\gdb
  453.   ..\makeinf gdb                (Debugging with GDB)
  454.   ..\makeinf gdbint             (The GNU debugger's internals)
  455.   ..\makeinf annotate           (Interfacing GDB to other programs)
  456.  
  457. To create info files for GAS, type:
  458.  
  459.   cd \emx\gnu\doc\gas
  460.   ..\makeinf as                 (The GNU assembler)
  461.   ..\makeinf gasp               (The GNU Assembler Preprocessor)
  462.  
  463. To create the info file for the new GNU binary utilities (ar, nm,
  464. objdump, and size) and gprof, type:
  465.  
  466.   cd \emx\gnu\doc\binutils
  467.   ..\makeinf binutils           (The GNU binary utilities)
  468.   ..\makeinf gprof              (Profiling your program's execution)
  469.  
  470. (Note that emx uses the old versions of `ld' and `strip', for which no
  471. documentation is available.)
  472.  
  473. To create info files for the texinfo manual, type:
  474.  
  475.   cd \emx\gnu\doc\texinfo
  476.   ..\makeinf texi               (The documentation format for the GNU Project)
  477.   ..\makeinf makeinfo           (The makeinfo program)
  478.  
  479. To create info files for libstdc++, type:
  480.  
  481.   cd \emx\gnu\doc\stdcpp
  482.   ..\makeinf iostream           (The GNU C++ Iostream Library)
  483.  
  484. To create info files for libg++, type:
  485.  
  486.   cd \emx\gnu\doc\libgpp
  487.   ..\makeinf libgpp             (User's Guide to the GNU C++ Class Library)
  488.  
  489. To create info files for the GNU termcap library, type:
  490.  
  491.   cd \emx\gnu\doc\termcap
  492.   ..\makeinf termcap            (The Termcap Library)
  493.  
  494. After creating the info files, you can use GNU info (see emxgnu.doc
  495. for details) or GNU Emacs to view the info files.
  496.  
  497.  
  498. Printing the GNU manuals
  499. ------------------------
  500.  
  501. To print the manuals, you have to unpack gnudoc.zip and gnuinfo.zip.
  502. Additionally, you have to install TeX.  Of course, I recommend emTeX,
  503. which can be used both under OS/2 and DOS.  emTeX is available for
  504. anonymous ftp on
  505.  
  506.   ftp.dante.de:   /tex-archive/systems/msdos/emtex
  507.   ftp.tex.ac.uk:  /tex-archive/systems/msdos/emtex
  508.   ftp.cdrom.com:  /pub/tex/ctan/systems/msdos/emtex
  509.   ftp.leo.org:    /pub/comp/os/os2/leo/emTeX
  510.  
  511. The following instructions assume that you are using emTeX (with
  512. emTeX386).  If TeX complains about undefined control sequences, just
  513. type `s' and ignore the errors.
  514.  
  515. To typeset the GCC documentation, type
  516.  
  517.   cd \emx\gnu\doc
  518.   makedvi gcc
  519.   makedvi gppfaq
  520.  
  521. This creates the following files:
  522.  
  523.   cpp.dvi               (The C Preprocessor)
  524.   gcc.dvi               (Using and Porting GNU CC)
  525.   gppfaq.dvi            (Frequently asked questions about the GNU C++ compiler)
  526.  
  527. To typeset internal G++ documentation (you don't need this unless you
  528. want to hack G++), type
  529.  
  530.   cd \emx\gnu\doc
  531.   makedvi gxxint
  532.  
  533. To typeset the GDB documentation, type
  534.  
  535.   cd \emx\gnu\doc
  536.   makedvi gdb
  537.  
  538. This creates the following files:
  539.  
  540.   refcard.dvi           (GDB Reference Card)
  541.   gdb.dvi               (Debugging with GDB)
  542.  
  543. To typeset internal GDB documentation (you don't need this unless you
  544. want to hack GDB), type
  545.  
  546.   cd \emx\gnu\doc
  547.   makedvi gdbint
  548.  
  549. This create the following files:
  550.  
  551.   gdbint.dvi            (The GNU debugger's internals)
  552.   stabs.dvi             (The "stabs" debugging information format)
  553.   annotate.dvi          (Interfacing GDB to other programs)
  554.  
  555. To typeset the GAS documentation, type
  556.  
  557.   cd \emx\gnu\doc
  558.   makedvi gas
  559.  
  560. This creates the following files:
  561.  
  562.   as.dvi                (The GNU assembler)
  563.   gasp.dvi              (The GNU Assembler Preprocessor)
  564.  
  565. To typeset the documentation for the new GNU binary utilities (ar, nm,
  566. objdump, and size), type:
  567.  
  568.   cd \emx\gnu\doc
  569.   makedvi binutils
  570.  
  571. This creates the following file:
  572.  
  573.   binutils.dvi          (The GNU binary utilities)
  574.   gprof.dvi             (Profiling your program's execution)
  575.  
  576. (Note that emx uses the old versions of `ld' and `strip', for which no
  577. documentation is available.)
  578.  
  579. To typeset the texinfo documentation, type
  580.  
  581.   cd \emx\gnu\doc
  582.   makedvi texinfo
  583.  
  584. This creates the following files:
  585.  
  586.   info-stn.dvi          (GNU Info)
  587.   texi.dvi              (The documentation format for the GNU Project)
  588.   makeinfo.dvi          (The makeinfo program)
  589.  
  590. To typeset the libstdc++ documentation, type
  591.  
  592.   cd \emx\gnu\doc
  593.   makedvi iostream
  594.  
  595. This creates the following file:
  596.  
  597.   iostream.dvi          (The GNU C++ Iostream Library)
  598.  
  599. To typeset the libg++ documentation, type
  600.  
  601.   cd \emx\gnu\doc
  602.   makedvi libgpp
  603.  
  604. This creates the following files:
  605.  
  606.   libgpp.dvi            (User's Guide to the GNU C++ Class Library)
  607.  
  608. To typeset the GNU termcap documentation, type
  609.  
  610.   cd \emx\gnu\doc
  611.   makedvi termcap
  612.  
  613. This creates the following file:
  614.  
  615.   termcap.dvi           (The Termcap Library)
  616.  
  617.  
  618. Using BSD termcap instead of GNU termcap
  619. ----------------------------------------
  620.  
  621. If you want to use the BSD termcap library instead of the GNU termcap
  622. library, replace `gnu' in \emx\include\termcap.h with `bsd' and use
  623. -lbtermcap instead of -ltermcap.  See \emx\doc\emxbsd.doc and
  624. \emx\doc\emxgnu.doc for details.  The most important difference
  625. between the two termcap libraries are their licensing conditions, see
  626. \emx\doc\COPYING and \emx\doc\COPYING.BSD.  GNU termcap has more
  627. features than BSD termcap.
  628.  
  629. --------------------------- END OF INSTALL.DOC ------------------------------
  630.