INSTALL revision 66963
166963Speter-- $Id: INSTALL,v 1.45 2000/10/08 02:17:57 tom Exp $ 250276Speter--------------------------------------------------------------------- 350276Speter How to install Ncurses/Terminfo on your system 450276Speter--------------------------------------------------------------------- 562449Speter 650276Speter ************************************************************ 750276Speter * READ ALL OF THIS FILE BEFORE YOU TRY TO INSTALL NCURSES. * 850276Speter ************************************************************ 950276Speter 1050276SpeterYou should be reading the file INSTALL in a directory called ncurses-d.d, where 1150276Speterd.d is the current version number. There should be several subdirectories, 1250276Speterincluding `c++', `form', `man', `menu', 'misc', `ncurses', `panel', `progs', 1350276Speterand `test'. See the README file for a roadmap to the package. 1450276Speter 1550276SpeterIf you are a Linux or FreeBSD or NetBSD distribution integrator or packager, 1650276Speterplease read and act on the section titled IF YOU ARE A SYSTEM INTEGRATOR 1750276Speterbelow. 1850276Speter 1950276SpeterIf you are converting from BSD curses and do not have root access, be sure 2050276Speterto read the BSD CONVERSION NOTES section below. 2150276Speter 2250276SpeterIf you are using a version of XFree86 xterm older than 3.1.2F, see the section 2350276Speteron RECENT XTERM VERSIONS below. 2450276Speter 2550276SpeterIf you are trying to build GNU Emacs using ncurses for terminal support, 2650276Speterread the USING NCURSES WITH EMACS section below. 2750276Speter 2850276SpeterIf you are trying to build applications using gpm with ncurses, 2950276Speterread the USING NCURSES WITH GPM section below. 3050276Speter 3150276SpeterIf you are running over the Andrew File System see the note below on 3250276SpeterUSING NCURSES WITH AFS. 3350276Speter 3466963SpeterIf you are cross-compiling, see the note below on BUILDING NCURSES WITH A 3566963SpeterCROSS-COMPILER. 3666963Speter 3750276SpeterIf you want to build the Ada95 binding, go to the Ada95 directory and 3850276Speterfollow the instructions there. The Ada95 binding is not covered below. 3950276Speter 4050276SpeterIf you are using anything but (a) Linux, or (b) one of the 4.4BSD-based 4150276Speteri386 Unixes, go read the Portability section in the TO-DO file before you 4250276Speterdo anything else. 4350276Speter 4462449Speter 4550276SpeterREQUIREMENTS: 4662449Speter------------ 4750276Speter 4850276SpeterYou will need the following in order to build and install ncurses under UNIX: 4950276Speter 5050276Speter * ANSI C compiler (gcc is recommended) 5150276Speter * sh (bash will do) 5250276Speter * awk (mawk or gawk will do) 5350276Speter * sed 5450276Speter * BSD or System V style install (a script is enclosed) 5550276Speter 5650276SpeterNcurses has been also built in the OS/2 EMX environment. 5750276Speter 5862449Speter 5950276SpeterINSTALLATION PROCEDURE: 6062449Speter---------------------- 6150276Speter 6250276Speter1. First, decide whether you want ncurses to replace your existing library (in 6350276Speter which case you'll need super-user privileges) or be installed in parallel 6450276Speter with it. 6550276Speter 6650276Speter The --prefix option to configure changes the root directory for installing 6750276Speter ncurses. The default is in subdirectories of /usr/local. Use 6850276Speter --prefix=/usr to replace your default curses distribution. This is the 6950276Speter default for Linux and BSD/OS users. 7050276Speter 7150276Speter The package gets installed beneath the --prefix directory as follows: 7250276Speter 7350276Speter In $(prefix)/bin: tic, infocmp, captoinfo, tset, 7466963Speter reset, clear, tput, toe 7550276Speter In $(prefix)/lib: libncurses*.* libcurses.a 7650276Speter In $(prefix)/share/terminfo: compiled terminal descriptions 7750276Speter In $(prefix)/include: C header files 7850276Speter Under $(prefix)/man: the manual pages 7950276Speter 8050276Speter Note however that the configure script attempts to locate previous 8150276Speter installation of ncurses, and will set the default prefix according to where 8250276Speter it finds the ncurses headers. 8350276Speter 8450276Speter2. Type `./configure' in the top-level directory of the distribution to 8550276Speter configure ncurses for your operating system and create the Makefiles. 8650276Speter Besides --prefix, various configuration options are available to customize 8750276Speter the installation; use `./configure --help' to list the available options. 8850276Speter 8950276Speter If your operating system is not supported, read the PORTABILITY section in 9050276Speter the file ncurses/README for information on how to create a configuration 9150276Speter file for your system. 9250276Speter 9350276Speter The `configure' script generates makefile rules for one or more object 9450276Speter models and their associated libraries: 9550276Speter 9650276Speter libncurses.a (normal) 9750276Speter 9850276Speter libcurses.a (normal, a link to libncurses.a) 9950276Speter This gets left out if you configure with --disable-overwrite. 10050276Speter 10150276Speter libncurses.so (shared) 10250276Speter 10350276Speter libncurses_g.a (debug) 10450276Speter 10550276Speter libncurses_p.a (profile) 10650276Speter 10750276Speter If you do not specify any models, the normal and debug libraries will be 10850276Speter configured. Typing `configure' with no arguments is equivalent to: 10950276Speter 11066963Speter ./configure --with-normal --with-debug --enable-overwrite 11150276Speter 11250276Speter Typing 11350276Speter 11466963Speter ./configure --with-shared 11550276Speter 11650276Speter makes the shared libraries the default, resulting in 11750276Speter 11866963Speter ./configure --with-shared --with-normal --with-debug --enable-overwrite 11950276Speter 12050276Speter If you want only shared libraries, type 12150276Speter 12266963Speter ./configure --with-shared --without-normal --without-debug 12350276Speter 12450276Speter Rules for generating shared libraries are highly dependent upon the choice 12550276Speter of host system and compiler. We've been testing shared libraries on Linux 12650276Speter and SunOS with gcc, but more work needs to be done to make shared libraries 12750276Speter work on other systems. 12850276Speter 12950276Speter You can make curses and terminfo fall back to an existing file of termcap 13050276Speter definitions by configuring with --enable-termcap. If you do this, the 13150276Speter library will search /etc/termcap before the terminfo database, and will 13250276Speter also interpret the contents of the TERM environment variable. See the 13350276Speter section BSD CONVERSION NOTES below. 13450276Speter 13550276Speter3. Type `make'. Ignore any warnings, no error messages should be produced. 13650276Speter This should compile the ncurses library, the terminfo compiler tic(1), 13750276Speter captoinfo(1), infocmp(1), toe(1), clear(1) tset(1), reset(1), and tput(1) 13866963Speter programs (see the manual pages for explanation of what they do), some test 13950276Speter programs, and the panels, menus, and forms libraries. 14050276Speter 14150276Speter4. Run ncurses and several other test programs in the test directory to 14250276Speter verify that ncurses functions correctly before doing an install that 14350276Speter may overwrite system files. Read the file test/README for details on 14450276Speter the test programs. 14562449Speter 14650276Speter NOTE: You must have installed the terminfo database, or set the 14750276Speter environment variable $TERMINFO to point to a SVr4-compatible terminfo 14850276Speter database before running the test programs. Not all vendors' terminfo 14950276Speter databases are SVr4-compatible, but most seem to be. Exceptions include 15050276Speter DEC's Digital Unix (formerly known as OSF/1). 15150276Speter 15250276Speter The ncurses program is designed specifically to test the ncurses library. 15350276Speter You can use it to verify that the screen highlights work correctly, that 15450276Speter cursor addressing and window scrolling works OK, etc. 15550276Speter 15650276Speter5. Once you've tested, you can type `make install' to install libraries, 15766963Speter the programs, the terminfo database and the manual pages. Alternately, you 15850276Speter can type `make install' in each directory you want to install. In the 15950276Speter top-level directory, you can do a partial install using these commands: 16050276Speter 16150276Speter 'make install.progs' installs tic, infocmp, etc... 16266963Speter 'make install.includes' installs the headers. 16366963Speter 'make install.libs' installs the libraries (and the headers). 16466963Speter 'make install.data' installs the terminfo data. (Note: `tic' must 16566963Speter be installed before the terminfo data can be 16666963Speter compiled). 16766963Speter 'make install.man' installs the manual pages. 16850276Speter 16950276Speter ############################################################################ 17050276Speter # CAVEAT EMPTOR: `install.data' run as root will NUKE any existing # 17150276Speter # terminfo database. If you have any custom or unusual entries SAVE them # 17250276Speter # before you install ncurses. I have a file called terminfo.custom for # 17350276Speter # this purpose. Don't forget to run tic on the file once you're done. # 17450276Speter ############################################################################ 17550276Speter 17666963Speter The terminfo(5) manual page must be preprocessed with tbl(1) before 17750276Speter being formatted by nroff(1). Modern man(1) implementations tend to do 17866963Speter this by default, but you may want to look at your version's manual page 17950276Speter to be sure. 18050276Speter 18150276Speter If the system already has a curses library that you need to keep using 18250276Speter for some bizarre binary-compatibility reason, you'll need to distinguish 18350276Speter between it and ncurses. If ncurses is installed outside the standard 18450276Speter directories (/usr/include and /usr/lib) then all your users will need 18550276Speter to use the -I option to compile programs and -L to link them. 18650276Speter 18750276Speter If you have BSD curses installed in your system and you accidentally 18850276Speter compile using its curses.h you'll end up with a large number of 18950276Speter undefined symbols at link time. _waddbytes is one of them. 19050276Speter 19150276Speter IF YOU DO NOT HAVE ROOT: Change directory to the `progs' subdirectory 19250276Speter and run the `capconvert' script. This script will deduce various things 19350276Speter about your environment and use them to build you a private terminfo tree, 19450276Speter so you can use ncurses applications. 19550276Speter 19650276Speter If more than one user at your site does this, the space for the duplicate 19750276Speter trees is wasted. Try to get your site administrators to install a system- 19850276Speter wide terminfo tree instead. 19950276Speter 20050276Speter See the BSD CONVERSION NOTES section below for a few more details. 20150276Speter 20250276Speter6. The c++ directory has C++ classes that are built on top of ncurses and 20356639Speter panels. You must have c++ (and its libraries) installed before you can 20450276Speter compile and run the demo. 20550276Speter 20656639Speter Use --without-cxx-binding to tell configure to not build the C++ bindings 20756639Speter and demo. 20856639Speter 20950276Speter If you do not have C++, you must use the --without-cxx option to tell 21056639Speter the configure script to not attempt to determine the type of 'bool' 21156639Speter which may be supported by C++. IF YOU USE THIS OPTION, BE ADVISED THAT 21256639Speter YOU MAY NOT BE ABLE TO COMPILE (OR RUN) NCURSES APPLICATIONS WITH C++. 21362449Speter 21450276Speter7. If you're running an older Linux, you must either (a) tell Linux that the 21550276Speter console terminal type is `linux' or (b) make a link to or copy of the 21650276Speter linux entry in the appropriate place under your terminfo directory, named 21750276Speter `console'. All 1.3 and many 1.2 distributions (including Yggdrasil and 21850276Speter Red Hat) already have the console type set to `linux'. 21950276Speter 22050276Speter The way to change the wired-in console type depends on the configuration 22150276Speter of your system. This may involve editing /etc/inittab, /etc/ttytype, 22250276Speter /etc/profile and other such files. 22350276Speter 22450276Speter Warning: this is not for the fainthearted, if you mess up your console 22550276Speter getty entries you can make your system unusable! However, if you are 22650276Speter a distribution maker, this is the right thing to do (see the note for 22750276Speter integrators near the end of this file). 22850276Speter 22950276Speter The easier way is to link or copy l/linux to c/console under your terminfo 23050276Speter directory. Note: this will go away next time you do `make install.data' 23150276Speter and you'll have to redo it. There is no need to have entries for all 23250276Speter possible screen sizes, ncurses will figure out the size automatically. 23350276Speter 23462449Speter 23566963SpeterSUMMARY OF CONFIGURE OPTIONS: 23666963Speter---------------------------- 23766963Speter 23866963Speter The configure script provides a short list of its options when you type 23966963Speter 24066963Speter ./configure --help 24166963Speter 24266963Speter The --help and several options are common to all configure scripts that are 24366963Speter generated with autoconf. Those are all listed before the line 24466963Speter 24566963Speter --enable and --with options recognized: 24666963Speter 24766963Speter The other options are specific to this package. We list them in alphabetic 24866963Speter order. 24966963Speter 25066963Speter --disable-assumed-color 25166963Speter With ncurses 5.1, we introduced a new function, assume_default_colors() 25266963Speter which allows applications to specify what the default foreground and 25366963Speter background color are assumed to be. Most color applications use 25466963Speter full-screen color; but a few do not color the background. While the 25566963Speter assumed values can be overridden by invoking assume_default_colors(), 25666963Speter you may find it useful to set the assumed values to the pre-5.1 25766963Speter convention, using this configure option. 25866963Speter 25966963Speter --disable-big-core 26066963Speter Assume machine has little memory. The configure script attempts to 26166963Speter determine if your machine has enough memory (about 6Mb) to compile the 26266963Speter terminfo database without writing portions to disk. Some allocators 26366963Speter return deceptive results, so you may have to override the configure 26466963Speter script. Or you may be building tic for a smaller machine. 26566963Speter 26666963Speter --disable-database 26766963Speter Use only built-in data. The ncurses libraries normally read terminfo 26866963Speter and termcap data from disk. You can configure ncurses to have a 26966963Speter built-in database, aka "fallback" entries. Embedded applications may 27066963Speter have no need for an external database. 27166963Speter 27266963Speter --disable-ext-funcs 27366963Speter Disable function-extensions. Configure ncurses without the functions 27466963Speter that are not specified by XSI. See ncurses/modules for the exact 27566963Speter list of library modules that would be suppressed. 27666963Speter 27766963Speter --disable-hashmap 27866963Speter Compile without hashmap scrolling-optimization code. This algorithm is 27966963Speter the default. 28066963Speter 28166963Speter --disable-leaks 28266963Speter For testing, compile-in code that frees memory that normally would not 28366963Speter be freed, to simplify analysis of memory-leaks. 28466963Speter 28566963Speter --disable-macros 28666963Speter For testing, use functions rather than macros. The program will run 28766963Speter more slowly, but it is simpler to debug. This makes a header file 28866963Speter "nomacros.h". See also the --enable-expanded option. 28966963Speter 29066963Speter --disable-overwrite 29166963Speter If you are installing ncurses on a system which contains another 29266963Speter development version of curses, or which could be confused by the loader 29366963Speter for another version, we recommend that you leave out the link to 29466963Speter -lcurses. The ncurses library is always available as -lncurses. 29566963Speter Disabling overwrite also causes the ncurses header files to be 29666963Speter installed into a subdirectory, e.g., /usr/local/include/ncurses, 29766963Speter rather than the include directory. This makes it simpler to avoid 29866963Speter compile-time conflicts with other versions of curses.h 29966963Speter 30066963Speter --disable-root-environ 30166963Speter Compile with environment restriction, so certain environment variables 30266963Speter are not available when running as root, or via a setuid/setgid 30366963Speter application. These are (for example $TERMINFO) those that allow the 30466963Speter search path for the terminfo or termcap entry to be customized. 30566963Speter 30666963Speter --disable-scroll-hints 30766963Speter Compile without scroll-hints code. This option is ignored when 30866963Speter hashmap scrolling is configured, which is the default. 30966963Speter 31066963Speter --enable-add-ons=DIR... 31166963Speter This is used to check if this package is a glibc add-on. This is used 31266963Speter only by the glibc makefiles. 31366963Speter 31466963Speter --enable-assertions 31566963Speter For testing, compile-in assertion code. This is used only for a few 31666963Speter places where ncurses cannot easily recover by returning an error code. 31766963Speter 31866963Speter --enable-broken_linker 31966963Speter A few platforms have what we consider a broken linker: it cannot link 32066963Speter objects from an archive solely by referring to data objects in those 32166963Speter files, but requires a function reference. This configure option 32266963Speter changes several data references to functions to work around this 32366963Speter problem. 32466963Speter 32566963Speter NOTE: With ncurses 5.1, this may not be necessary, since we are 32666963Speter told that some linkers interpret uninitialized global data as a 32766963Speter different type of reference which behaves as described above. We have 32866963Speter explicitly initialized all of the global data to work around the 32966963Speter problem. 33066963Speter 33166963Speter --enable-bsdpad 33266963Speter Recognize BSD-style prefix padding. Some ancient BSD programs (such as 33366963Speter nethack) call tputs("50") to implement delays. 33466963Speter 33566963Speter --enable-colorfgbg 33666963Speter Compile with experimental $COLORFGBG code. That environment variable 33766963Speter is set by some terminal emulators as a hint to applications, by 33866963Speter advertising the default foreground and background colors. During 33966963Speter initialization, ncurses sets color pair 0 to match this. 34066963Speter 34166963Speter --enable-const 34266963Speter The curses interface as documented in XSI is rather old, in fact 34366963Speter including features that precede ANSI C. The prototypes generally do 34466963Speter not make effective use of "const". When using stricter compilers (or 34566963Speter gcc with appropriate warnings), you may see warnings about the mismatch 34666963Speter between const and non-const data. We provide a configure option which 34766963Speter changes the interfaces to use const - quieting these warnings and 34866963Speter reflecting the actual use of the parameters more closely. The ncurses 34966963Speter library uses the symbol NCURSES_CONST for these instances of const, 35066963Speter and if you have asked for compiler warnings, will add gcc's const-qual 35166963Speter warning. There will still be warnings due to subtle inconsistencies 35266963Speter in the interface, but at a lower level. 35366963Speter 35466963Speter NOTE: configuring ncurses with this option may detract from the 35566963Speter portability of your applications by encouraging you to use const in 35666963Speter places where the XSI curses interface would not allow them. Similar 35766963Speter issues arise when porting to SVr4 curses, which uses const in even 35866963Speter fewer places. 35966963Speter 36066963Speter --enable-echo 36166963Speter Use the option --disable-echo to make the build-log less verbose by 36266963Speter suppressing the display of the compile and link commands. This makes 36366963Speter it easier to see the compiler warnings. (You can always use "make -n" 36466963Speter to see the options that are used). 36566963Speter 36666963Speter --enable-expanded 36766963Speter For testing, generate functions for certain macros to make them visible 36866963Speter as such to the debugger. See also the --disable-macros option. 36966963Speter 37066963Speter --enable-getcap 37166963Speter Use the 4.4BSD getcap code if available, or a bundled version of it to 37266963Speter fetch termcap entries. Entries read in this way cannot use (make 37366963Speter cross-references to) the terminfo tree, but it is faster than reading 37466963Speter /etc/termcap. 37566963Speter 37666963Speter --enable-getcap-cache 37766963Speter Cache translated termcaps under the directory $HOME/.terminfo 37866963Speter 37966963Speter NOTE: this sounds good - it makes ncurses run faster the second time. 38066963Speter But look where the data comes from - an /etc/termcap containing lots of 38166963Speter entries that are not up to date. If you configure with this option and 38266963Speter forget to install the terminfo database before running an ncurses 38366963Speter application, you will end up with a hidden terminfo database that 38466963Speter generally does not support color and will miss some function keys. 38566963Speter 38666963Speter --enable-hard-tabs 38766963Speter Compile-in cursor-optimization code that uses hard-tabs. We would make 38866963Speter this a standard feature except for the concern that the terminfo entry 38966963Speter may not be accurate, or that your stty settings have disabled the use 39066963Speter of tabs. 39166963Speter 39266963Speter --enable-no-padding 39366963Speter Compile-in support for the $NCURSES_NO_PADDING environment variable, 39466963Speter which allows you to suppress the effect of non-mandatory padding in 39566963Speter terminfo entries. This is the default, unless you have disabled the 39666963Speter extended functions. 39766963Speter 39866963Speter --enable-rpath 39966963Speter Use rpath option when generating shared libraries, and with some 40066963Speter restrictions when linking the corresponding programs. This applies 40166963Speter mainly to systems using the GNU linker (read the manpage). 40266963Speter 40366963Speter --enable-safe-sprintf 40466963Speter Compile with experimental safe-sprintf code. You may consider using 40566963Speter this if you are building ncurses for a system that has neither 40666963Speter vsnprintf() or vsprintf(). It is slow, however. 40766963Speter 40866963Speter --enable-sigwinch 40966963Speter Compile support for ncurses' SIGWINCH handler. If your application has 41066963Speter its own SIGWINCH handler, ncurses will not use its own. The ncurses 41166963Speter handler causes wgetch() to return KEY_RESIZE when the screen-size 41266963Speter changes. This option is the default, unless you have disabled the 41366963Speter extended functions. 41466963Speter 41566963Speter --enable-symlinks 41666963Speter If your system supports symbolic links, make tic use symbolic links 41766963Speter rather than hard links to save diskspace when writing aliases in the 41866963Speter terminfo database. 41966963Speter 42066963Speter --enable-tcap-names 42166963Speter Compile-in support for user-definable terminal capabilities. Use the 42266963Speter -x option of tic and infocmp to treat unrecognized terminal 42366963Speter capabilities as user-defined strings. This option is the default, 42466963Speter unless you have disabled the extended functions. 42566963Speter 42666963Speter --enable-termcap 42766963Speter Compile in support for reading terminal descriptions from termcap if no 42866963Speter match is found in the terminfo database. See also the --enable-getcap 42966963Speter and --enable-getcap-cache options. 43066963Speter 43166963Speter --enable-warnings 43266963Speter Turn on GCC compiler warnings. There should be only a few. 43366963Speter 43466963Speter --enable-widec 43566963Speter Compile with experimental wide-character code. This makes a different 43666963Speter version of the libraries (e.g., libncursesw.so), which stores 43766963Speter characters in 16-bits. We provide a simple UTF-8 driver and test 43866963Speter program to use this feature with terminals that can display UTF-8. 43966963Speter 44066963Speter NOTE: applications compiled with this configuration are not compatible 44166963Speter with those built for 8-bit characters. You cannot simply make a 44266963Speter symbolic link to equate libncurses.so with libncursesw.so 44366963Speter 44466963Speter --enable-xmc-glitch 44566963Speter Compile-in support experimental xmc (magic cookie) code. 44666963Speter 44766963Speter --with-ada-compiler=CMD 44866963Speter Specify the Ada95 compiler command (default "gnatmake") 44966963Speter 45066963Speter --with-ada-include=DIR 45166963Speter Tell where to install the Ada includes (default: 45266963Speter PREFIX/lib/ada/adainclude) 45366963Speter 45466963Speter --with-ada-objects=DIR 45566963Speter Tell where to install the Ada objects (default: PREFIX/lib/ada/adalib) 45666963Speter 45766963Speter --with-database=XXX 45866963Speter Specify the terminfo source file to install. Usually you will wish 45966963Speter to install ncurses' default (misc/terminfo.src). Certain systems 46066963Speter have special requirements, e.g, OS/2 EMX has a customized terminfo 46166963Speter source file. 46266963Speter 46366963Speter --with-dbmalloc 46466963Speter For testing, compile and link with Conor Cahill's dbmalloc library. 46566963Speter 46666963Speter --with-debug 46766963Speter Generate debug-libraries (default). These are named by adding "_g" 46866963Speter to the root, e.g., libncurses_g.a 46966963Speter 47066963Speter --with-default-terminfo-dir=XXX 47166963Speter Specify the default terminfo database directory. This is normally 47266963Speter DATADIR/terminfo, e.g., /usr/share/terminfo. 47366963Speter 47466963Speter --with-develop 47566963Speter Enable experimental/development options. This does not count those 47666963Speter that change the interface, such as --enable-widec. 47766963Speter 47866963Speter --with-dmalloc 47966963Speter For testing, compile and link with Gray Watson's dmalloc library. 48066963Speter 48166963Speter --with-fallbacks=XXX 48266963Speter Specify a list of fallback terminal descriptions which will be 48366963Speter compiled into the ncurses library. See CONFIGURING FALLBACK ENTRIES. 48466963Speter 48566963Speter --with-gpm 48666963Speter use Alessandro Rubini's GPM library to provide mouse support on the 48766963Speter Linux console. 48866963Speter 48966963Speter --with-install-prefix=XXX 49066963Speter Allows you to specify an alternate location for installing ncurses 49166963Speter after building it. The value you specify is prepended to the "real" 49266963Speter install location. This simplifies making binary packages. 49366963Speter 49466963Speter NOTE: a few systems build shared libraries with fixed pathnames; this 49566963Speter option probably will not work for those configurations. 49666963Speter 49766963Speter --with-manpage-format=XXX 49866963Speter Tell the configure script how you would like to install man-pages. The 49966963Speter option value must be one of these: gzip, compress, BSDI, normal, 50066963Speter formatted. If you do not give this option, the configure script 50166963Speter attempts to determine which is the case. 50266963Speter 50366963Speter --with-manpage-renames=XXX 50466963Speter Tell the configure script that you wish to rename the manpages while 50566963Speter installing. Currently the only distribution which does this is 50666963Speter the Linux Debian. The option value specifies the name of a file 50766963Speter that lists the renamed files, e.g., $srcdir/man/man_db.renames 50866963Speter 50966963Speter --with-manpage-symlinks 51066963Speter Tell the configure script that you wish to make symbolic links in the 51166963Speter man-directory for aliases to the man-pages. This is the default, but 51266963Speter can be disabled for systems that provide this automatically. Doing 51366963Speter this on systems that do not support symbolic links will result in 51466963Speter copying the man-page for each alias. 51566963Speter 51666963Speter --with-normal 51766963Speter Generate normal (i.e., static) libraries (default). 51866963Speter 51966963Speter --with-profile 52066963Speter Generate profile-libraries These are named by adding "_p" to the root, 52166963Speter e.g., libncurses_p.a 52266963Speter 52366963Speter --with-rcs-ids 52466963Speter Compile-in RCS identifiers. Most of the C files have an identifier. 52566963Speter 52666963Speter --with-shared 52766963Speter Generate shared-libraries. The names given depend on the system for 52866963Speter which you are building, typically using a ".so" suffix, along with 52966963Speter symbolic links that refer to the release version. 53066963Speter 53166963Speter NOTE: Unless you override the configure script by setting the $CFLAGS 53266963Speter environment variable, these will not be built with the -g debugging 53366963Speter option. 53466963Speter 53566963Speter --with-shlib-version=XXX 53666963Speter Specify whether to use the release or ABI version for shared libraries. 53766963Speter This is normally chosen automatically based on the type of system 53866963Speter which you are building on. We use it for testing the configure script. 53966963Speter 54066963Speter --with-system-type=XXX 54166963Speter For testing, override the derived host system-type which is used to 54266963Speter decide things such as the linker commands used to build shared 54366963Speter libraries. This is normally chosen automatically based on the type of 54466963Speter system which you are building on. We use it for testing the configure 54566963Speter script. 54666963Speter 54766963Speter --with-terminfo-dirs=XXX 54866963Speter Specify a search-list of terminfo directories which will be compiled 54966963Speter into the ncurses library (default: DATADIR/terminfo) 55066963Speter 55166963Speter --with-termlib 55266963Speter When building the ncurses library, organize this as two parts: the 55366963Speter curses library (libncurses) and the low-level terminfo library 55466963Speter (libtinfo). This is done to accommodate applications that use only 55566963Speter the latter. The terminfo library is about half the size of the total. 55666963Speter 55766963Speter --without-ada 55866963Speter Suppress the configure script's check for Ada95, do not build the 55966963Speter Ada95 binding and related demo. 56066963Speter 56166963Speter --without-cxx 56266963Speter XSI curses declares "bool" as part of the interface. C++ also declares 56366963Speter "bool". Neither specifies the size and type of booleans, but both 56466963Speter insist on the same name. We chose to accommodate this by making the 56566963Speter configure script check for the size and type (e.g., unsigned or signed) 56666963Speter that your C++ compiler uses for booleans. If you do not wish to use 56766963Speter ncurses with C++, use this option to tell the configure script to not 56866963Speter adjust ncurses bool to match C++. 56966963Speter 57066963Speter --without-cxx-binding 57166963Speter Suppress the configure script's check for C++, do not build the 57266963Speter C++ binding and related demo. 57366963Speter 57466963Speter --without-progs 57566963Speter Tell the configure script to suppress the build of ncurses' application 57666963Speter programs (e.g., tic). The test applications will still be built if you 57766963Speter type "make", though not if you simply do "make install". 57866963Speter 57966963Speter 58062449SpeterCOMPATIBILITY WITH OLDER VERSIONS OF NCURSES: 58162449Speter-------------------------------------------- 58262449Speter 58362449Speter Because ncurses implements the X/Open Curses Specification, its interface 58462449Speter is fairly stable. That does not mean the interface does not change. 58562449Speter Changes are made to the documented interfaces when we find differences 58662449Speter between ncurses and X/Open or implementations which they certify (such as 58762449Speter Solaris). We add extensions to those interfaces to solve problems not 58862449Speter addressed by the original curses design, but those must not conflict with 58962449Speter the X/Open documentation. 59062449Speter 59162449Speter Here are some of the major interface changes, and related problems which 59262449Speter you may encounter when building a system with different versions of 59362449Speter ncurses: 59462449Speter 59566963Speter 5.1 (July 8, 2000) 59666963Speter Interface changes: 59762449Speter 59866963Speter + made the extended terminal capabilities 59966963Speter (configure --enable-tcap-names) a standard feature. This should 60066963Speter be transparent to applications that do not require it. 60166963Speter 60266963Speter + removed the trace() function and related trace support from the 60366963Speter production library. 60466963Speter 60566963Speter + modified curses.h.in, undef'ing some symbols to avoid conflict 60666963Speter with C++ STL. 60766963Speter 60866963Speter Added extensions: assume_default_colors(). 60966963Speter 61066963Speter 5.0 (October 23, 1999) 61166963Speter Interface changes: 61266963Speter 61362449Speter + implemented the wcolor_set() and slk_color() functions. 61462449Speter 61562449Speter + move macro winch to a function, to hide details of struct ldat 61662449Speter 61762449Speter + corrected prototypes for slk_* functions, using chtype rather than 61862449Speter attr_t. 61962449Speter 62062449Speter + the slk_attr_{set,off,on} functions need an additional void* 62162449Speter parameter according to XSI. 62262449Speter 62362449Speter + modified several prototypes to correspond with 1997 version of X/Open 62462449Speter Curses: [w]attr_get(), [w]attr_set(), border_set() have different 62566963Speter parameters. Some functions were renamed or misspelled: 62662449Speter erase_wchar(), in_wchntr(), mvin_wchntr(). Some developers have used 62762449Speter attr_get(). 62862449Speter 62962449Speter Added extensions: keybound(), curses_version(). 63062449Speter 63162449Speter Terminfo database changes: 63262449Speter 63362449Speter + change translation for termcap 'rs' to terminfo 'rs2', which is 63462449Speter the documented equivalent, rather than 'rs1'. 63562449Speter 63662449Speter The problems are subtler in recent releases. 63762449Speter 63862449Speter a) This release provides users with the ability to define their own 63962449Speter terminal capability extensions, like termcap. To accomplish this, 64062449Speter we redesigned the TERMTYPE struct (in term.h). Very few 64162449Speter applications use this struct. They must be recompiled to work with 64262449Speter the 5.0 library. 64362449Speter 64462449Speter a) If you use the extended terminfo names (i.e., you used configure 64562449Speter --enable-tcap-names), the resulting terminfo database can have some 64662449Speter entries which are not readable by older versions of ncurses. This 64762449Speter is a bug in the older versions: 64862449Speter 64962449Speter + the terminfo database stores booleans, numbers and strings in 65062449Speter arrays. The capabilities that are listed in the arrays are 65162449Speter specified by X/Open. ncurses recognizes a number of obsolete and 65262449Speter extended names which are stored past the end of the specified 65362449Speter entries. 65462449Speter 65562449Speter + a change to read_entry.c in 951001 made the library do an lseek() 65662449Speter call incorrectly skipping data which is already read from the 65762449Speter string array. This happens when the number of strings in the 65862449Speter terminfo data file is greater than STRCOUNT, the number of 65962449Speter specified and obsolete or extended strings. 66062449Speter 66162449Speter + as part of alignment with the X/Open final specification, in the 66262449Speter 990109 patch we added two new terminfo capabilities: 66362449Speter set_a_attributes and set_pglen_inch). This makes the indices for 66462449Speter the obsolete and extended capabilities shift up by 2. 66562449Speter 66662449Speter + the last two capabilities in the obsolete/extended list are memu 66762449Speter and meml, which are found in most terminfo descriptions for xterm. 66862449Speter 66962449Speter When trying to read this terminfo entry, the spurious lseek() 67062449Speter causes the library to attempt to read the final portion of the 67162449Speter terminfo data (the text of the string capabilities) 4 characters 67262449Speter past its starting point, and reads 4 characters too few. The 67362449Speter library rejects the data, and applications are unable to 67462449Speter initialize that terminal type. 67562449Speter 67662449Speter FIX: remove memu and meml from the xterm description. They are 67762449Speter obsolete, not used by ncurses. (It appears that the feature was 67862449Speter added to xterm to make it more like hpterm). 67962449Speter 68062449Speter This is not a problem if you do not use the -x option of tic to 68162449Speter create a terminfo database with extended names. Note that the 68262449Speter user-defined terminal capabilities are not affected by this bug, 68362449Speter since they are stored in a table after the older terminfo data ends, 68462449Speter and are invisible to the older libraries. 68562449Speter 68662449Speter c) Some developers did not wish to use the C++ binding, and used the 68762449Speter configure --without-cxx option. This causes problems if someone 68862449Speter uses the ncurses library from C++ because that configure test 68962449Speter determines the type for C++'s bool and makes ncurses match it, since 69062449Speter both C++ and curses are specified to declare bool. Calling ncurses 69162449Speter functions with the incorrect type for bool will cause execution 69262449Speter errors. In 5.0 we added a configure option "--without-cxx-binding" 69362449Speter which controls whether the binding itself is built and installed. 69462449Speter 69566963Speter 4.2 (March 2, 1998) 69666963Speter Interface changes: 69762449Speter 69862449Speter + correct prototype for termattrs() as per XPG4 version 2. 69962449Speter 70062449Speter + add placeholder prototypes for color_set(), erasewchar(), 70162449Speter term_attrs(), wcolor_set() as per XPG4 version 2. 70262449Speter 70362449Speter + add macros getcur[xy] getbeg[xy] getpar[xy], which are defined in 70462449Speter SVr4 headers. 70562449Speter 70662449Speter New extensions: keyok() and define_key(). 70762449Speter 70862449Speter Terminfo database changes: 70962449Speter 71062449Speter + corrected definition in curses.h for ACS_LANTERN, which was 'I' 71162449Speter rather than 'i'. 71262449Speter 71362449Speter 4.1 (May 15, 1997) 71462449Speter 71562449Speter We added these extensions: use_default_colors(). Also added 71662449Speter configure option --enable-const, to support the use of const where 71762449Speter X/Open should have, but did not, specify. 71862449Speter 71962449Speter The terminfo database content changed the representation of color for 72062449Speter most entries that use ANSI colors. SVr4 curses treats the setaf/setab 72162449Speter and setf/setb capabilities differently, interchanging the red/blue 72262449Speter colors in the latter. 72362449Speter 72462449Speter 4.0 (December 24, 1996) 72562449Speter 72662449Speter We bumped to version 4.0 because the newly released dynamic loader 72762449Speter (ld.so.1.8.5) on Linux did not load shared libraries whose ABI and REL 72862449Speter versions were inconsistent. At that point, ncurses ABI was 3.4 and the 72962449Speter REL was 1.9.9g, so we made them consistent. 73062449Speter 73162449Speter 1.9.9g (December 1, 1996) 73262449Speter 73366963Speter This fixed most of the problems with 1.9.9e, and made these interface 73462449Speter changes: 73562449Speter 73662449Speter + remove tparam(), which had been provided for compatibility with 73762449Speter some termcap. tparm() is standard, and does not conflict with 73862449Speter application's fallback for missing tparam(). 73962449Speter 74062449Speter + turn off hardware echo in initscr(). This changes the sense of the 74162449Speter echo() function, which was initialized to echoing rather than 74262449Speter nonechoing (the latter is specified). There were several other 74362449Speter corrections to the terminal I/O settings which cause applications to 74462449Speter behave differently. 74562449Speter 74662449Speter + implemented several functions (such as attr_on()) which were 74762449Speter available only as macros. 74862449Speter 74962449Speter + corrected several typos in curses.h.in (i.e., the mvXXXX macros). 75062449Speter 75162449Speter + corrected prototypes for delay_output(), 75262449Speter has_color, immedok() and idcok(). 75362449Speter 75462449Speter + corrected misspelled getbkgd(). Some applications used the 75562449Speter misspelled name. 75662449Speter 75762449Speter + added _yoffset to WINDOW. The size of WINDOW does not impact 75862449Speter applications, since they use only pointers to WINDOW structs. 75962449Speter 76062449Speter These changes were made to the terminfo database: 76162449Speter 76262449Speter + removed boolean 'getm' which was available as an extended name. 76362449Speter 76462449Speter We added these extensions: wresize(), resizeterm(), has_key() and 76562449Speter mcprint(). 76662449Speter 76762449Speter 1.9.9e (March 24, 1996) 76862449Speter 76962449Speter not recommended (a last-minute/untested change left the forms and 77066963Speter menus libraries unusable since they do not repaint the screen). 77162449Speter Foreground/background colors are combined incorrectly, working properly 77262449Speter only on a black background. When this was released, the X/Open 77362449Speter specification was available only in draft form. 77462449Speter 77562449Speter Some applications (such as lxdialog) were "fixed" to work with the 77662449Speter incorrect color scheme. 77762449Speter 77862449Speter 77950276SpeterIF YOU ARE A SYSTEM INTEGRATOR: 78062449Speter------------------------------ 78150276Speter 78250276Speter Beginning with 1.9.9, the ncurses distribution includes both a tset 78350276Speter utility and /usr/share/tabset directory. If you are installing ncurses, 78450276Speter it is no longer either necessary or desirable to install tset-jv. 78550276Speter 78650276Speter Configuration and Installation: 78750276Speter 78850276Speter Configure with --prefix=/usr to make the install productions put 78950276Speter libraries and headers in the correct locations (overwriting any 79050276Speter previous curses libraries and headers). This will put the terminfo 79150276Speter hierarchy under /usr/share/terminfo; you may want to override this with 79250276Speter --datadir=/usr/share/misc; terminfo and tabset are installed under the 79350276Speter data directory. 79450276Speter 79550276Speter Please configure the ncurses library in a pure-terminfo mode; that 79650276Speter is, with the --disable-termcap option. This will make the ncurses 79750276Speter library smaller and faster. The ncurses library includes a termcap 79850276Speter emulation that queries the terminfo database, so even applications 79950276Speter that use raw termcap to query terminal characteristics will win 80050276Speter (providing you recompile and relink them!). 80150276Speter 80250276Speter If you must configure with termcap fallback enabled, you may also 80350276Speter wish to use the --enable-getcap option. This option speeds up 80450276Speter termcap-based startups, at the expense of not allowing personal 80550276Speter termcap entries to reference the terminfo tree. See the code in 80650276Speter ncurses/tinfo/read_termcap.c for details. 80750276Speter 80850276Speter Note that if you have $TERMCAP set, ncurses will use that value 80950276Speter to locate termcap data. In particular, running from xterm will 81050276Speter set $TERMCAP to the contents of the xterm's termcap entry. 81150276Speter If ncurses sees that, it will not examine /etc/termcap. 81250276Speter 81350276Speter Keyboard Mapping: 81450276Speter 81550276Speter The terminfo file assumes that Shift-Tab generates \E[Z (the ECMA-48 81650276Speter reverse-tabulation sequence) rather than ^I. Here are the loadkeys -d 81750276Speter mappings that will set this up: 81850276Speter 81966963Speter keycode 15 = Tab Tab 82050276Speter alt keycode 15 = Meta_Tab 82150276Speter shift keycode 15 = F26 82250276Speter string F26 ="\033[Z" 82350276Speter 82450276Speter Naming the Console Terminal 82550276Speter 82650276Speter In various Linuxes (and possibly elsewhere) there has been a practice 82750276Speter of designating the system console driver type as `console'. Please 82850276Speter do not do this any more! It complicates peoples' lives, because it 82950276Speter can mean that several different terminfo entries from different 83050276Speter operating systems all logically want to be called `console'. 83150276Speter 83250276Speter Please pick a name unique to your console driver and set that up 83350276Speter in the /etc/inittab table or local equivalent. Send the entry to the 83450276Speter terminfo maintainer (listed in the misc/terminfo file) to be included 83550276Speter in the terminfo file, if it's not already there. See the 83650276Speter term(7) manual page included with this distribution for more on 83750276Speter conventions for choosing type names. 83850276Speter 83950276Speter Here are some recommended primary console names: 84050276Speter 84150276Speter linux -- Linux console driver 84250276Speter freebsd -- FreeBSD 84350276Speter netbsd -- NetBSD 84450276Speter bsdos -- BSD/OS 84550276Speter 84650276Speter If you are responsible for integrating ncurses for one of these 84750276Speter distribution, please either use the recommended name or get back 84850276Speter to us explaining why you don't want to, so we can work out nomenclature 84950276Speter that will make users' lives easier rather than harder. 85050276Speter 85162449Speter 85262449SpeterRECENT XTERM VERSIONS: 85362449Speter--------------------- 85462449Speter 85550276Speter The terminfo database file included with this distribution assumes you 85650276Speter are running an XFree86 xterm based on X11R6 (i.e., xterm-r6). The 85750276Speter earlier X11R5 entry (xterm-r5) is provided as well. 85850276Speter 85950276Speter If you are running XFree86 version 3.2 (actually 3.1.2F and up), you 86050276Speter should consider using the xterm-xf86-v32 (or later, the most recent 86150276Speter version is always named "xterm-xfree86") entry, which adds ANSI color 86250276Speter and the VT220 capabilities which have been added in XFree86. If you 86350276Speter are running a mixed network, however, where this terminal description 86450276Speter may be used on an older xterm, you may have problems, since 86550276Speter applications that assume these capabilities will produce incorrect 86650276Speter output on the older xterm (e.g., highlighting is not cleared). 86750276Speter 86862449Speter 86962449SpeterCONFIGURING FALLBACK ENTRIES: 87062449Speter---------------------------- 87162449Speter 87250276Speter In order to support operation of ncurses programs before the terminfo 87350276Speter tree is accessible (that is, in single-user mode or at OS installation 87450276Speter time) the ncurses library can be compiled to include an array of 87550276Speter pre-fetched fallback entries. 87650276Speter 87750276Speter These entries are checked by setupterm() only when the conventional 87850276Speter fetches from the terminfo tree and the termcap fallback (if configured) 87950276Speter have been tried and failed. Thus, the presence of a fallback will not 88050276Speter shadow modifications to the on-disk entry for the same type, when that 88150276Speter entry is accessible. 88250276Speter 88350276Speter By default, there are no entries on the fallback list. After you 88450276Speter have built the ncurses suite for the first time, you can change 88550276Speter the list (the process needs infocmp(1)). To do so, use the script 88650276Speter MKfallback.sh. A configure script option --with-fallbacks does this 88750276Speter (it accepts a comma-separated list of the names you wish, and does 88850276Speter not require a rebuild). 88950276Speter 89050276Speter If you wanted (say) to have linux, vt100, and xterm fallbacks, you 89150276Speter would use the commands 89250276Speter 89350276Speter cd ncurses; 89450276Speter MKfallback.sh linux vt100 xterm >fallback.c 89550276Speter 89650276Speter Then just rebuild and reinstall the library as you would normally. 89750276Speter You can restore the default empty fallback list with 89850276Speter 89950276Speter MKfallback.sh >fallback.c 90050276Speter 90150276Speter The overhead for an empty fallback list is one trivial stub function. 90250276Speter Any non-empty fallback list is const-ed and therefore lives in sharable 90350276Speter text space. You can look at the comment trailing each initializer in 90450276Speter the generated ncurses/fallback.c file to see the core cost of the 90550276Speter fallbacks. A good rule of thumb for modern vt100-like entries is that 90650276Speter each one will cost about 2.5K of text space. 90750276Speter 90862449Speter 90950276SpeterBSD CONVERSION NOTES: 91062449Speter-------------------- 91162449Speter 91250276Speter If you need to support really ancient BSD programs, you probably 91350276Speter want to configure with the --enable-bsdpad option. What this does 91450276Speter is enable code in tputs() that recognizes a numeric prefix on a 91550276Speter capability as a request for that much trailing padding in milliseconds. 91650276Speter There are old BSD programs that do things like tputs("50"). 91750276Speter 91850276Speter (If you are distributing ncurses as a support-library component of 91950276Speter an application you probably want to put the remainder of this section 92050276Speter in the package README file.) 92150276Speter 92266963Speter The following note applies only if you have configured ncurses with 92350276Speter --enable-termcap. 92450276Speter 92550276Speter------------------------------- CUT HERE -------------------------------- 92650276Speter 92750276SpeterIf you are installing this application privately (either because you 92850276Speterhave no root access or want to experiment with it before doing a root 92950276Speterinstallation), there are a couple of details you need to be aware of. 93050276SpeterThey have to do with the ncurses library, which uses terminfo rather 93150276Speterthan termcap for describing terminal characteristics. 93250276Speter 93350276SpeterThough the ncurses library is terminfo-based, it will interpret your 93450276SpeterTERMCAP variable (if present), any local termcap files you reference 93550276Speterthrough it, and the system termcap file. However, in order to avoid 93650276Speterslowing down your application startup, it will only do this once per 93750276Speterterminal type! 93850276Speter 93950276SpeterThe first time you load a given terminal type from your termcap 94050276Speterdatabase, the library initialization code will automatically write it 94150276Speterin terminfo format to a subdirectory under $HOME/.terminfo. After 94250276Speterthat, the initialization code will find it there and do a (much 94350276Speterfaster) terminfo fetch. 94450276Speter 94550276SpeterUsually, all this means is that your home directory will silently grow 94650276Speteran invisible .terminfo subdirectory which will get filled in with 94750276Speterterminfo descriptions of terminal types as you invoke them. If anyone 94850276Speterever installs a global terminfo tree on your system, this will quietly 94950276Speterstop happening and your $HOME/.terminfo will become redundant. 95050276Speter 95150276SpeterThe objective of all this logic is to make converting from BSD termcap 95250276Speteras painless as possible without slowing down your application (termcap 95350276Spetercompilation is expensive). 95450276Speter 95550276SpeterIf you don't have a TERMCAP variable or custom personal termcap file, 95650276Speteryou can skip the rest of this dissertation. 95750276Speter 95850276SpeterIf you *do* have a TERMCAP variable and/or a custom personal termcap file 95950276Speterthat defines a terminal type, that definition will stop being visible 96050276Speterto this application after the first time you run it, because it will 96150276Speterinstead see the terminfo entry that it wrote to $HOME/terminfo the 96250276Speterfirst time around. 96350276Speter 96450276SpeterSubsequently, editing the TERMCAP variable or personal TERMCAP file 96550276Speterwill have no effect unless you explicitly remove the terminfo entry 96650276Speterunder $HOME/terminfo. If you do that, the entry will be recompiled 96750276Speterfrom your termcap resources the next time it is invoked. 96850276Speter 96950276SpeterTo avoid these complications, use infocmp(1) and tic(1) to edit the 97050276Speterterminfo directory directly. 97150276Speter 97250276Speter------------------------------- CUT HERE -------------------------------- 97350276Speter 97450276SpeterUSING NCURSES WITH AFS: 97550276Speter AFS treats each directory as a separate logical filesystem, you 97650276Speter can't hard-link across them. The --enable-symlinks option copes 97750276Speter with this by making tic use symbolic links. 97850276Speter 97950276SpeterUSING NCURSES WITH EMACS: 98050276Speter GNU Emacs has its own termcap support. By default, it uses a mixture 98150276Speter of those functions and code linked from the host system's libraries. 98250276Speter You need to foil this and shut out the GNU termcap library entirely. 98350276Speter 98450276Speter In order to do this, hack the Linux config file (s/linux.h) to contain 98550276Speter a #define TERMINFO and set the symbol LIBS_TERMCAP to "-lncurses". 98650276Speter 98750276Speter We have submitted such a change for the 19.30 release, so it may 98850276Speter already be applied in your sources -- check for the #define TERMINFO. 98950276Speter 99050276SpeterUSING NCURSES WITH GPM: 99150276Speter Ncurses 4.1 and up can be configured to use GPM (General Purpose Mouse) 99250276Speter which is used on Linux console. Be aware that GPM is commonly 99350276Speter installed as a shared library which contains a wrapper for the curses 99450276Speter wgetch() function (libcurses.o). Some integrators have simplified 99566963Speter linking applications by combining all or part of libcurses.so (the BSD 99666963Speter curses) into the libgpm.so file, producing symbol conflicts with 99766963Speter ncurses (specifically the wgetch function). You may be able to work 99866963Speter around this problem by linking as follows: 99950276Speter 100050276Speter cc -o foo foo.o -lncurses -lgpm -lncurses 100150276Speter 100250276Speter but the linker may not cooperate, producing mysterious errors. 100350276Speter A patched version of gpm is available: 100450276Speter 100562449Speter dickey.his.com:/ncurses/gpm-1.10-970125.tar.gz 100650276Speter 100750276Speter This patch is incorporated in gpm 1.12; however some integrators 100866963Speter are slow to update this library. Current distributions of gpm can 100966963Speter be configured properly using the --without-curses option. 101050276Speter 101166963SpeterBUILDING NCURSES WITH A CROSS-COMPILER 101266963Speter Ncurses can be built with a cross-compiler. Some parts must be built 101366963Speter with the host's compiler since they are used for building programs 101466963Speter (e.g., ncurses/make_hash and ncurses/make_keys) that generate tables 101566963Speter that are compiled into the ncurses library. You should set the 101666963Speter BUILD_CC environment variable to your host's compiler, and run the 101766963Speter configure script configuring for the cross-compiler. 101850276Speter 101966963Speter Note that all of the generated source-files which are part of ncurses 102066963Speter will be made if you use 102150276Speter 102266963Speter make sources 102350276Speter 102466963Speter This would be useful in porting to an environment which has little 102566963Speter support for the tools used to generate the sources, e.g., sed, awk and 102666963Speter Bourne-shell. 102766963Speter 102850276SpeterBUGS: 102950276Speter Send any feedback to the ncurses mailing list at 103062449Speter bug-ncurses@gnu.org. To subscribe send mail to 103162449Speter bug-ncurses-request@gnu.org with body that reads: 103250276Speter subscribe ncurses <your-email-address-here> 103350276Speter 103466963Speter The Hacker's Guide in the doc directory includes some guidelines 103550276Speter on how to report bugs in ways that will get them fixed most quickly. 1036