1def0d0f3SmrgInstallation Instructions
2def0d0f3Smrg*************************
3def0d0f3Smrg
4def0d0f3SmrgCopyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
5def0d0f3SmrgInc.
6def0d0f3Smrg
7def0d0f3Smrg   Copying and distribution of this file, with or without modification,
8def0d0f3Smrgare permitted in any medium without royalty provided the copyright
9def0d0f3Smrgnotice and this notice are preserved.  This file is offered as-is,
10def0d0f3Smrgwithout warranty of any kind.
11def0d0f3Smrg
12def0d0f3SmrgBasic Installation
13def0d0f3Smrg==================
14def0d0f3Smrg
15def0d0f3Smrg   Briefly, the shell commands `./configure; make; make install' should
16def0d0f3Smrgconfigure, build, and install this package.  The following
17def0d0f3Smrgmore-detailed instructions are generic; see the `README' file for
18def0d0f3Smrginstructions specific to this package.  Some packages provide this
19def0d0f3Smrg`INSTALL' file but do not implement all of the features documented
20def0d0f3Smrgbelow.  The lack of an optional feature in a given package is not
21def0d0f3Smrgnecessarily a bug.  More recommendations for GNU packages can be found
22def0d0f3Smrgin *note Makefile Conventions: (standards)Makefile Conventions.
23def0d0f3Smrg
24def0d0f3Smrg   The `configure' shell script attempts to guess correct values for
25def0d0f3Smrgvarious system-dependent variables used during compilation.  It uses
26def0d0f3Smrgthose values to create a `Makefile' in each directory of the package.
27def0d0f3SmrgIt may also create one or more `.h' files containing system-dependent
28def0d0f3Smrgdefinitions.  Finally, it creates a shell script `config.status' that
29def0d0f3Smrgyou can run in the future to recreate the current configuration, and a
30def0d0f3Smrgfile `config.log' containing compiler output (useful mainly for
31def0d0f3Smrgdebugging `configure').
32def0d0f3Smrg
33def0d0f3Smrg   It can also use an optional file (typically called `config.cache'
34def0d0f3Smrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
35def0d0f3Smrgthe results of its tests to speed up reconfiguring.  Caching is
36def0d0f3Smrgdisabled by default to prevent problems with accidental use of stale
37def0d0f3Smrgcache files.
38def0d0f3Smrg
39def0d0f3Smrg   If you need to do unusual things to compile the package, please try
40def0d0f3Smrgto figure out how `configure' could check whether to do them, and mail
41def0d0f3Smrgdiffs or instructions to the address given in the `README' so they can
42def0d0f3Smrgbe considered for the next release.  If you are using the cache, and at
43def0d0f3Smrgsome point `config.cache' contains results you don't want to keep, you
44def0d0f3Smrgmay remove or edit it.
45def0d0f3Smrg
46def0d0f3Smrg   The file `configure.ac' (or `configure.in') is used to create
47def0d0f3Smrg`configure' by a program called `autoconf'.  You need `configure.ac' if
48def0d0f3Smrgyou want to change it or regenerate `configure' using a newer version
49def0d0f3Smrgof `autoconf'.
50def0d0f3Smrg
51def0d0f3Smrg   The simplest way to compile this package is:
52def0d0f3Smrg
53def0d0f3Smrg  1. `cd' to the directory containing the package's source code and type
54def0d0f3Smrg     `./configure' to configure the package for your system.
55def0d0f3Smrg
56def0d0f3Smrg     Running `configure' might take a while.  While running, it prints
57def0d0f3Smrg     some messages telling which features it is checking for.
58def0d0f3Smrg
59def0d0f3Smrg  2. Type `make' to compile the package.
60def0d0f3Smrg
61def0d0f3Smrg  3. Optionally, type `make check' to run any self-tests that come with
62def0d0f3Smrg     the package, generally using the just-built uninstalled binaries.
63def0d0f3Smrg
64def0d0f3Smrg  4. Type `make install' to install the programs and any data files and
65def0d0f3Smrg     documentation.  When installing into a prefix owned by root, it is
66def0d0f3Smrg     recommended that the package be configured and built as a regular
67def0d0f3Smrg     user, and only the `make install' phase executed with root
68def0d0f3Smrg     privileges.
69def0d0f3Smrg
70def0d0f3Smrg  5. Optionally, type `make installcheck' to repeat any self-tests, but
71def0d0f3Smrg     this time using the binaries in their final installed location.
72def0d0f3Smrg     This target does not install anything.  Running this target as a
73def0d0f3Smrg     regular user, particularly if the prior `make install' required
74def0d0f3Smrg     root privileges, verifies that the installation completed
75def0d0f3Smrg     correctly.
76def0d0f3Smrg
77def0d0f3Smrg  6. You can remove the program binaries and object files from the
78def0d0f3Smrg     source code directory by typing `make clean'.  To also remove the
79def0d0f3Smrg     files that `configure' created (so you can compile the package for
80def0d0f3Smrg     a different kind of computer), type `make distclean'.  There is
81def0d0f3Smrg     also a `make maintainer-clean' target, but that is intended mainly
82def0d0f3Smrg     for the package's developers.  If you use it, you may have to get
83def0d0f3Smrg     all sorts of other programs in order to regenerate files that came
84def0d0f3Smrg     with the distribution.
85def0d0f3Smrg
86def0d0f3Smrg  7. Often, you can also type `make uninstall' to remove the installed
87def0d0f3Smrg     files again.  In practice, not all packages have tested that
88def0d0f3Smrg     uninstallation works correctly, even though it is required by the
89def0d0f3Smrg     GNU Coding Standards.
90def0d0f3Smrg
91def0d0f3Smrg  8. Some packages, particularly those that use Automake, provide `make
92def0d0f3Smrg     distcheck', which can by used by developers to test that all other
93def0d0f3Smrg     targets like `make install' and `make uninstall' work correctly.
94def0d0f3Smrg     This target is generally not run by end users.
95def0d0f3Smrg
96def0d0f3SmrgCompilers and Options
97def0d0f3Smrg=====================
98def0d0f3Smrg
99def0d0f3Smrg   Some systems require unusual options for compilation or linking that
100def0d0f3Smrgthe `configure' script does not know about.  Run `./configure --help'
101def0d0f3Smrgfor details on some of the pertinent environment variables.
102def0d0f3Smrg
103def0d0f3Smrg   You can give `configure' initial values for configuration parameters
104def0d0f3Smrgby setting variables in the command line or in the environment.  Here
105def0d0f3Smrgis an example:
106def0d0f3Smrg
107def0d0f3Smrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
108def0d0f3Smrg
109def0d0f3Smrg   *Note Defining Variables::, for more details.
110def0d0f3Smrg
111def0d0f3SmrgCompiling For Multiple Architectures
112def0d0f3Smrg====================================
113def0d0f3Smrg
114def0d0f3Smrg   You can compile the package for more than one kind of computer at the
115def0d0f3Smrgsame time, by placing the object files for each architecture in their
116def0d0f3Smrgown directory.  To do this, you can use GNU `make'.  `cd' to the
117def0d0f3Smrgdirectory where you want the object files and executables to go and run
118def0d0f3Smrgthe `configure' script.  `configure' automatically checks for the
119def0d0f3Smrgsource code in the directory that `configure' is in and in `..'.  This
120def0d0f3Smrgis known as a "VPATH" build.
121def0d0f3Smrg
122def0d0f3Smrg   With a non-GNU `make', it is safer to compile the package for one
123def0d0f3Smrgarchitecture at a time in the source code directory.  After you have
124def0d0f3Smrginstalled the package for one architecture, use `make distclean' before
125def0d0f3Smrgreconfiguring for another architecture.
126def0d0f3Smrg
127def0d0f3Smrg   On MacOS X 10.5 and later systems, you can create libraries and
128def0d0f3Smrgexecutables that work on multiple system types--known as "fat" or
129def0d0f3Smrg"universal" binaries--by specifying multiple `-arch' options to the
130def0d0f3Smrgcompiler but only a single `-arch' option to the preprocessor.  Like
131def0d0f3Smrgthis:
132def0d0f3Smrg
133def0d0f3Smrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
134def0d0f3Smrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
135def0d0f3Smrg                 CPP="gcc -E" CXXCPP="g++ -E"
136def0d0f3Smrg
137def0d0f3Smrg   This is not guaranteed to produce working output in all cases, you
138def0d0f3Smrgmay have to build one architecture at a time and combine the results
139def0d0f3Smrgusing the `lipo' tool if you have problems.
140def0d0f3Smrg
141def0d0f3SmrgInstallation Names
142def0d0f3Smrg==================
143def0d0f3Smrg
144def0d0f3Smrg   By default, `make install' installs the package's commands under
145def0d0f3Smrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
146def0d0f3Smrgcan specify an installation prefix other than `/usr/local' by giving
147def0d0f3Smrg`configure' the option `--prefix=PREFIX', where PREFIX must be an
148def0d0f3Smrgabsolute file name.
149def0d0f3Smrg
150def0d0f3Smrg   You can specify separate installation prefixes for
151def0d0f3Smrgarchitecture-specific files and architecture-independent files.  If you
152def0d0f3Smrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
153def0d0f3SmrgPREFIX as the prefix for installing programs and libraries.
154def0d0f3SmrgDocumentation and other data files still use the regular prefix.
155def0d0f3Smrg
156def0d0f3Smrg   In addition, if you use an unusual directory layout you can give
157def0d0f3Smrgoptions like `--bindir=DIR' to specify different values for particular
158def0d0f3Smrgkinds of files.  Run `configure --help' for a list of the directories
159def0d0f3Smrgyou can set and what kinds of files go in them.  In general, the
160def0d0f3Smrgdefault for these options is expressed in terms of `${prefix}', so that
161def0d0f3Smrgspecifying just `--prefix' will affect all of the other directory
162def0d0f3Smrgspecifications that were not explicitly provided.
163def0d0f3Smrg
164def0d0f3Smrg   The most portable way to affect installation locations is to pass the
165def0d0f3Smrgcorrect locations to `configure'; however, many packages provide one or
166def0d0f3Smrgboth of the following shortcuts of passing variable assignments to the
167def0d0f3Smrg`make install' command line to change installation locations without
168def0d0f3Smrghaving to reconfigure or recompile.
169def0d0f3Smrg
170def0d0f3Smrg   The first method involves providing an override variable for each
171def0d0f3Smrgaffected directory.  For example, `make install
172def0d0f3Smrgprefix=/alternate/directory' will choose an alternate location for all
173def0d0f3Smrgdirectory configuration variables that were expressed in terms of
174def0d0f3Smrg`${prefix}'.  Any directories that were specified during `configure',
175def0d0f3Smrgbut not in terms of `${prefix}', must each be overridden at install
176def0d0f3Smrgtime for the entire installation to be relocated.  The approach of
177def0d0f3Smrgmakefile variable overrides for each directory variable is required by
178def0d0f3Smrgthe GNU Coding Standards, and ideally causes no recompilation.
179def0d0f3SmrgHowever, some platforms have known limitations with the semantics of
180def0d0f3Smrgshared libraries that end up requiring recompilation when using this
181def0d0f3Smrgmethod, particularly noticeable in packages that use GNU Libtool.
182def0d0f3Smrg
183def0d0f3Smrg   The second method involves providing the `DESTDIR' variable.  For
184def0d0f3Smrgexample, `make install DESTDIR=/alternate/directory' will prepend
185def0d0f3Smrg`/alternate/directory' before all installation names.  The approach of
186def0d0f3Smrg`DESTDIR' overrides is not required by the GNU Coding Standards, and
187def0d0f3Smrgdoes not work on platforms that have drive letters.  On the other hand,
188def0d0f3Smrgit does better at avoiding recompilation issues, and works well even
189def0d0f3Smrgwhen some directory options were not specified in terms of `${prefix}'
190def0d0f3Smrgat `configure' time.
191def0d0f3Smrg
192def0d0f3SmrgOptional Features
193def0d0f3Smrg=================
194def0d0f3Smrg
195def0d0f3Smrg   If the package supports it, you can cause programs to be installed
196def0d0f3Smrgwith an extra prefix or suffix on their names by giving `configure' the
197def0d0f3Smrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
198def0d0f3Smrg
199def0d0f3Smrg   Some packages pay attention to `--enable-FEATURE' options to
200def0d0f3Smrg`configure', where FEATURE indicates an optional part of the package.
201def0d0f3SmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
202def0d0f3Smrgis something like `gnu-as' or `x' (for the X Window System).  The
203def0d0f3Smrg`README' should mention any `--enable-' and `--with-' options that the
204def0d0f3Smrgpackage recognizes.
205def0d0f3Smrg
206def0d0f3Smrg   For packages that use the X Window System, `configure' can usually
207def0d0f3Smrgfind the X include and library files automatically, but if it doesn't,
208def0d0f3Smrgyou can use the `configure' options `--x-includes=DIR' and
209def0d0f3Smrg`--x-libraries=DIR' to specify their locations.
210def0d0f3Smrg
211def0d0f3Smrg   Some packages offer the ability to configure how verbose the
212def0d0f3Smrgexecution of `make' will be.  For these packages, running `./configure
213def0d0f3Smrg--enable-silent-rules' sets the default to minimal output, which can be
214def0d0f3Smrgoverridden with `make V=1'; while running `./configure
215def0d0f3Smrg--disable-silent-rules' sets the default to verbose, which can be
216def0d0f3Smrgoverridden with `make V=0'.
217def0d0f3Smrg
218def0d0f3SmrgParticular systems
219def0d0f3Smrg==================
220def0d0f3Smrg
221def0d0f3Smrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
222def0d0f3SmrgCC is not installed, it is recommended to use the following options in
223def0d0f3Smrgorder to use an ANSI C compiler:
224def0d0f3Smrg
225def0d0f3Smrg     ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
226def0d0f3Smrg
227def0d0f3Smrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
228def0d0f3Smrg
229def0d0f3Smrg   HP-UX `make' updates targets which have the same time stamps as
230def0d0f3Smrgtheir prerequisites, which makes it generally unusable when shipped
231def0d0f3Smrggenerated files such as `configure' are involved.  Use GNU `make'
232def0d0f3Smrginstead.
233def0d0f3Smrg
234def0d0f3Smrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
235def0d0f3Smrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
236def0d0f3Smrga workaround.  If GNU CC is not installed, it is therefore recommended
237def0d0f3Smrgto try
238def0d0f3Smrg
239def0d0f3Smrg     ./configure CC="cc"
240def0d0f3Smrg
241def0d0f3Smrgand if that doesn't work, try
242def0d0f3Smrg
243def0d0f3Smrg     ./configure CC="cc -nodtk"
244def0d0f3Smrg
245def0d0f3Smrg   On Solaris, don't put `/usr/ucb' early in your `PATH'.  This
246def0d0f3Smrgdirectory contains several dysfunctional programs; working variants of
247def0d0f3Smrgthese programs are available in `/usr/bin'.  So, if you need `/usr/ucb'
248def0d0f3Smrgin your `PATH', put it _after_ `/usr/bin'.
249def0d0f3Smrg
250def0d0f3Smrg   On Haiku, software installed for all users goes in `/boot/common',
251def0d0f3Smrgnot `/usr/local'.  It is recommended to use the following options:
252def0d0f3Smrg
253def0d0f3Smrg     ./configure --prefix=/boot/common
254def0d0f3Smrg
255def0d0f3SmrgSpecifying the System Type
256def0d0f3Smrg==========================
257def0d0f3Smrg
258def0d0f3Smrg   There may be some features `configure' cannot figure out
259def0d0f3Smrgautomatically, but needs to determine by the type of machine the package
260def0d0f3Smrgwill run on.  Usually, assuming the package is built to be run on the
261def0d0f3Smrg_same_ architectures, `configure' can figure that out, but if it prints
262def0d0f3Smrga message saying it cannot guess the machine type, give it the
263def0d0f3Smrg`--build=TYPE' option.  TYPE can either be a short name for the system
264def0d0f3Smrgtype, such as `sun4', or a canonical name which has the form:
265def0d0f3Smrg
266def0d0f3Smrg     CPU-COMPANY-SYSTEM
267def0d0f3Smrg
268def0d0f3Smrgwhere SYSTEM can have one of these forms:
269def0d0f3Smrg
270def0d0f3Smrg     OS
271def0d0f3Smrg     KERNEL-OS
272def0d0f3Smrg
273def0d0f3Smrg   See the file `config.sub' for the possible values of each field.  If
274def0d0f3Smrg`config.sub' isn't included in this package, then this package doesn't
275def0d0f3Smrgneed to know the machine type.
276def0d0f3Smrg
277def0d0f3Smrg   If you are _building_ compiler tools for cross-compiling, you should
278def0d0f3Smrguse the option `--target=TYPE' to select the type of system they will
279def0d0f3Smrgproduce code for.
280def0d0f3Smrg
281def0d0f3Smrg   If you want to _use_ a cross compiler, that generates code for a
282def0d0f3Smrgplatform different from the build platform, you should specify the
283def0d0f3Smrg"host" platform (i.e., that on which the generated programs will
284def0d0f3Smrgeventually be run) with `--host=TYPE'.
285def0d0f3Smrg
286def0d0f3SmrgSharing Defaults
287def0d0f3Smrg================
288def0d0f3Smrg
289def0d0f3Smrg   If you want to set default values for `configure' scripts to share,
290def0d0f3Smrgyou can create a site shell script called `config.site' that gives
291def0d0f3Smrgdefault values for variables like `CC', `cache_file', and `prefix'.
292def0d0f3Smrg`configure' looks for `PREFIX/share/config.site' if it exists, then
293def0d0f3Smrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
294def0d0f3Smrg`CONFIG_SITE' environment variable to the location of the site script.
295def0d0f3SmrgA warning: not all `configure' scripts look for a site script.
296def0d0f3Smrg
297def0d0f3SmrgDefining Variables
298def0d0f3Smrg==================
299def0d0f3Smrg
300def0d0f3Smrg   Variables not defined in a site shell script can be set in the
301def0d0f3Smrgenvironment passed to `configure'.  However, some packages may run
302def0d0f3Smrgconfigure again during the build, and the customized values of these
303def0d0f3Smrgvariables may be lost.  In order to avoid this problem, you should set
304def0d0f3Smrgthem in the `configure' command line, using `VAR=value'.  For example:
305def0d0f3Smrg
306def0d0f3Smrg     ./configure CC=/usr/local2/bin/gcc
307def0d0f3Smrg
308def0d0f3Smrgcauses the specified `gcc' to be used as the C compiler (unless it is
309def0d0f3Smrgoverridden in the site shell script).
310def0d0f3Smrg
311def0d0f3SmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
312def0d0f3Smrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
313def0d0f3Smrg
314def0d0f3Smrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
315def0d0f3Smrg
316def0d0f3Smrg`configure' Invocation
317def0d0f3Smrg======================
318def0d0f3Smrg
319def0d0f3Smrg   `configure' recognizes the following options to control how it
320def0d0f3Smrgoperates.
321def0d0f3Smrg
322def0d0f3Smrg`--help'
323def0d0f3Smrg`-h'
324def0d0f3Smrg     Print a summary of all of the options to `configure', and exit.
325def0d0f3Smrg
326def0d0f3Smrg`--help=short'
327def0d0f3Smrg`--help=recursive'
328def0d0f3Smrg     Print a summary of the options unique to this package's
329def0d0f3Smrg     `configure', and exit.  The `short' variant lists options used
330def0d0f3Smrg     only in the top level, while the `recursive' variant lists options
331def0d0f3Smrg     also present in any nested packages.
332def0d0f3Smrg
333def0d0f3Smrg`--version'
334def0d0f3Smrg`-V'
335def0d0f3Smrg     Print the version of Autoconf used to generate the `configure'
336def0d0f3Smrg     script, and exit.
337def0d0f3Smrg
338def0d0f3Smrg`--cache-file=FILE'
339def0d0f3Smrg     Enable the cache: use and save the results of the tests in FILE,
340def0d0f3Smrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
341def0d0f3Smrg     disable caching.
342def0d0f3Smrg
343def0d0f3Smrg`--config-cache'
344def0d0f3Smrg`-C'
345def0d0f3Smrg     Alias for `--cache-file=config.cache'.
346def0d0f3Smrg
347def0d0f3Smrg`--quiet'
348def0d0f3Smrg`--silent'
349def0d0f3Smrg`-q'
350def0d0f3Smrg     Do not print messages saying which checks are being made.  To
351def0d0f3Smrg     suppress all normal output, redirect it to `/dev/null' (any error
352def0d0f3Smrg     messages will still be shown).
353def0d0f3Smrg
354def0d0f3Smrg`--srcdir=DIR'
355def0d0f3Smrg     Look for the package's source code in directory DIR.  Usually
356def0d0f3Smrg     `configure' can determine that directory automatically.
357def0d0f3Smrg
358def0d0f3Smrg`--prefix=DIR'
359def0d0f3Smrg     Use DIR as the installation prefix.  *note Installation Names::
360def0d0f3Smrg     for more details, including other options available for fine-tuning
361def0d0f3Smrg     the installation locations.
362def0d0f3Smrg
363def0d0f3Smrg`--no-create'
364def0d0f3Smrg`-n'
365def0d0f3Smrg     Run the configure checks, but stop before creating any output
366def0d0f3Smrg     files.
367def0d0f3Smrg
368def0d0f3Smrg`configure' also accepts some other, not widely useful, options.  Run
369def0d0f3Smrg`configure --help' for more details.
370def0d0f3Smrg
371