INSTALL revision a7b590b3
1a7b590b3SmrgInstallation Instructions
2a7b590b3Smrg*************************
3a7b590b3Smrg
4a7b590b3SmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
5a7b590b3Smrg2006, 2007, 2008 Free Software Foundation, Inc.
6a7b590b3Smrg
7a7b590b3Smrg   This file is free documentation; the Free Software Foundation gives
8a7b590b3Smrgunlimited permission to copy, distribute and modify it.
9a7b590b3Smrg
10a7b590b3SmrgBasic Installation
11a7b590b3Smrg==================
12a7b590b3Smrg
13a7b590b3Smrg   Briefly, the shell commands `./configure; make; make install' should
14a7b590b3Smrgconfigure, build, and install this package.  The following
15a7b590b3Smrgmore-detailed instructions are generic; see the `README' file for
16a7b590b3Smrginstructions specific to this package.
17a7b590b3Smrg
18a7b590b3Smrg   The `configure' shell script attempts to guess correct values for
19a7b590b3Smrgvarious system-dependent variables used during compilation.  It uses
20a7b590b3Smrgthose values to create a `Makefile' in each directory of the package.
21a7b590b3SmrgIt may also create one or more `.h' files containing system-dependent
22a7b590b3Smrgdefinitions.  Finally, it creates a shell script `config.status' that
23a7b590b3Smrgyou can run in the future to recreate the current configuration, and a
24a7b590b3Smrgfile `config.log' containing compiler output (useful mainly for
25a7b590b3Smrgdebugging `configure').
26a7b590b3Smrg
27a7b590b3Smrg   It can also use an optional file (typically called `config.cache'
28a7b590b3Smrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
29a7b590b3Smrgthe results of its tests to speed up reconfiguring.  Caching is
30a7b590b3Smrgdisabled by default to prevent problems with accidental use of stale
31a7b590b3Smrgcache files.
32a7b590b3Smrg
33a7b590b3Smrg   If you need to do unusual things to compile the package, please try
34a7b590b3Smrgto figure out how `configure' could check whether to do them, and mail
35a7b590b3Smrgdiffs or instructions to the address given in the `README' so they can
36a7b590b3Smrgbe considered for the next release.  If you are using the cache, and at
37a7b590b3Smrgsome point `config.cache' contains results you don't want to keep, you
38a7b590b3Smrgmay remove or edit it.
39a7b590b3Smrg
40a7b590b3Smrg   The file `configure.ac' (or `configure.in') is used to create
41a7b590b3Smrg`configure' by a program called `autoconf'.  You need `configure.ac' if
42a7b590b3Smrgyou want to change it or regenerate `configure' using a newer version
43a7b590b3Smrgof `autoconf'.
44a7b590b3Smrg
45a7b590b3SmrgThe simplest way to compile this package is:
46a7b590b3Smrg
47a7b590b3Smrg  1. `cd' to the directory containing the package's source code and type
48a7b590b3Smrg     `./configure' to configure the package for your system.
49a7b590b3Smrg
50a7b590b3Smrg     Running `configure' might take a while.  While running, it prints
51a7b590b3Smrg     some messages telling which features it is checking for.
52a7b590b3Smrg
53a7b590b3Smrg  2. Type `make' to compile the package.
54a7b590b3Smrg
55a7b590b3Smrg  3. Optionally, type `make check' to run any self-tests that come with
56a7b590b3Smrg     the package.
57a7b590b3Smrg
58a7b590b3Smrg  4. Type `make install' to install the programs and any data files and
59a7b590b3Smrg     documentation.
60a7b590b3Smrg
61a7b590b3Smrg  5. You can remove the program binaries and object files from the
62a7b590b3Smrg     source code directory by typing `make clean'.  To also remove the
63a7b590b3Smrg     files that `configure' created (so you can compile the package for
64a7b590b3Smrg     a different kind of computer), type `make distclean'.  There is
65a7b590b3Smrg     also a `make maintainer-clean' target, but that is intended mainly
66a7b590b3Smrg     for the package's developers.  If you use it, you may have to get
67a7b590b3Smrg     all sorts of other programs in order to regenerate files that came
68a7b590b3Smrg     with the distribution.
69a7b590b3Smrg
70a7b590b3Smrg  6. Often, you can also type `make uninstall' to remove the installed
71a7b590b3Smrg     files again.
72a7b590b3Smrg
73a7b590b3SmrgCompilers and Options
74a7b590b3Smrg=====================
75a7b590b3Smrg
76a7b590b3Smrg   Some systems require unusual options for compilation or linking that
77a7b590b3Smrgthe `configure' script does not know about.  Run `./configure --help'
78a7b590b3Smrgfor details on some of the pertinent environment variables.
79a7b590b3Smrg
80a7b590b3Smrg   You can give `configure' initial values for configuration parameters
81a7b590b3Smrgby setting variables in the command line or in the environment.  Here
82a7b590b3Smrgis an example:
83a7b590b3Smrg
84a7b590b3Smrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
85a7b590b3Smrg
86a7b590b3Smrg   *Note Defining Variables::, for more details.
87a7b590b3Smrg
88a7b590b3SmrgCompiling For Multiple Architectures
89a7b590b3Smrg====================================
90a7b590b3Smrg
91a7b590b3Smrg   You can compile the package for more than one kind of computer at the
92a7b590b3Smrgsame time, by placing the object files for each architecture in their
93a7b590b3Smrgown directory.  To do this, you can use GNU `make'.  `cd' to the
94a7b590b3Smrgdirectory where you want the object files and executables to go and run
95a7b590b3Smrgthe `configure' script.  `configure' automatically checks for the
96a7b590b3Smrgsource code in the directory that `configure' is in and in `..'.
97a7b590b3Smrg
98a7b590b3Smrg   With a non-GNU `make', it is safer to compile the package for one
99a7b590b3Smrgarchitecture at a time in the source code directory.  After you have
100a7b590b3Smrginstalled the package for one architecture, use `make distclean' before
101a7b590b3Smrgreconfiguring for another architecture.
102a7b590b3Smrg
103a7b590b3Smrg   On MacOS X 10.5 and later systems, you can create libraries and
104a7b590b3Smrgexecutables that work on multiple system types--known as "fat" or
105a7b590b3Smrg"universal" binaries--by specifying multiple `-arch' options to the
106a7b590b3Smrgcompiler but only a single `-arch' option to the preprocessor.  Like
107a7b590b3Smrgthis:
108a7b590b3Smrg
109a7b590b3Smrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
110a7b590b3Smrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
111a7b590b3Smrg                 CPP="gcc -E" CXXCPP="g++ -E"
112a7b590b3Smrg
113a7b590b3Smrg   This is not guaranteed to produce working output in all cases, you
114a7b590b3Smrgmay have to build one architecture at a time and combine the results
115a7b590b3Smrgusing the `lipo' tool if you have problems.
116a7b590b3Smrg
117a7b590b3SmrgInstallation Names
118a7b590b3Smrg==================
119a7b590b3Smrg
120a7b590b3Smrg   By default, `make install' installs the package's commands under
121a7b590b3Smrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
122a7b590b3Smrgcan specify an installation prefix other than `/usr/local' by giving
123a7b590b3Smrg`configure' the option `--prefix=PREFIX'.
124a7b590b3Smrg
125a7b590b3Smrg   You can specify separate installation prefixes for
126a7b590b3Smrgarchitecture-specific files and architecture-independent files.  If you
127a7b590b3Smrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
128a7b590b3SmrgPREFIX as the prefix for installing programs and libraries.
129a7b590b3SmrgDocumentation and other data files still use the regular prefix.
130a7b590b3Smrg
131a7b590b3Smrg   In addition, if you use an unusual directory layout you can give
132a7b590b3Smrgoptions like `--bindir=DIR' to specify different values for particular
133a7b590b3Smrgkinds of files.  Run `configure --help' for a list of the directories
134a7b590b3Smrgyou can set and what kinds of files go in them.
135a7b590b3Smrg
136a7b590b3Smrg   If the package supports it, you can cause programs to be installed
137a7b590b3Smrgwith an extra prefix or suffix on their names by giving `configure' the
138a7b590b3Smrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
139a7b590b3Smrg
140a7b590b3SmrgOptional Features
141a7b590b3Smrg=================
142a7b590b3Smrg
143a7b590b3Smrg   Some packages pay attention to `--enable-FEATURE' options to
144a7b590b3Smrg`configure', where FEATURE indicates an optional part of the package.
145a7b590b3SmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
146a7b590b3Smrgis something like `gnu-as' or `x' (for the X Window System).  The
147a7b590b3Smrg`README' should mention any `--enable-' and `--with-' options that the
148a7b590b3Smrgpackage recognizes.
149a7b590b3Smrg
150a7b590b3Smrg   For packages that use the X Window System, `configure' can usually
151a7b590b3Smrgfind the X include and library files automatically, but if it doesn't,
152a7b590b3Smrgyou can use the `configure' options `--x-includes=DIR' and
153a7b590b3Smrg`--x-libraries=DIR' to specify their locations.
154a7b590b3Smrg
155a7b590b3SmrgParticular systems
156a7b590b3Smrg==================
157a7b590b3Smrg
158a7b590b3Smrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
159a7b590b3SmrgCC is not installed, it is recommended to use the following options in
160a7b590b3Smrgorder to use an ANSI C compiler:
161a7b590b3Smrg
162a7b590b3Smrg     ./configure CC="cc -Ae"
163a7b590b3Smrg
164a7b590b3Smrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
165a7b590b3Smrg
166a7b590b3Smrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
167a7b590b3Smrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
168a7b590b3Smrga workaround.  If GNU CC is not installed, it is therefore recommended
169a7b590b3Smrgto try
170a7b590b3Smrg
171a7b590b3Smrg     ./configure CC="cc"
172a7b590b3Smrg
173a7b590b3Smrgand if that doesn't work, try
174a7b590b3Smrg
175a7b590b3Smrg     ./configure CC="cc -nodtk"
176a7b590b3Smrg
177a7b590b3SmrgSpecifying the System Type
178a7b590b3Smrg==========================
179a7b590b3Smrg
180a7b590b3Smrg   There may be some features `configure' cannot figure out
181a7b590b3Smrgautomatically, but needs to determine by the type of machine the package
182a7b590b3Smrgwill run on.  Usually, assuming the package is built to be run on the
183a7b590b3Smrg_same_ architectures, `configure' can figure that out, but if it prints
184a7b590b3Smrga message saying it cannot guess the machine type, give it the
185a7b590b3Smrg`--build=TYPE' option.  TYPE can either be a short name for the system
186a7b590b3Smrgtype, such as `sun4', or a canonical name which has the form:
187a7b590b3Smrg
188a7b590b3Smrg     CPU-COMPANY-SYSTEM
189a7b590b3Smrg
190a7b590b3Smrgwhere SYSTEM can have one of these forms:
191a7b590b3Smrg
192a7b590b3Smrg     OS KERNEL-OS
193a7b590b3Smrg
194a7b590b3Smrg   See the file `config.sub' for the possible values of each field.  If
195a7b590b3Smrg`config.sub' isn't included in this package, then this package doesn't
196a7b590b3Smrgneed to know the machine type.
197a7b590b3Smrg
198a7b590b3Smrg   If you are _building_ compiler tools for cross-compiling, you should
199a7b590b3Smrguse the option `--target=TYPE' to select the type of system they will
200a7b590b3Smrgproduce code for.
201a7b590b3Smrg
202a7b590b3Smrg   If you want to _use_ a cross compiler, that generates code for a
203a7b590b3Smrgplatform different from the build platform, you should specify the
204a7b590b3Smrg"host" platform (i.e., that on which the generated programs will
205a7b590b3Smrgeventually be run) with `--host=TYPE'.
206a7b590b3Smrg
207a7b590b3SmrgSharing Defaults
208a7b590b3Smrg================
209a7b590b3Smrg
210a7b590b3Smrg   If you want to set default values for `configure' scripts to share,
211a7b590b3Smrgyou can create a site shell script called `config.site' that gives
212a7b590b3Smrgdefault values for variables like `CC', `cache_file', and `prefix'.
213a7b590b3Smrg`configure' looks for `PREFIX/share/config.site' if it exists, then
214a7b590b3Smrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
215a7b590b3Smrg`CONFIG_SITE' environment variable to the location of the site script.
216a7b590b3SmrgA warning: not all `configure' scripts look for a site script.
217a7b590b3Smrg
218a7b590b3SmrgDefining Variables
219a7b590b3Smrg==================
220a7b590b3Smrg
221a7b590b3Smrg   Variables not defined in a site shell script can be set in the
222a7b590b3Smrgenvironment passed to `configure'.  However, some packages may run
223a7b590b3Smrgconfigure again during the build, and the customized values of these
224a7b590b3Smrgvariables may be lost.  In order to avoid this problem, you should set
225a7b590b3Smrgthem in the `configure' command line, using `VAR=value'.  For example:
226a7b590b3Smrg
227a7b590b3Smrg     ./configure CC=/usr/local2/bin/gcc
228a7b590b3Smrg
229a7b590b3Smrgcauses the specified `gcc' to be used as the C compiler (unless it is
230a7b590b3Smrgoverridden in the site shell script).
231a7b590b3Smrg
232a7b590b3SmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
233a7b590b3Smrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
234a7b590b3Smrg
235a7b590b3Smrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
236a7b590b3Smrg
237a7b590b3Smrg`configure' Invocation
238a7b590b3Smrg======================
239a7b590b3Smrg
240a7b590b3Smrg   `configure' recognizes the following options to control how it
241a7b590b3Smrgoperates.
242a7b590b3Smrg
243a7b590b3Smrg`--help'
244a7b590b3Smrg`-h'
245a7b590b3Smrg     Print a summary of all of the options to `configure', and exit.
246a7b590b3Smrg
247a7b590b3Smrg`--help=short'
248a7b590b3Smrg`--help=recursive'
249a7b590b3Smrg     Print a summary of the options unique to this package's
250a7b590b3Smrg     `configure', and exit.  The `short' variant lists options used
251a7b590b3Smrg     only in the top level, while the `recursive' variant lists options
252a7b590b3Smrg     also present in any nested packages.
253a7b590b3Smrg
254a7b590b3Smrg`--version'
255a7b590b3Smrg`-V'
256a7b590b3Smrg     Print the version of Autoconf used to generate the `configure'
257a7b590b3Smrg     script, and exit.
258a7b590b3Smrg
259a7b590b3Smrg`--cache-file=FILE'
260a7b590b3Smrg     Enable the cache: use and save the results of the tests in FILE,
261a7b590b3Smrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
262a7b590b3Smrg     disable caching.
263a7b590b3Smrg
264a7b590b3Smrg`--config-cache'
265a7b590b3Smrg`-C'
266a7b590b3Smrg     Alias for `--cache-file=config.cache'.
267a7b590b3Smrg
268a7b590b3Smrg`--quiet'
269a7b590b3Smrg`--silent'
270a7b590b3Smrg`-q'
271a7b590b3Smrg     Do not print messages saying which checks are being made.  To
272a7b590b3Smrg     suppress all normal output, redirect it to `/dev/null' (any error
273a7b590b3Smrg     messages will still be shown).
274a7b590b3Smrg
275a7b590b3Smrg`--srcdir=DIR'
276a7b590b3Smrg     Look for the package's source code in directory DIR.  Usually
277a7b590b3Smrg     `configure' can determine that directory automatically.
278a7b590b3Smrg
279a7b590b3Smrg`--prefix=DIR'
280a7b590b3Smrg     Use DIR as the installation prefix.  *Note Installation Names::
281a7b590b3Smrg     for more details, including other options available for fine-tuning
282a7b590b3Smrg     the installation locations.
283a7b590b3Smrg
284a7b590b3Smrg`--no-create'
285a7b590b3Smrg`-n'
286a7b590b3Smrg     Run the configure checks, but stop before creating any output
287a7b590b3Smrg     files.
288a7b590b3Smrg
289a7b590b3Smrg`configure' also accepts some other, not widely useful, options.  Run
290a7b590b3Smrg`configure --help' for more details.
291a7b590b3Smrg
292