188cd5fc2SmrgInstallation Instructions
288cd5fc2Smrg*************************
388cd5fc2Smrg
488cd5fc2SmrgCopyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
588cd5fc2SmrgInc.
688cd5fc2Smrg
788cd5fc2Smrg   Copying and distribution of this file, with or without modification,
888cd5fc2Smrgare permitted in any medium without royalty provided the copyright
988cd5fc2Smrgnotice and this notice are preserved.  This file is offered as-is,
1088cd5fc2Smrgwithout warranty of any kind.
1188cd5fc2Smrg
1288cd5fc2SmrgBasic Installation
1388cd5fc2Smrg==================
1488cd5fc2Smrg
1588cd5fc2Smrg   Briefly, the shell commands `./configure; make; make install' should
1688cd5fc2Smrgconfigure, build, and install this package.  The following
1788cd5fc2Smrgmore-detailed instructions are generic; see the `README' file for
1888cd5fc2Smrginstructions specific to this package.  Some packages provide this
1988cd5fc2Smrg`INSTALL' file but do not implement all of the features documented
2088cd5fc2Smrgbelow.  The lack of an optional feature in a given package is not
2188cd5fc2Smrgnecessarily a bug.  More recommendations for GNU packages can be found
2288cd5fc2Smrgin *note Makefile Conventions: (standards)Makefile Conventions.
2388cd5fc2Smrg
2488cd5fc2Smrg   The `configure' shell script attempts to guess correct values for
2588cd5fc2Smrgvarious system-dependent variables used during compilation.  It uses
2688cd5fc2Smrgthose values to create a `Makefile' in each directory of the package.
2788cd5fc2SmrgIt may also create one or more `.h' files containing system-dependent
2888cd5fc2Smrgdefinitions.  Finally, it creates a shell script `config.status' that
2988cd5fc2Smrgyou can run in the future to recreate the current configuration, and a
3088cd5fc2Smrgfile `config.log' containing compiler output (useful mainly for
3188cd5fc2Smrgdebugging `configure').
3288cd5fc2Smrg
3388cd5fc2Smrg   It can also use an optional file (typically called `config.cache'
3488cd5fc2Smrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
3588cd5fc2Smrgthe results of its tests to speed up reconfiguring.  Caching is
3688cd5fc2Smrgdisabled by default to prevent problems with accidental use of stale
3788cd5fc2Smrgcache files.
3888cd5fc2Smrg
3988cd5fc2Smrg   If you need to do unusual things to compile the package, please try
4088cd5fc2Smrgto figure out how `configure' could check whether to do them, and mail
4188cd5fc2Smrgdiffs or instructions to the address given in the `README' so they can
4288cd5fc2Smrgbe considered for the next release.  If you are using the cache, and at
4388cd5fc2Smrgsome point `config.cache' contains results you don't want to keep, you
4488cd5fc2Smrgmay remove or edit it.
4588cd5fc2Smrg
4688cd5fc2Smrg   The file `configure.ac' (or `configure.in') is used to create
4788cd5fc2Smrg`configure' by a program called `autoconf'.  You need `configure.ac' if
4888cd5fc2Smrgyou want to change it or regenerate `configure' using a newer version
4988cd5fc2Smrgof `autoconf'.
5088cd5fc2Smrg
5188cd5fc2Smrg   The simplest way to compile this package is:
5288cd5fc2Smrg
5388cd5fc2Smrg  1. `cd' to the directory containing the package's source code and type
5488cd5fc2Smrg     `./configure' to configure the package for your system.
5588cd5fc2Smrg
5688cd5fc2Smrg     Running `configure' might take a while.  While running, it prints
5788cd5fc2Smrg     some messages telling which features it is checking for.
5888cd5fc2Smrg
5988cd5fc2Smrg  2. Type `make' to compile the package.
6088cd5fc2Smrg
6188cd5fc2Smrg  3. Optionally, type `make check' to run any self-tests that come with
6288cd5fc2Smrg     the package, generally using the just-built uninstalled binaries.
6388cd5fc2Smrg
6488cd5fc2Smrg  4. Type `make install' to install the programs and any data files and
6588cd5fc2Smrg     documentation.  When installing into a prefix owned by root, it is
6688cd5fc2Smrg     recommended that the package be configured and built as a regular
6788cd5fc2Smrg     user, and only the `make install' phase executed with root
6888cd5fc2Smrg     privileges.
6988cd5fc2Smrg
7088cd5fc2Smrg  5. Optionally, type `make installcheck' to repeat any self-tests, but
7188cd5fc2Smrg     this time using the binaries in their final installed location.
7288cd5fc2Smrg     This target does not install anything.  Running this target as a
7388cd5fc2Smrg     regular user, particularly if the prior `make install' required
7488cd5fc2Smrg     root privileges, verifies that the installation completed
7588cd5fc2Smrg     correctly.
7688cd5fc2Smrg
7788cd5fc2Smrg  6. You can remove the program binaries and object files from the
7888cd5fc2Smrg     source code directory by typing `make clean'.  To also remove the
7988cd5fc2Smrg     files that `configure' created (so you can compile the package for
8088cd5fc2Smrg     a different kind of computer), type `make distclean'.  There is
8188cd5fc2Smrg     also a `make maintainer-clean' target, but that is intended mainly
8288cd5fc2Smrg     for the package's developers.  If you use it, you may have to get
8388cd5fc2Smrg     all sorts of other programs in order to regenerate files that came
8488cd5fc2Smrg     with the distribution.
8588cd5fc2Smrg
8688cd5fc2Smrg  7. Often, you can also type `make uninstall' to remove the installed
8788cd5fc2Smrg     files again.  In practice, not all packages have tested that
8888cd5fc2Smrg     uninstallation works correctly, even though it is required by the
8988cd5fc2Smrg     GNU Coding Standards.
9088cd5fc2Smrg
9188cd5fc2Smrg  8. Some packages, particularly those that use Automake, provide `make
9288cd5fc2Smrg     distcheck', which can by used by developers to test that all other
9388cd5fc2Smrg     targets like `make install' and `make uninstall' work correctly.
9488cd5fc2Smrg     This target is generally not run by end users.
9588cd5fc2Smrg
9688cd5fc2SmrgCompilers and Options
9788cd5fc2Smrg=====================
9888cd5fc2Smrg
9988cd5fc2Smrg   Some systems require unusual options for compilation or linking that
10088cd5fc2Smrgthe `configure' script does not know about.  Run `./configure --help'
10188cd5fc2Smrgfor details on some of the pertinent environment variables.
10288cd5fc2Smrg
10388cd5fc2Smrg   You can give `configure' initial values for configuration parameters
10488cd5fc2Smrgby setting variables in the command line or in the environment.  Here
10588cd5fc2Smrgis an example:
10688cd5fc2Smrg
10788cd5fc2Smrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
10888cd5fc2Smrg
10988cd5fc2Smrg   *Note Defining Variables::, for more details.
11088cd5fc2Smrg
11188cd5fc2SmrgCompiling For Multiple Architectures
11288cd5fc2Smrg====================================
11388cd5fc2Smrg
11488cd5fc2Smrg   You can compile the package for more than one kind of computer at the
11588cd5fc2Smrgsame time, by placing the object files for each architecture in their
11688cd5fc2Smrgown directory.  To do this, you can use GNU `make'.  `cd' to the
11788cd5fc2Smrgdirectory where you want the object files and executables to go and run
11888cd5fc2Smrgthe `configure' script.  `configure' automatically checks for the
11988cd5fc2Smrgsource code in the directory that `configure' is in and in `..'.  This
12088cd5fc2Smrgis known as a "VPATH" build.
12188cd5fc2Smrg
12288cd5fc2Smrg   With a non-GNU `make', it is safer to compile the package for one
12388cd5fc2Smrgarchitecture at a time in the source code directory.  After you have
12488cd5fc2Smrginstalled the package for one architecture, use `make distclean' before
12588cd5fc2Smrgreconfiguring for another architecture.
12688cd5fc2Smrg
12788cd5fc2Smrg   On MacOS X 10.5 and later systems, you can create libraries and
12888cd5fc2Smrgexecutables that work on multiple system types--known as "fat" or
12988cd5fc2Smrg"universal" binaries--by specifying multiple `-arch' options to the
13088cd5fc2Smrgcompiler but only a single `-arch' option to the preprocessor.  Like
13188cd5fc2Smrgthis:
13288cd5fc2Smrg
13388cd5fc2Smrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
13488cd5fc2Smrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
13588cd5fc2Smrg                 CPP="gcc -E" CXXCPP="g++ -E"
13688cd5fc2Smrg
13788cd5fc2Smrg   This is not guaranteed to produce working output in all cases, you
13888cd5fc2Smrgmay have to build one architecture at a time and combine the results
13988cd5fc2Smrgusing the `lipo' tool if you have problems.
14088cd5fc2Smrg
14188cd5fc2SmrgInstallation Names
14288cd5fc2Smrg==================
14388cd5fc2Smrg
14488cd5fc2Smrg   By default, `make install' installs the package's commands under
14588cd5fc2Smrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
14688cd5fc2Smrgcan specify an installation prefix other than `/usr/local' by giving
14788cd5fc2Smrg`configure' the option `--prefix=PREFIX', where PREFIX must be an
14888cd5fc2Smrgabsolute file name.
14988cd5fc2Smrg
15088cd5fc2Smrg   You can specify separate installation prefixes for
15188cd5fc2Smrgarchitecture-specific files and architecture-independent files.  If you
15288cd5fc2Smrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
15388cd5fc2SmrgPREFIX as the prefix for installing programs and libraries.
15488cd5fc2SmrgDocumentation and other data files still use the regular prefix.
15588cd5fc2Smrg
15688cd5fc2Smrg   In addition, if you use an unusual directory layout you can give
15788cd5fc2Smrgoptions like `--bindir=DIR' to specify different values for particular
15888cd5fc2Smrgkinds of files.  Run `configure --help' for a list of the directories
15988cd5fc2Smrgyou can set and what kinds of files go in them.  In general, the
16088cd5fc2Smrgdefault for these options is expressed in terms of `${prefix}', so that
16188cd5fc2Smrgspecifying just `--prefix' will affect all of the other directory
16288cd5fc2Smrgspecifications that were not explicitly provided.
16388cd5fc2Smrg
16488cd5fc2Smrg   The most portable way to affect installation locations is to pass the
16588cd5fc2Smrgcorrect locations to `configure'; however, many packages provide one or
16688cd5fc2Smrgboth of the following shortcuts of passing variable assignments to the
16788cd5fc2Smrg`make install' command line to change installation locations without
16888cd5fc2Smrghaving to reconfigure or recompile.
16988cd5fc2Smrg
17088cd5fc2Smrg   The first method involves providing an override variable for each
17188cd5fc2Smrgaffected directory.  For example, `make install
17288cd5fc2Smrgprefix=/alternate/directory' will choose an alternate location for all
17388cd5fc2Smrgdirectory configuration variables that were expressed in terms of
17488cd5fc2Smrg`${prefix}'.  Any directories that were specified during `configure',
17588cd5fc2Smrgbut not in terms of `${prefix}', must each be overridden at install
17688cd5fc2Smrgtime for the entire installation to be relocated.  The approach of
17788cd5fc2Smrgmakefile variable overrides for each directory variable is required by
17888cd5fc2Smrgthe GNU Coding Standards, and ideally causes no recompilation.
17988cd5fc2SmrgHowever, some platforms have known limitations with the semantics of
18088cd5fc2Smrgshared libraries that end up requiring recompilation when using this
18188cd5fc2Smrgmethod, particularly noticeable in packages that use GNU Libtool.
18288cd5fc2Smrg
18388cd5fc2Smrg   The second method involves providing the `DESTDIR' variable.  For
18488cd5fc2Smrgexample, `make install DESTDIR=/alternate/directory' will prepend
18588cd5fc2Smrg`/alternate/directory' before all installation names.  The approach of
18688cd5fc2Smrg`DESTDIR' overrides is not required by the GNU Coding Standards, and
18788cd5fc2Smrgdoes not work on platforms that have drive letters.  On the other hand,
18888cd5fc2Smrgit does better at avoiding recompilation issues, and works well even
18988cd5fc2Smrgwhen some directory options were not specified in terms of `${prefix}'
19088cd5fc2Smrgat `configure' time.
19188cd5fc2Smrg
19288cd5fc2SmrgOptional Features
19388cd5fc2Smrg=================
19488cd5fc2Smrg
19588cd5fc2Smrg   If the package supports it, you can cause programs to be installed
19688cd5fc2Smrgwith an extra prefix or suffix on their names by giving `configure' the
19788cd5fc2Smrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
19888cd5fc2Smrg
19988cd5fc2Smrg   Some packages pay attention to `--enable-FEATURE' options to
20088cd5fc2Smrg`configure', where FEATURE indicates an optional part of the package.
20188cd5fc2SmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
20288cd5fc2Smrgis something like `gnu-as' or `x' (for the X Window System).  The
20388cd5fc2Smrg`README' should mention any `--enable-' and `--with-' options that the
20488cd5fc2Smrgpackage recognizes.
20588cd5fc2Smrg
20688cd5fc2Smrg   For packages that use the X Window System, `configure' can usually
20788cd5fc2Smrgfind the X include and library files automatically, but if it doesn't,
20888cd5fc2Smrgyou can use the `configure' options `--x-includes=DIR' and
20988cd5fc2Smrg`--x-libraries=DIR' to specify their locations.
21088cd5fc2Smrg
21188cd5fc2Smrg   Some packages offer the ability to configure how verbose the
21288cd5fc2Smrgexecution of `make' will be.  For these packages, running `./configure
21388cd5fc2Smrg--enable-silent-rules' sets the default to minimal output, which can be
21488cd5fc2Smrgoverridden with `make V=1'; while running `./configure
21588cd5fc2Smrg--disable-silent-rules' sets the default to verbose, which can be
21688cd5fc2Smrgoverridden with `make V=0'.
21788cd5fc2Smrg
21888cd5fc2SmrgParticular systems
21988cd5fc2Smrg==================
22088cd5fc2Smrg
22188cd5fc2Smrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
22288cd5fc2SmrgCC is not installed, it is recommended to use the following options in
22388cd5fc2Smrgorder to use an ANSI C compiler:
22488cd5fc2Smrg
22588cd5fc2Smrg     ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
22688cd5fc2Smrg
22788cd5fc2Smrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
22888cd5fc2Smrg
22988cd5fc2Smrg   HP-UX `make' updates targets which have the same time stamps as
23088cd5fc2Smrgtheir prerequisites, which makes it generally unusable when shipped
23188cd5fc2Smrggenerated files such as `configure' are involved.  Use GNU `make'
23288cd5fc2Smrginstead.
23388cd5fc2Smrg
23488cd5fc2Smrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
23588cd5fc2Smrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
23688cd5fc2Smrga workaround.  If GNU CC is not installed, it is therefore recommended
23788cd5fc2Smrgto try
23888cd5fc2Smrg
23988cd5fc2Smrg     ./configure CC="cc"
24088cd5fc2Smrg
24188cd5fc2Smrgand if that doesn't work, try
24288cd5fc2Smrg
24388cd5fc2Smrg     ./configure CC="cc -nodtk"
24488cd5fc2Smrg
24588cd5fc2Smrg   On Solaris, don't put `/usr/ucb' early in your `PATH'.  This
24688cd5fc2Smrgdirectory contains several dysfunctional programs; working variants of
24788cd5fc2Smrgthese programs are available in `/usr/bin'.  So, if you need `/usr/ucb'
24888cd5fc2Smrgin your `PATH', put it _after_ `/usr/bin'.
24988cd5fc2Smrg
25088cd5fc2Smrg   On Haiku, software installed for all users goes in `/boot/common',
25188cd5fc2Smrgnot `/usr/local'.  It is recommended to use the following options:
25288cd5fc2Smrg
25388cd5fc2Smrg     ./configure --prefix=/boot/common
25488cd5fc2Smrg
25588cd5fc2SmrgSpecifying the System Type
25688cd5fc2Smrg==========================
25788cd5fc2Smrg
25888cd5fc2Smrg   There may be some features `configure' cannot figure out
25988cd5fc2Smrgautomatically, but needs to determine by the type of machine the package
26088cd5fc2Smrgwill run on.  Usually, assuming the package is built to be run on the
26188cd5fc2Smrg_same_ architectures, `configure' can figure that out, but if it prints
26288cd5fc2Smrga message saying it cannot guess the machine type, give it the
26388cd5fc2Smrg`--build=TYPE' option.  TYPE can either be a short name for the system
26488cd5fc2Smrgtype, such as `sun4', or a canonical name which has the form:
26588cd5fc2Smrg
26688cd5fc2Smrg     CPU-COMPANY-SYSTEM
26788cd5fc2Smrg
26888cd5fc2Smrgwhere SYSTEM can have one of these forms:
26988cd5fc2Smrg
27088cd5fc2Smrg     OS
27188cd5fc2Smrg     KERNEL-OS
27288cd5fc2Smrg
27388cd5fc2Smrg   See the file `config.sub' for the possible values of each field.  If
27488cd5fc2Smrg`config.sub' isn't included in this package, then this package doesn't
27588cd5fc2Smrgneed to know the machine type.
27688cd5fc2Smrg
27788cd5fc2Smrg   If you are _building_ compiler tools for cross-compiling, you should
27888cd5fc2Smrguse the option `--target=TYPE' to select the type of system they will
27988cd5fc2Smrgproduce code for.
28088cd5fc2Smrg
28188cd5fc2Smrg   If you want to _use_ a cross compiler, that generates code for a
28288cd5fc2Smrgplatform different from the build platform, you should specify the
28388cd5fc2Smrg"host" platform (i.e., that on which the generated programs will
28488cd5fc2Smrgeventually be run) with `--host=TYPE'.
28588cd5fc2Smrg
28688cd5fc2SmrgSharing Defaults
28788cd5fc2Smrg================
28888cd5fc2Smrg
28988cd5fc2Smrg   If you want to set default values for `configure' scripts to share,
29088cd5fc2Smrgyou can create a site shell script called `config.site' that gives
29188cd5fc2Smrgdefault values for variables like `CC', `cache_file', and `prefix'.
29288cd5fc2Smrg`configure' looks for `PREFIX/share/config.site' if it exists, then
29388cd5fc2Smrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
29488cd5fc2Smrg`CONFIG_SITE' environment variable to the location of the site script.
29588cd5fc2SmrgA warning: not all `configure' scripts look for a site script.
29688cd5fc2Smrg
29788cd5fc2SmrgDefining Variables
29888cd5fc2Smrg==================
29988cd5fc2Smrg
30088cd5fc2Smrg   Variables not defined in a site shell script can be set in the
30188cd5fc2Smrgenvironment passed to `configure'.  However, some packages may run
30288cd5fc2Smrgconfigure again during the build, and the customized values of these
30388cd5fc2Smrgvariables may be lost.  In order to avoid this problem, you should set
30488cd5fc2Smrgthem in the `configure' command line, using `VAR=value'.  For example:
30588cd5fc2Smrg
30688cd5fc2Smrg     ./configure CC=/usr/local2/bin/gcc
30788cd5fc2Smrg
30888cd5fc2Smrgcauses the specified `gcc' to be used as the C compiler (unless it is
30988cd5fc2Smrgoverridden in the site shell script).
31088cd5fc2Smrg
31188cd5fc2SmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
31288cd5fc2Smrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
31388cd5fc2Smrg
31488cd5fc2Smrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
31588cd5fc2Smrg
31688cd5fc2Smrg`configure' Invocation
31788cd5fc2Smrg======================
31888cd5fc2Smrg
31988cd5fc2Smrg   `configure' recognizes the following options to control how it
32088cd5fc2Smrgoperates.
32188cd5fc2Smrg
32288cd5fc2Smrg`--help'
32388cd5fc2Smrg`-h'
32488cd5fc2Smrg     Print a summary of all of the options to `configure', and exit.
32588cd5fc2Smrg
32688cd5fc2Smrg`--help=short'
32788cd5fc2Smrg`--help=recursive'
32888cd5fc2Smrg     Print a summary of the options unique to this package's
32988cd5fc2Smrg     `configure', and exit.  The `short' variant lists options used
33088cd5fc2Smrg     only in the top level, while the `recursive' variant lists options
33188cd5fc2Smrg     also present in any nested packages.
33288cd5fc2Smrg
33388cd5fc2Smrg`--version'
33488cd5fc2Smrg`-V'
33588cd5fc2Smrg     Print the version of Autoconf used to generate the `configure'
33688cd5fc2Smrg     script, and exit.
33788cd5fc2Smrg
33888cd5fc2Smrg`--cache-file=FILE'
33988cd5fc2Smrg     Enable the cache: use and save the results of the tests in FILE,
34088cd5fc2Smrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
34188cd5fc2Smrg     disable caching.
34288cd5fc2Smrg
34388cd5fc2Smrg`--config-cache'
34488cd5fc2Smrg`-C'
34588cd5fc2Smrg     Alias for `--cache-file=config.cache'.
34688cd5fc2Smrg
34788cd5fc2Smrg`--quiet'
34888cd5fc2Smrg`--silent'
34988cd5fc2Smrg`-q'
35088cd5fc2Smrg     Do not print messages saying which checks are being made.  To
35188cd5fc2Smrg     suppress all normal output, redirect it to `/dev/null' (any error
35288cd5fc2Smrg     messages will still be shown).
35388cd5fc2Smrg
35488cd5fc2Smrg`--srcdir=DIR'
35588cd5fc2Smrg     Look for the package's source code in directory DIR.  Usually
35688cd5fc2Smrg     `configure' can determine that directory automatically.
35788cd5fc2Smrg
35888cd5fc2Smrg`--prefix=DIR'
35988cd5fc2Smrg     Use DIR as the installation prefix.  *note Installation Names::
36088cd5fc2Smrg     for more details, including other options available for fine-tuning
36188cd5fc2Smrg     the installation locations.
36288cd5fc2Smrg
36388cd5fc2Smrg`--no-create'
36488cd5fc2Smrg`-n'
36588cd5fc2Smrg     Run the configure checks, but stop before creating any output
36688cd5fc2Smrg     files.
36788cd5fc2Smrg
36888cd5fc2Smrg`configure' also accepts some other, not widely useful, options.  Run
36988cd5fc2Smrg`configure --help' for more details.
37088cd5fc2Smrg
371