1166124Srafan-------------------------------------------------------------------------------
2166124Srafan-- Copyright (c) 1998-2005,2006 Free Software Foundation, Inc.               --
3166124Srafan--                                                                           --
4166124Srafan-- Permission is hereby granted, free of charge, to any person obtaining a   --
5166124Srafan-- copy of this software and associated documentation files (the             --
6166124Srafan-- "Software"), to deal in the Software without restriction, including       --
7166124Srafan-- without limitation the rights to use, copy, modify, merge, publish,       --
8166124Srafan-- distribute, distribute with modifications, sublicense, and/or sell copies --
9166124Srafan-- of the Software, and to permit persons to whom the Software is furnished  --
10166124Srafan-- to do so, subject to the following conditions:                            --
11166124Srafan--                                                                           --
12166124Srafan-- The above copyright notice and this permission notice shall be included   --
13166124Srafan-- in all copies or substantial portions of the Software.                    --
14166124Srafan--                                                                           --
15166124Srafan-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS   --
16166124Srafan-- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF                --
17166124Srafan-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN --
18166124Srafan-- NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,       --
19166124Srafan-- DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR     --
20166124Srafan-- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE --
21166124Srafan-- USE OR OTHER DEALINGS IN THE SOFTWARE.                                    --
22166124Srafan--                                                                           --
23166124Srafan-- Except as contained in this notice, the name(s) of the above copyright    --
24166124Srafan-- holders shall not be used in advertising or otherwise to promote the      --
25166124Srafan-- sale, use or other dealings in this Software without prior written        --
26166124Srafan-- authorization.                                                            --
27166124Srafan-------------------------------------------------------------------------------
28166124Srafan-- $Id: README.emx,v 1.8 2006/04/22 22:19:37 tom Exp $
2966963Speter-- Author: Thomas Dickey
3050276Speter-------------------------------------------------------------------------------
3150276Speter
3250276SpeterYou can build ncurses on OS/2 in the EMX environment.  But you must build and
3350276Speteracquire tools.  Not all of the tools distributed with EMX work properly, and
3450276Spetersome additional ones are required.
3550276Speter
3650276SpeterFirst, the configure script distributed with ncurses will not run as-is in EMX. 
3750276SpeterYou can generate a new one if you have autoconf built for EMX.  You will need
3850276Speterthe EMX development tools, of course.  Get these programs to start:
3950276Speter
4050276Speter	GNU m4 program (version 1.4)
4166963Speter	GNU autoconf (version 2.13).
4250276Speter	GNU patch (version 2.5)
4350276Speter
4450276SpeterApply the autoconf patches from
4550276Speter
46166124Srafan	http://invisible-island.net/autoconf
47166124Srafan	ftp://invisible-island.net/autoconf
4850276Speter
4950276SpeterThese are ordered by date:
5050276Speter
51166124Srafan	autoconf-2.13-20030927.patch.gz
52166124Srafan	autoconf-2.13-20030927-emx.patch.gz
5350276Speter
5450276SpeterI built my development environment for ncurses using EMX 0.9c at the end of
5550276Speter1997.  Much of the EMX patch for autoconf was done originally by J.J.G.Ripoll,
5650276Speterusing a similar environment (he prefers using the 'ash' shell).  Newer versions
5750276Spetermay fix these problems:
5850276Speter
5950276Speter	+ The pdksh program distributed at Hobbes and Leo (with a 1996 date) is
6050276Speter	  defective.  It does not process "here documents" correctly (which
6150276Speter	  renders it useless for running the autoconf script).  I built my own
6250276Speter	  copy of pdksh 5.2.13, which does have the bug corrected (documented
6350276Speter	  in the change log for pdksh).
6450276Speter
6550276Speter	+ I also built from sources (because the distributed binaries did not
6650276Speter	  work) the cmp, diff programs.
6750276Speter	  
6850276Speter	  Other required utilities such as ar, cat, chmod, cp, gawk, grep, mv,
6950276Speter	  ls, rm, mkdir, sed, sort and tr worked.
7050276Speter
7150276SpeterOnce you have autoconf patched and installed, run 'autoconf' from the top-level
7250276Speterdirectory of ncurses to generate the EMX-specific configure script.
73