INSTALL revision 71ba42d0
171ba42d0SmrgInstallation Instructions
271ba42d0Smrg*************************
371ba42d0Smrg
471ba42d0SmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
571ba42d0Smrg2006, 2007, 2008 Free Software Foundation, Inc.
671ba42d0Smrg
771ba42d0Smrg   This file is free documentation; the Free Software Foundation gives
871ba42d0Smrgunlimited permission to copy, distribute and modify it.
971ba42d0Smrg
1071ba42d0SmrgBasic Installation
1171ba42d0Smrg==================
1271ba42d0Smrg
1371ba42d0Smrg   Briefly, the shell commands `./configure; make; make install' should
1471ba42d0Smrgconfigure, build, and install this package.  The following
1571ba42d0Smrgmore-detailed instructions are generic; see the `README' file for
1671ba42d0Smrginstructions specific to this package.
1771ba42d0Smrg
1871ba42d0Smrg   The `configure' shell script attempts to guess correct values for
1971ba42d0Smrgvarious system-dependent variables used during compilation.  It uses
2071ba42d0Smrgthose values to create a `Makefile' in each directory of the package.
2171ba42d0SmrgIt may also create one or more `.h' files containing system-dependent
2271ba42d0Smrgdefinitions.  Finally, it creates a shell script `config.status' that
2371ba42d0Smrgyou can run in the future to recreate the current configuration, and a
2471ba42d0Smrgfile `config.log' containing compiler output (useful mainly for
2571ba42d0Smrgdebugging `configure').
2671ba42d0Smrg
2771ba42d0Smrg   It can also use an optional file (typically called `config.cache'
2871ba42d0Smrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
2971ba42d0Smrgthe results of its tests to speed up reconfiguring.  Caching is
3071ba42d0Smrgdisabled by default to prevent problems with accidental use of stale
3171ba42d0Smrgcache files.
3271ba42d0Smrg
3371ba42d0Smrg   If you need to do unusual things to compile the package, please try
3471ba42d0Smrgto figure out how `configure' could check whether to do them, and mail
3571ba42d0Smrgdiffs or instructions to the address given in the `README' so they can
3671ba42d0Smrgbe considered for the next release.  If you are using the cache, and at
3771ba42d0Smrgsome point `config.cache' contains results you don't want to keep, you
3871ba42d0Smrgmay remove or edit it.
3971ba42d0Smrg
4071ba42d0Smrg   The file `configure.ac' (or `configure.in') is used to create
4171ba42d0Smrg`configure' by a program called `autoconf'.  You need `configure.ac' if
4271ba42d0Smrgyou want to change it or regenerate `configure' using a newer version
4371ba42d0Smrgof `autoconf'.
4471ba42d0Smrg
4571ba42d0SmrgThe simplest way to compile this package is:
4671ba42d0Smrg
4771ba42d0Smrg  1. `cd' to the directory containing the package's source code and type
4871ba42d0Smrg     `./configure' to configure the package for your system.
4971ba42d0Smrg
5071ba42d0Smrg     Running `configure' might take a while.  While running, it prints
5171ba42d0Smrg     some messages telling which features it is checking for.
5271ba42d0Smrg
5371ba42d0Smrg  2. Type `make' to compile the package.
5471ba42d0Smrg
5571ba42d0Smrg  3. Optionally, type `make check' to run any self-tests that come with
5671ba42d0Smrg     the package.
5771ba42d0Smrg
5871ba42d0Smrg  4. Type `make install' to install the programs and any data files and
5971ba42d0Smrg     documentation.
6071ba42d0Smrg
6171ba42d0Smrg  5. You can remove the program binaries and object files from the
6271ba42d0Smrg     source code directory by typing `make clean'.  To also remove the
6371ba42d0Smrg     files that `configure' created (so you can compile the package for
6471ba42d0Smrg     a different kind of computer), type `make distclean'.  There is
6571ba42d0Smrg     also a `make maintainer-clean' target, but that is intended mainly
6671ba42d0Smrg     for the package's developers.  If you use it, you may have to get
6771ba42d0Smrg     all sorts of other programs in order to regenerate files that came
6871ba42d0Smrg     with the distribution.
6971ba42d0Smrg
7071ba42d0Smrg  6. Often, you can also type `make uninstall' to remove the installed
7171ba42d0Smrg     files again.
7271ba42d0Smrg
7371ba42d0SmrgCompilers and Options
7471ba42d0Smrg=====================
7571ba42d0Smrg
7671ba42d0Smrg   Some systems require unusual options for compilation or linking that
7771ba42d0Smrgthe `configure' script does not know about.  Run `./configure --help'
7871ba42d0Smrgfor details on some of the pertinent environment variables.
7971ba42d0Smrg
8071ba42d0Smrg   You can give `configure' initial values for configuration parameters
8171ba42d0Smrgby setting variables in the command line or in the environment.  Here
8271ba42d0Smrgis an example:
8371ba42d0Smrg
8471ba42d0Smrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
8571ba42d0Smrg
8671ba42d0Smrg   *Note Defining Variables::, for more details.
8771ba42d0Smrg
8871ba42d0SmrgCompiling For Multiple Architectures
8971ba42d0Smrg====================================
9071ba42d0Smrg
9171ba42d0Smrg   You can compile the package for more than one kind of computer at the
9271ba42d0Smrgsame time, by placing the object files for each architecture in their
9371ba42d0Smrgown directory.  To do this, you can use GNU `make'.  `cd' to the
9471ba42d0Smrgdirectory where you want the object files and executables to go and run
9571ba42d0Smrgthe `configure' script.  `configure' automatically checks for the
9671ba42d0Smrgsource code in the directory that `configure' is in and in `..'.
9771ba42d0Smrg
9871ba42d0Smrg   With a non-GNU `make', it is safer to compile the package for one
9971ba42d0Smrgarchitecture at a time in the source code directory.  After you have
10071ba42d0Smrginstalled the package for one architecture, use `make distclean' before
10171ba42d0Smrgreconfiguring for another architecture.
10271ba42d0Smrg
10371ba42d0Smrg   On MacOS X 10.5 and later systems, you can create libraries and
10471ba42d0Smrgexecutables that work on multiple system types--known as "fat" or
10571ba42d0Smrg"universal" binaries--by specifying multiple `-arch' options to the
10671ba42d0Smrgcompiler but only a single `-arch' option to the preprocessor.  Like
10771ba42d0Smrgthis:
10871ba42d0Smrg
10971ba42d0Smrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
11071ba42d0Smrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
11171ba42d0Smrg                 CPP="gcc -E" CXXCPP="g++ -E"
11271ba42d0Smrg
11371ba42d0Smrg   This is not guaranteed to produce working output in all cases, you
11471ba42d0Smrgmay have to build one architecture at a time and combine the results
11571ba42d0Smrgusing the `lipo' tool if you have problems.
11671ba42d0Smrg
11771ba42d0SmrgInstallation Names
11871ba42d0Smrg==================
11971ba42d0Smrg
12071ba42d0Smrg   By default, `make install' installs the package's commands under
12171ba42d0Smrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
12271ba42d0Smrgcan specify an installation prefix other than `/usr/local' by giving
12371ba42d0Smrg`configure' the option `--prefix=PREFIX'.
12471ba42d0Smrg
12571ba42d0Smrg   You can specify separate installation prefixes for
12671ba42d0Smrgarchitecture-specific files and architecture-independent files.  If you
12771ba42d0Smrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
12871ba42d0SmrgPREFIX as the prefix for installing programs and libraries.
12971ba42d0SmrgDocumentation and other data files still use the regular prefix.
13071ba42d0Smrg
13171ba42d0Smrg   In addition, if you use an unusual directory layout you can give
13271ba42d0Smrgoptions like `--bindir=DIR' to specify different values for particular
13371ba42d0Smrgkinds of files.  Run `configure --help' for a list of the directories
13471ba42d0Smrgyou can set and what kinds of files go in them.
13571ba42d0Smrg
13671ba42d0Smrg   If the package supports it, you can cause programs to be installed
13771ba42d0Smrgwith an extra prefix or suffix on their names by giving `configure' the
13871ba42d0Smrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
13971ba42d0Smrg
14071ba42d0SmrgOptional Features
14171ba42d0Smrg=================
14271ba42d0Smrg
14371ba42d0Smrg   Some packages pay attention to `--enable-FEATURE' options to
14471ba42d0Smrg`configure', where FEATURE indicates an optional part of the package.
14571ba42d0SmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
14671ba42d0Smrgis something like `gnu-as' or `x' (for the X Window System).  The
14771ba42d0Smrg`README' should mention any `--enable-' and `--with-' options that the
14871ba42d0Smrgpackage recognizes.
14971ba42d0Smrg
15071ba42d0Smrg   For packages that use the X Window System, `configure' can usually
15171ba42d0Smrgfind the X include and library files automatically, but if it doesn't,
15271ba42d0Smrgyou can use the `configure' options `--x-includes=DIR' and
15371ba42d0Smrg`--x-libraries=DIR' to specify their locations.
15471ba42d0Smrg
15571ba42d0SmrgParticular systems
15671ba42d0Smrg==================
15771ba42d0Smrg
15871ba42d0Smrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
15971ba42d0SmrgCC is not installed, it is recommended to use the following options in
16071ba42d0Smrgorder to use an ANSI C compiler:
16171ba42d0Smrg
16271ba42d0Smrg     ./configure CC="cc -Ae"
16371ba42d0Smrg
16471ba42d0Smrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
16571ba42d0Smrg
16671ba42d0Smrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
16771ba42d0Smrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
16871ba42d0Smrga workaround.  If GNU CC is not installed, it is therefore recommended
16971ba42d0Smrgto try
17071ba42d0Smrg
17171ba42d0Smrg     ./configure CC="cc"
17271ba42d0Smrg
17371ba42d0Smrgand if that doesn't work, try
17471ba42d0Smrg
17571ba42d0Smrg     ./configure CC="cc -nodtk"
17671ba42d0Smrg
17771ba42d0SmrgSpecifying the System Type
17871ba42d0Smrg==========================
17971ba42d0Smrg
18071ba42d0Smrg   There may be some features `configure' cannot figure out
18171ba42d0Smrgautomatically, but needs to determine by the type of machine the package
18271ba42d0Smrgwill run on.  Usually, assuming the package is built to be run on the
18371ba42d0Smrg_same_ architectures, `configure' can figure that out, but if it prints
18471ba42d0Smrga message saying it cannot guess the machine type, give it the
18571ba42d0Smrg`--build=TYPE' option.  TYPE can either be a short name for the system
18671ba42d0Smrgtype, such as `sun4', or a canonical name which has the form:
18771ba42d0Smrg
18871ba42d0Smrg     CPU-COMPANY-SYSTEM
18971ba42d0Smrg
19071ba42d0Smrgwhere SYSTEM can have one of these forms:
19171ba42d0Smrg
19271ba42d0Smrg     OS KERNEL-OS
19371ba42d0Smrg
19471ba42d0Smrg   See the file `config.sub' for the possible values of each field.  If
19571ba42d0Smrg`config.sub' isn't included in this package, then this package doesn't
19671ba42d0Smrgneed to know the machine type.
19771ba42d0Smrg
19871ba42d0Smrg   If you are _building_ compiler tools for cross-compiling, you should
19971ba42d0Smrguse the option `--target=TYPE' to select the type of system they will
20071ba42d0Smrgproduce code for.
20171ba42d0Smrg
20271ba42d0Smrg   If you want to _use_ a cross compiler, that generates code for a
20371ba42d0Smrgplatform different from the build platform, you should specify the
20471ba42d0Smrg"host" platform (i.e., that on which the generated programs will
20571ba42d0Smrgeventually be run) with `--host=TYPE'.
20671ba42d0Smrg
20771ba42d0SmrgSharing Defaults
20871ba42d0Smrg================
20971ba42d0Smrg
21071ba42d0Smrg   If you want to set default values for `configure' scripts to share,
21171ba42d0Smrgyou can create a site shell script called `config.site' that gives
21271ba42d0Smrgdefault values for variables like `CC', `cache_file', and `prefix'.
21371ba42d0Smrg`configure' looks for `PREFIX/share/config.site' if it exists, then
21471ba42d0Smrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
21571ba42d0Smrg`CONFIG_SITE' environment variable to the location of the site script.
21671ba42d0SmrgA warning: not all `configure' scripts look for a site script.
21771ba42d0Smrg
21871ba42d0SmrgDefining Variables
21971ba42d0Smrg==================
22071ba42d0Smrg
22171ba42d0Smrg   Variables not defined in a site shell script can be set in the
22271ba42d0Smrgenvironment passed to `configure'.  However, some packages may run
22371ba42d0Smrgconfigure again during the build, and the customized values of these
22471ba42d0Smrgvariables may be lost.  In order to avoid this problem, you should set
22571ba42d0Smrgthem in the `configure' command line, using `VAR=value'.  For example:
22671ba42d0Smrg
22771ba42d0Smrg     ./configure CC=/usr/local2/bin/gcc
22871ba42d0Smrg
22971ba42d0Smrgcauses the specified `gcc' to be used as the C compiler (unless it is
23071ba42d0Smrgoverridden in the site shell script).
23171ba42d0Smrg
23271ba42d0SmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
23371ba42d0Smrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
23471ba42d0Smrg
23571ba42d0Smrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
23671ba42d0Smrg
23771ba42d0Smrg`configure' Invocation
23871ba42d0Smrg======================
23971ba42d0Smrg
24071ba42d0Smrg   `configure' recognizes the following options to control how it
24171ba42d0Smrgoperates.
24271ba42d0Smrg
24371ba42d0Smrg`--help'
24471ba42d0Smrg`-h'
24571ba42d0Smrg     Print a summary of all of the options to `configure', and exit.
24671ba42d0Smrg
24771ba42d0Smrg`--help=short'
24871ba42d0Smrg`--help=recursive'
24971ba42d0Smrg     Print a summary of the options unique to this package's
25071ba42d0Smrg     `configure', and exit.  The `short' variant lists options used
25171ba42d0Smrg     only in the top level, while the `recursive' variant lists options
25271ba42d0Smrg     also present in any nested packages.
25371ba42d0Smrg
25471ba42d0Smrg`--version'
25571ba42d0Smrg`-V'
25671ba42d0Smrg     Print the version of Autoconf used to generate the `configure'
25771ba42d0Smrg     script, and exit.
25871ba42d0Smrg
25971ba42d0Smrg`--cache-file=FILE'
26071ba42d0Smrg     Enable the cache: use and save the results of the tests in FILE,
26171ba42d0Smrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
26271ba42d0Smrg     disable caching.
26371ba42d0Smrg
26471ba42d0Smrg`--config-cache'
26571ba42d0Smrg`-C'
26671ba42d0Smrg     Alias for `--cache-file=config.cache'.
26771ba42d0Smrg
26871ba42d0Smrg`--quiet'
26971ba42d0Smrg`--silent'
27071ba42d0Smrg`-q'
27171ba42d0Smrg     Do not print messages saying which checks are being made.  To
27271ba42d0Smrg     suppress all normal output, redirect it to `/dev/null' (any error
27371ba42d0Smrg     messages will still be shown).
27471ba42d0Smrg
27571ba42d0Smrg`--srcdir=DIR'
27671ba42d0Smrg     Look for the package's source code in directory DIR.  Usually
27771ba42d0Smrg     `configure' can determine that directory automatically.
27871ba42d0Smrg
27971ba42d0Smrg`--prefix=DIR'
28071ba42d0Smrg     Use DIR as the installation prefix.  *Note Installation Names::
28171ba42d0Smrg     for more details, including other options available for fine-tuning
28271ba42d0Smrg     the installation locations.
28371ba42d0Smrg
28471ba42d0Smrg`--no-create'
28571ba42d0Smrg`-n'
28671ba42d0Smrg     Run the configure checks, but stop before creating any output
28771ba42d0Smrg     files.
28871ba42d0Smrg
28971ba42d0Smrg`configure' also accepts some other, not widely useful, options.  Run
29071ba42d0Smrg`configure --help' for more details.
29171ba42d0Smrg
292