INSTALL revision d9c7fc6c
1d9c7fc6cSmrgInstallation Instructions
2d9c7fc6cSmrg*************************
3d9c7fc6cSmrg
4d9c7fc6cSmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
5d9c7fc6cSmrgSoftware Foundation, Inc.
6d9c7fc6cSmrg
7d9c7fc6cSmrgThis file is free documentation; the Free Software Foundation gives
8d9c7fc6cSmrgunlimited permission to copy, distribute and modify it.
9d9c7fc6cSmrg
10d9c7fc6cSmrgBasic Installation
11d9c7fc6cSmrg==================
12d9c7fc6cSmrg
13d9c7fc6cSmrgThese are generic installation instructions.
14d9c7fc6cSmrg
15d9c7fc6cSmrg   The `configure' shell script attempts to guess correct values for
16d9c7fc6cSmrgvarious system-dependent variables used during compilation.  It uses
17d9c7fc6cSmrgthose values to create a `Makefile' in each directory of the package.
18d9c7fc6cSmrgIt may also create one or more `.h' files containing system-dependent
19d9c7fc6cSmrgdefinitions.  Finally, it creates a shell script `config.status' that
20d9c7fc6cSmrgyou can run in the future to recreate the current configuration, and a
21d9c7fc6cSmrgfile `config.log' containing compiler output (useful mainly for
22d9c7fc6cSmrgdebugging `configure').
23d9c7fc6cSmrg
24d9c7fc6cSmrg   It can also use an optional file (typically called `config.cache'
25d9c7fc6cSmrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
26d9c7fc6cSmrgthe results of its tests to speed up reconfiguring.  (Caching is
27d9c7fc6cSmrgdisabled by default to prevent problems with accidental use of stale
28d9c7fc6cSmrgcache files.)
29d9c7fc6cSmrg
30d9c7fc6cSmrg   If you need to do unusual things to compile the package, please try
31d9c7fc6cSmrgto figure out how `configure' could check whether to do them, and mail
32d9c7fc6cSmrgdiffs or instructions to the address given in the `README' so they can
33d9c7fc6cSmrgbe considered for the next release.  If you are using the cache, and at
34d9c7fc6cSmrgsome point `config.cache' contains results you don't want to keep, you
35d9c7fc6cSmrgmay remove or edit it.
36d9c7fc6cSmrg
37d9c7fc6cSmrg   The file `configure.ac' (or `configure.in') is used to create
38d9c7fc6cSmrg`configure' by a program called `autoconf'.  You only need
39d9c7fc6cSmrg`configure.ac' if you want to change it or regenerate `configure' using
40d9c7fc6cSmrga newer version of `autoconf'.
41d9c7fc6cSmrg
42d9c7fc6cSmrgThe simplest way to compile this package is:
43d9c7fc6cSmrg
44d9c7fc6cSmrg  1. `cd' to the directory containing the package's source code and type
45d9c7fc6cSmrg     `./configure' to configure the package for your system.  If you're
46d9c7fc6cSmrg     using `csh' on an old version of System V, you might need to type
47d9c7fc6cSmrg     `sh ./configure' instead to prevent `csh' from trying to execute
48d9c7fc6cSmrg     `configure' itself.
49d9c7fc6cSmrg
50d9c7fc6cSmrg     Running `configure' takes awhile.  While running, it prints some
51d9c7fc6cSmrg     messages telling which features it is checking for.
52d9c7fc6cSmrg
53d9c7fc6cSmrg  2. Type `make' to compile the package.
54d9c7fc6cSmrg
55d9c7fc6cSmrg  3. Optionally, type `make check' to run any self-tests that come with
56d9c7fc6cSmrg     the package.
57d9c7fc6cSmrg
58d9c7fc6cSmrg  4. Type `make install' to install the programs and any data files and
59d9c7fc6cSmrg     documentation.
60d9c7fc6cSmrg
61d9c7fc6cSmrg  5. You can remove the program binaries and object files from the
62d9c7fc6cSmrg     source code directory by typing `make clean'.  To also remove the
63d9c7fc6cSmrg     files that `configure' created (so you can compile the package for
64d9c7fc6cSmrg     a different kind of computer), type `make distclean'.  There is
65d9c7fc6cSmrg     also a `make maintainer-clean' target, but that is intended mainly
66d9c7fc6cSmrg     for the package's developers.  If you use it, you may have to get
67d9c7fc6cSmrg     all sorts of other programs in order to regenerate files that came
68d9c7fc6cSmrg     with the distribution.
69d9c7fc6cSmrg
70d9c7fc6cSmrgCompilers and Options
71d9c7fc6cSmrg=====================
72d9c7fc6cSmrg
73d9c7fc6cSmrgSome systems require unusual options for compilation or linking that the
74d9c7fc6cSmrg`configure' script does not know about.  Run `./configure --help' for
75d9c7fc6cSmrgdetails on some of the pertinent environment variables.
76d9c7fc6cSmrg
77d9c7fc6cSmrg   You can give `configure' initial values for configuration parameters
78d9c7fc6cSmrgby setting variables in the command line or in the environment.  Here
79d9c7fc6cSmrgis an example:
80d9c7fc6cSmrg
81d9c7fc6cSmrg     ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
82d9c7fc6cSmrg
83d9c7fc6cSmrg   *Note Defining Variables::, for more details.
84d9c7fc6cSmrg
85d9c7fc6cSmrgCompiling For Multiple Architectures
86d9c7fc6cSmrg====================================
87d9c7fc6cSmrg
88d9c7fc6cSmrgYou can compile the package for more than one kind of computer at the
89d9c7fc6cSmrgsame time, by placing the object files for each architecture in their
90d9c7fc6cSmrgown directory.  To do this, you must use a version of `make' that
91d9c7fc6cSmrgsupports the `VPATH' variable, such as GNU `make'.  `cd' to the
92d9c7fc6cSmrgdirectory where you want the object files and executables to go and run
93d9c7fc6cSmrgthe `configure' script.  `configure' automatically checks for the
94d9c7fc6cSmrgsource code in the directory that `configure' is in and in `..'.
95d9c7fc6cSmrg
96d9c7fc6cSmrg   If you have to use a `make' that does not support the `VPATH'
97d9c7fc6cSmrgvariable, you have to compile the package for one architecture at a
98d9c7fc6cSmrgtime in the source code directory.  After you have installed the
99d9c7fc6cSmrgpackage for one architecture, use `make distclean' before reconfiguring
100d9c7fc6cSmrgfor another architecture.
101d9c7fc6cSmrg
102d9c7fc6cSmrgInstallation Names
103d9c7fc6cSmrg==================
104d9c7fc6cSmrg
105d9c7fc6cSmrgBy default, `make install' installs the package's commands under
106d9c7fc6cSmrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
107d9c7fc6cSmrgcan specify an installation prefix other than `/usr/local' by giving
108d9c7fc6cSmrg`configure' the option `--prefix=PREFIX'.
109d9c7fc6cSmrg
110d9c7fc6cSmrg   You can specify separate installation prefixes for
111d9c7fc6cSmrgarchitecture-specific files and architecture-independent files.  If you
112d9c7fc6cSmrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
113d9c7fc6cSmrgPREFIX as the prefix for installing programs and libraries.
114d9c7fc6cSmrgDocumentation and other data files still use the regular prefix.
115d9c7fc6cSmrg
116d9c7fc6cSmrg   In addition, if you use an unusual directory layout you can give
117d9c7fc6cSmrgoptions like `--bindir=DIR' to specify different values for particular
118d9c7fc6cSmrgkinds of files.  Run `configure --help' for a list of the directories
119d9c7fc6cSmrgyou can set and what kinds of files go in them.
120d9c7fc6cSmrg
121d9c7fc6cSmrg   If the package supports it, you can cause programs to be installed
122d9c7fc6cSmrgwith an extra prefix or suffix on their names by giving `configure' the
123d9c7fc6cSmrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
124d9c7fc6cSmrg
125d9c7fc6cSmrgOptional Features
126d9c7fc6cSmrg=================
127d9c7fc6cSmrg
128d9c7fc6cSmrgSome packages pay attention to `--enable-FEATURE' options to
129d9c7fc6cSmrg`configure', where FEATURE indicates an optional part of the package.
130d9c7fc6cSmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
131d9c7fc6cSmrgis something like `gnu-as' or `x' (for the X Window System).  The
132d9c7fc6cSmrg`README' should mention any `--enable-' and `--with-' options that the
133d9c7fc6cSmrgpackage recognizes.
134d9c7fc6cSmrg
135d9c7fc6cSmrg   For packages that use the X Window System, `configure' can usually
136d9c7fc6cSmrgfind the X include and library files automatically, but if it doesn't,
137d9c7fc6cSmrgyou can use the `configure' options `--x-includes=DIR' and
138d9c7fc6cSmrg`--x-libraries=DIR' to specify their locations.
139d9c7fc6cSmrg
140d9c7fc6cSmrgSpecifying the System Type
141d9c7fc6cSmrg==========================
142d9c7fc6cSmrg
143d9c7fc6cSmrgThere may be some features `configure' cannot figure out automatically,
144d9c7fc6cSmrgbut needs to determine by the type of machine the package will run on.
145d9c7fc6cSmrgUsually, assuming the package is built to be run on the _same_
146d9c7fc6cSmrgarchitectures, `configure' can figure that out, but if it prints a
147d9c7fc6cSmrgmessage saying it cannot guess the machine type, give it the
148d9c7fc6cSmrg`--build=TYPE' option.  TYPE can either be a short name for the system
149d9c7fc6cSmrgtype, such as `sun4', or a canonical name which has the form:
150d9c7fc6cSmrg
151d9c7fc6cSmrg     CPU-COMPANY-SYSTEM
152d9c7fc6cSmrg
153d9c7fc6cSmrgwhere SYSTEM can have one of these forms:
154d9c7fc6cSmrg
155d9c7fc6cSmrg     OS KERNEL-OS
156d9c7fc6cSmrg
157d9c7fc6cSmrg   See the file `config.sub' for the possible values of each field.  If
158d9c7fc6cSmrg`config.sub' isn't included in this package, then this package doesn't
159d9c7fc6cSmrgneed to know the machine type.
160d9c7fc6cSmrg
161d9c7fc6cSmrg   If you are _building_ compiler tools for cross-compiling, you should
162d9c7fc6cSmrguse the option `--target=TYPE' to select the type of system they will
163d9c7fc6cSmrgproduce code for.
164d9c7fc6cSmrg
165d9c7fc6cSmrg   If you want to _use_ a cross compiler, that generates code for a
166d9c7fc6cSmrgplatform different from the build platform, you should specify the
167d9c7fc6cSmrg"host" platform (i.e., that on which the generated programs will
168d9c7fc6cSmrgeventually be run) with `--host=TYPE'.
169d9c7fc6cSmrg
170d9c7fc6cSmrgSharing Defaults
171d9c7fc6cSmrg================
172d9c7fc6cSmrg
173d9c7fc6cSmrgIf you want to set default values for `configure' scripts to share, you
174d9c7fc6cSmrgcan create a site shell script called `config.site' that gives default
175d9c7fc6cSmrgvalues for variables like `CC', `cache_file', and `prefix'.
176d9c7fc6cSmrg`configure' looks for `PREFIX/share/config.site' if it exists, then
177d9c7fc6cSmrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
178d9c7fc6cSmrg`CONFIG_SITE' environment variable to the location of the site script.
179d9c7fc6cSmrgA warning: not all `configure' scripts look for a site script.
180d9c7fc6cSmrg
181d9c7fc6cSmrgDefining Variables
182d9c7fc6cSmrg==================
183d9c7fc6cSmrg
184d9c7fc6cSmrgVariables not defined in a site shell script can be set in the
185d9c7fc6cSmrgenvironment passed to `configure'.  However, some packages may run
186d9c7fc6cSmrgconfigure again during the build, and the customized values of these
187d9c7fc6cSmrgvariables may be lost.  In order to avoid this problem, you should set
188d9c7fc6cSmrgthem in the `configure' command line, using `VAR=value'.  For example:
189d9c7fc6cSmrg
190d9c7fc6cSmrg     ./configure CC=/usr/local2/bin/gcc
191d9c7fc6cSmrg
192d9c7fc6cSmrgcauses the specified `gcc' to be used as the C compiler (unless it is
193d9c7fc6cSmrgoverridden in the site shell script).  Here is a another example:
194d9c7fc6cSmrg
195d9c7fc6cSmrg     /bin/bash ./configure CONFIG_SHELL=/bin/bash
196d9c7fc6cSmrg
197d9c7fc6cSmrgHere the `CONFIG_SHELL=/bin/bash' operand causes subsequent
198d9c7fc6cSmrgconfiguration-related scripts to be executed by `/bin/bash'.
199d9c7fc6cSmrg
200d9c7fc6cSmrg`configure' Invocation
201d9c7fc6cSmrg======================
202d9c7fc6cSmrg
203d9c7fc6cSmrg`configure' recognizes the following options to control how it operates.
204d9c7fc6cSmrg
205d9c7fc6cSmrg`--help'
206d9c7fc6cSmrg`-h'
207d9c7fc6cSmrg     Print a summary of the options to `configure', and exit.
208d9c7fc6cSmrg
209d9c7fc6cSmrg`--version'
210d9c7fc6cSmrg`-V'
211d9c7fc6cSmrg     Print the version of Autoconf used to generate the `configure'
212d9c7fc6cSmrg     script, and exit.
213d9c7fc6cSmrg
214d9c7fc6cSmrg`--cache-file=FILE'
215d9c7fc6cSmrg     Enable the cache: use and save the results of the tests in FILE,
216d9c7fc6cSmrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
217d9c7fc6cSmrg     disable caching.
218d9c7fc6cSmrg
219d9c7fc6cSmrg`--config-cache'
220d9c7fc6cSmrg`-C'
221d9c7fc6cSmrg     Alias for `--cache-file=config.cache'.
222d9c7fc6cSmrg
223d9c7fc6cSmrg`--quiet'
224d9c7fc6cSmrg`--silent'
225d9c7fc6cSmrg`-q'
226d9c7fc6cSmrg     Do not print messages saying which checks are being made.  To
227d9c7fc6cSmrg     suppress all normal output, redirect it to `/dev/null' (any error
228d9c7fc6cSmrg     messages will still be shown).
229d9c7fc6cSmrg
230d9c7fc6cSmrg`--srcdir=DIR'
231d9c7fc6cSmrg     Look for the package's source code in directory DIR.  Usually
232d9c7fc6cSmrg     `configure' can determine that directory automatically.
233d9c7fc6cSmrg
234d9c7fc6cSmrg`configure' also accepts some other, not widely useful, options.  Run
235d9c7fc6cSmrg`configure --help' for more details.
236d9c7fc6cSmrg
237