INSTALL revision 65d490d0
165d490d0SmrgInstallation Instructions
265d490d0Smrg*************************
365d490d0Smrg
465d490d0SmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
565d490d0Smrg2006, 2007, 2008 Free Software Foundation, Inc.
665d490d0Smrg
765d490d0Smrg   This file is free documentation; the Free Software Foundation gives
865d490d0Smrgunlimited permission to copy, distribute and modify it.
965d490d0Smrg
1065d490d0SmrgBasic Installation
1165d490d0Smrg==================
1265d490d0Smrg
1365d490d0Smrg   Briefly, the shell commands `./configure; make; make install' should
1465d490d0Smrgconfigure, build, and install this package.  The following
1565d490d0Smrgmore-detailed instructions are generic; see the `README' file for
1665d490d0Smrginstructions specific to this package.
1765d490d0Smrg
1865d490d0Smrg   The `configure' shell script attempts to guess correct values for
1965d490d0Smrgvarious system-dependent variables used during compilation.  It uses
2065d490d0Smrgthose values to create a `Makefile' in each directory of the package.
2165d490d0SmrgIt may also create one or more `.h' files containing system-dependent
2265d490d0Smrgdefinitions.  Finally, it creates a shell script `config.status' that
2365d490d0Smrgyou can run in the future to recreate the current configuration, and a
2465d490d0Smrgfile `config.log' containing compiler output (useful mainly for
2565d490d0Smrgdebugging `configure').
2665d490d0Smrg
2765d490d0Smrg   It can also use an optional file (typically called `config.cache'
2865d490d0Smrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
2965d490d0Smrgthe results of its tests to speed up reconfiguring.  Caching is
3065d490d0Smrgdisabled by default to prevent problems with accidental use of stale
3165d490d0Smrgcache files.
3265d490d0Smrg
3365d490d0Smrg   If you need to do unusual things to compile the package, please try
3465d490d0Smrgto figure out how `configure' could check whether to do them, and mail
3565d490d0Smrgdiffs or instructions to the address given in the `README' so they can
3665d490d0Smrgbe considered for the next release.  If you are using the cache, and at
3765d490d0Smrgsome point `config.cache' contains results you don't want to keep, you
3865d490d0Smrgmay remove or edit it.
3965d490d0Smrg
4065d490d0Smrg   The file `configure.ac' (or `configure.in') is used to create
4165d490d0Smrg`configure' by a program called `autoconf'.  You need `configure.ac' if
4265d490d0Smrgyou want to change it or regenerate `configure' using a newer version
4365d490d0Smrgof `autoconf'.
4465d490d0Smrg
4565d490d0SmrgThe simplest way to compile this package is:
4665d490d0Smrg
4765d490d0Smrg  1. `cd' to the directory containing the package's source code and type
4865d490d0Smrg     `./configure' to configure the package for your system.
4965d490d0Smrg
5065d490d0Smrg     Running `configure' might take a while.  While running, it prints
5165d490d0Smrg     some messages telling which features it is checking for.
5265d490d0Smrg
5365d490d0Smrg  2. Type `make' to compile the package.
5465d490d0Smrg
5565d490d0Smrg  3. Optionally, type `make check' to run any self-tests that come with
5665d490d0Smrg     the package.
5765d490d0Smrg
5865d490d0Smrg  4. Type `make install' to install the programs and any data files and
5965d490d0Smrg     documentation.
6065d490d0Smrg
6165d490d0Smrg  5. You can remove the program binaries and object files from the
6265d490d0Smrg     source code directory by typing `make clean'.  To also remove the
6365d490d0Smrg     files that `configure' created (so you can compile the package for
6465d490d0Smrg     a different kind of computer), type `make distclean'.  There is
6565d490d0Smrg     also a `make maintainer-clean' target, but that is intended mainly
6665d490d0Smrg     for the package's developers.  If you use it, you may have to get
6765d490d0Smrg     all sorts of other programs in order to regenerate files that came
6865d490d0Smrg     with the distribution.
6965d490d0Smrg
7065d490d0Smrg  6. Often, you can also type `make uninstall' to remove the installed
7165d490d0Smrg     files again.
7265d490d0Smrg
7365d490d0SmrgCompilers and Options
7465d490d0Smrg=====================
7565d490d0Smrg
7665d490d0Smrg   Some systems require unusual options for compilation or linking that
7765d490d0Smrgthe `configure' script does not know about.  Run `./configure --help'
7865d490d0Smrgfor details on some of the pertinent environment variables.
7965d490d0Smrg
8065d490d0Smrg   You can give `configure' initial values for configuration parameters
8165d490d0Smrgby setting variables in the command line or in the environment.  Here
8265d490d0Smrgis an example:
8365d490d0Smrg
8465d490d0Smrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
8565d490d0Smrg
8665d490d0Smrg   *Note Defining Variables::, for more details.
8765d490d0Smrg
8865d490d0SmrgCompiling For Multiple Architectures
8965d490d0Smrg====================================
9065d490d0Smrg
9165d490d0Smrg   You can compile the package for more than one kind of computer at the
9265d490d0Smrgsame time, by placing the object files for each architecture in their
9365d490d0Smrgown directory.  To do this, you can use GNU `make'.  `cd' to the
9465d490d0Smrgdirectory where you want the object files and executables to go and run
9565d490d0Smrgthe `configure' script.  `configure' automatically checks for the
9665d490d0Smrgsource code in the directory that `configure' is in and in `..'.
9765d490d0Smrg
9865d490d0Smrg   With a non-GNU `make', it is safer to compile the package for one
9965d490d0Smrgarchitecture at a time in the source code directory.  After you have
10065d490d0Smrginstalled the package for one architecture, use `make distclean' before
10165d490d0Smrgreconfiguring for another architecture.
10265d490d0Smrg
10365d490d0Smrg   On MacOS X 10.5 and later systems, you can create libraries and
10465d490d0Smrgexecutables that work on multiple system types--known as "fat" or
10565d490d0Smrg"universal" binaries--by specifying multiple `-arch' options to the
10665d490d0Smrgcompiler but only a single `-arch' option to the preprocessor.  Like
10765d490d0Smrgthis:
10865d490d0Smrg
10965d490d0Smrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
11065d490d0Smrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
11165d490d0Smrg                 CPP="gcc -E" CXXCPP="g++ -E"
11265d490d0Smrg
11365d490d0Smrg   This is not guaranteed to produce working output in all cases, you
11465d490d0Smrgmay have to build one architecture at a time and combine the results
11565d490d0Smrgusing the `lipo' tool if you have problems.
11665d490d0Smrg
11765d490d0SmrgInstallation Names
11865d490d0Smrg==================
11965d490d0Smrg
12065d490d0Smrg   By default, `make install' installs the package's commands under
12165d490d0Smrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
12265d490d0Smrgcan specify an installation prefix other than `/usr/local' by giving
12365d490d0Smrg`configure' the option `--prefix=PREFIX'.
12465d490d0Smrg
12565d490d0Smrg   You can specify separate installation prefixes for
12665d490d0Smrgarchitecture-specific files and architecture-independent files.  If you
12765d490d0Smrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
12865d490d0SmrgPREFIX as the prefix for installing programs and libraries.
12965d490d0SmrgDocumentation and other data files still use the regular prefix.
13065d490d0Smrg
13165d490d0Smrg   In addition, if you use an unusual directory layout you can give
13265d490d0Smrgoptions like `--bindir=DIR' to specify different values for particular
13365d490d0Smrgkinds of files.  Run `configure --help' for a list of the directories
13465d490d0Smrgyou can set and what kinds of files go in them.
13565d490d0Smrg
13665d490d0Smrg   If the package supports it, you can cause programs to be installed
13765d490d0Smrgwith an extra prefix or suffix on their names by giving `configure' the
13865d490d0Smrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
13965d490d0Smrg
14065d490d0SmrgOptional Features
14165d490d0Smrg=================
14265d490d0Smrg
14365d490d0Smrg   Some packages pay attention to `--enable-FEATURE' options to
14465d490d0Smrg`configure', where FEATURE indicates an optional part of the package.
14565d490d0SmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
14665d490d0Smrgis something like `gnu-as' or `x' (for the X Window System).  The
14765d490d0Smrg`README' should mention any `--enable-' and `--with-' options that the
14865d490d0Smrgpackage recognizes.
14965d490d0Smrg
15065d490d0Smrg   For packages that use the X Window System, `configure' can usually
15165d490d0Smrgfind the X include and library files automatically, but if it doesn't,
15265d490d0Smrgyou can use the `configure' options `--x-includes=DIR' and
15365d490d0Smrg`--x-libraries=DIR' to specify their locations.
15465d490d0Smrg
15565d490d0SmrgParticular systems
15665d490d0Smrg==================
15765d490d0Smrg
15865d490d0Smrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
15965d490d0SmrgCC is not installed, it is recommended to use the following options in
16065d490d0Smrgorder to use an ANSI C compiler:
16165d490d0Smrg
16265d490d0Smrg     ./configure CC="cc -Ae"
16365d490d0Smrg
16465d490d0Smrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
16565d490d0Smrg
16665d490d0Smrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
16765d490d0Smrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
16865d490d0Smrga workaround.  If GNU CC is not installed, it is therefore recommended
16965d490d0Smrgto try
17065d490d0Smrg
17165d490d0Smrg     ./configure CC="cc"
17265d490d0Smrg
17365d490d0Smrgand if that doesn't work, try
17465d490d0Smrg
17565d490d0Smrg     ./configure CC="cc -nodtk"
17665d490d0Smrg
17765d490d0SmrgSpecifying the System Type
17865d490d0Smrg==========================
17965d490d0Smrg
18065d490d0Smrg   There may be some features `configure' cannot figure out
18165d490d0Smrgautomatically, but needs to determine by the type of machine the package
18265d490d0Smrgwill run on.  Usually, assuming the package is built to be run on the
18365d490d0Smrg_same_ architectures, `configure' can figure that out, but if it prints
18465d490d0Smrga message saying it cannot guess the machine type, give it the
18565d490d0Smrg`--build=TYPE' option.  TYPE can either be a short name for the system
18665d490d0Smrgtype, such as `sun4', or a canonical name which has the form:
18765d490d0Smrg
18865d490d0Smrg     CPU-COMPANY-SYSTEM
18965d490d0Smrg
19065d490d0Smrgwhere SYSTEM can have one of these forms:
19165d490d0Smrg
19265d490d0Smrg     OS KERNEL-OS
19365d490d0Smrg
19465d490d0Smrg   See the file `config.sub' for the possible values of each field.  If
19565d490d0Smrg`config.sub' isn't included in this package, then this package doesn't
19665d490d0Smrgneed to know the machine type.
19765d490d0Smrg
19865d490d0Smrg   If you are _building_ compiler tools for cross-compiling, you should
19965d490d0Smrguse the option `--target=TYPE' to select the type of system they will
20065d490d0Smrgproduce code for.
20165d490d0Smrg
20265d490d0Smrg   If you want to _use_ a cross compiler, that generates code for a
20365d490d0Smrgplatform different from the build platform, you should specify the
20465d490d0Smrg"host" platform (i.e., that on which the generated programs will
20565d490d0Smrgeventually be run) with `--host=TYPE'.
20665d490d0Smrg
20765d490d0SmrgSharing Defaults
20865d490d0Smrg================
20965d490d0Smrg
21065d490d0Smrg   If you want to set default values for `configure' scripts to share,
21165d490d0Smrgyou can create a site shell script called `config.site' that gives
21265d490d0Smrgdefault values for variables like `CC', `cache_file', and `prefix'.
21365d490d0Smrg`configure' looks for `PREFIX/share/config.site' if it exists, then
21465d490d0Smrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
21565d490d0Smrg`CONFIG_SITE' environment variable to the location of the site script.
21665d490d0SmrgA warning: not all `configure' scripts look for a site script.
21765d490d0Smrg
21865d490d0SmrgDefining Variables
21965d490d0Smrg==================
22065d490d0Smrg
22165d490d0Smrg   Variables not defined in a site shell script can be set in the
22265d490d0Smrgenvironment passed to `configure'.  However, some packages may run
22365d490d0Smrgconfigure again during the build, and the customized values of these
22465d490d0Smrgvariables may be lost.  In order to avoid this problem, you should set
22565d490d0Smrgthem in the `configure' command line, using `VAR=value'.  For example:
22665d490d0Smrg
22765d490d0Smrg     ./configure CC=/usr/local2/bin/gcc
22865d490d0Smrg
22965d490d0Smrgcauses the specified `gcc' to be used as the C compiler (unless it is
23065d490d0Smrgoverridden in the site shell script).
23165d490d0Smrg
23265d490d0SmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
23365d490d0Smrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
23465d490d0Smrg
23565d490d0Smrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
23665d490d0Smrg
23765d490d0Smrg`configure' Invocation
23865d490d0Smrg======================
23965d490d0Smrg
24065d490d0Smrg   `configure' recognizes the following options to control how it
24165d490d0Smrgoperates.
24265d490d0Smrg
24365d490d0Smrg`--help'
24465d490d0Smrg`-h'
24565d490d0Smrg     Print a summary of all of the options to `configure', and exit.
24665d490d0Smrg
24765d490d0Smrg`--help=short'
24865d490d0Smrg`--help=recursive'
24965d490d0Smrg     Print a summary of the options unique to this package's
25065d490d0Smrg     `configure', and exit.  The `short' variant lists options used
25165d490d0Smrg     only in the top level, while the `recursive' variant lists options
25265d490d0Smrg     also present in any nested packages.
25365d490d0Smrg
25465d490d0Smrg`--version'
25565d490d0Smrg`-V'
25665d490d0Smrg     Print the version of Autoconf used to generate the `configure'
25765d490d0Smrg     script, and exit.
25865d490d0Smrg
25965d490d0Smrg`--cache-file=FILE'
26065d490d0Smrg     Enable the cache: use and save the results of the tests in FILE,
26165d490d0Smrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
26265d490d0Smrg     disable caching.
26365d490d0Smrg
26465d490d0Smrg`--config-cache'
26565d490d0Smrg`-C'
26665d490d0Smrg     Alias for `--cache-file=config.cache'.
26765d490d0Smrg
26865d490d0Smrg`--quiet'
26965d490d0Smrg`--silent'
27065d490d0Smrg`-q'
27165d490d0Smrg     Do not print messages saying which checks are being made.  To
27265d490d0Smrg     suppress all normal output, redirect it to `/dev/null' (any error
27365d490d0Smrg     messages will still be shown).
27465d490d0Smrg
27565d490d0Smrg`--srcdir=DIR'
27665d490d0Smrg     Look for the package's source code in directory DIR.  Usually
27765d490d0Smrg     `configure' can determine that directory automatically.
27865d490d0Smrg
27965d490d0Smrg`--prefix=DIR'
28065d490d0Smrg     Use DIR as the installation prefix.  *Note Installation Names::
28165d490d0Smrg     for more details, including other options available for fine-tuning
28265d490d0Smrg     the installation locations.
28365d490d0Smrg
28465d490d0Smrg`--no-create'
28565d490d0Smrg`-n'
28665d490d0Smrg     Run the configure checks, but stop before creating any output
28765d490d0Smrg     files.
28865d490d0Smrg
28965d490d0Smrg`configure' also accepts some other, not widely useful, options.  Run
29065d490d0Smrg`configure --help' for more details.
29165d490d0Smrg
292