INSTALL revision 74c14cd6
174c14cd6SmrgInstallation Instructions
274c14cd6Smrg*************************
374c14cd6Smrg
474c14cd6SmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
574c14cd6Smrg2006, 2007, 2008 Free Software Foundation, Inc.
674c14cd6Smrg
774c14cd6Smrg   This file is free documentation; the Free Software Foundation gives
874c14cd6Smrgunlimited permission to copy, distribute and modify it.
974c14cd6Smrg
1074c14cd6SmrgBasic Installation
1174c14cd6Smrg==================
1274c14cd6Smrg
1374c14cd6Smrg   Briefly, the shell commands `./configure; make; make install' should
1474c14cd6Smrgconfigure, build, and install this package.  The following
1574c14cd6Smrgmore-detailed instructions are generic; see the `README' file for
1674c14cd6Smrginstructions specific to this package.
1774c14cd6Smrg
1874c14cd6Smrg   The `configure' shell script attempts to guess correct values for
1974c14cd6Smrgvarious system-dependent variables used during compilation.  It uses
2074c14cd6Smrgthose values to create a `Makefile' in each directory of the package.
2174c14cd6SmrgIt may also create one or more `.h' files containing system-dependent
2274c14cd6Smrgdefinitions.  Finally, it creates a shell script `config.status' that
2374c14cd6Smrgyou can run in the future to recreate the current configuration, and a
2474c14cd6Smrgfile `config.log' containing compiler output (useful mainly for
2574c14cd6Smrgdebugging `configure').
2674c14cd6Smrg
2774c14cd6Smrg   It can also use an optional file (typically called `config.cache'
2874c14cd6Smrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
2974c14cd6Smrgthe results of its tests to speed up reconfiguring.  Caching is
3074c14cd6Smrgdisabled by default to prevent problems with accidental use of stale
3174c14cd6Smrgcache files.
3274c14cd6Smrg
3374c14cd6Smrg   If you need to do unusual things to compile the package, please try
3474c14cd6Smrgto figure out how `configure' could check whether to do them, and mail
3574c14cd6Smrgdiffs or instructions to the address given in the `README' so they can
3674c14cd6Smrgbe considered for the next release.  If you are using the cache, and at
3774c14cd6Smrgsome point `config.cache' contains results you don't want to keep, you
3874c14cd6Smrgmay remove or edit it.
3974c14cd6Smrg
4074c14cd6Smrg   The file `configure.ac' (or `configure.in') is used to create
4174c14cd6Smrg`configure' by a program called `autoconf'.  You need `configure.ac' if
4274c14cd6Smrgyou want to change it or regenerate `configure' using a newer version
4374c14cd6Smrgof `autoconf'.
4474c14cd6Smrg
4574c14cd6SmrgThe simplest way to compile this package is:
4674c14cd6Smrg
4774c14cd6Smrg  1. `cd' to the directory containing the package's source code and type
4874c14cd6Smrg     `./configure' to configure the package for your system.
4974c14cd6Smrg
5074c14cd6Smrg     Running `configure' might take a while.  While running, it prints
5174c14cd6Smrg     some messages telling which features it is checking for.
5274c14cd6Smrg
5374c14cd6Smrg  2. Type `make' to compile the package.
5474c14cd6Smrg
5574c14cd6Smrg  3. Optionally, type `make check' to run any self-tests that come with
5674c14cd6Smrg     the package.
5774c14cd6Smrg
5874c14cd6Smrg  4. Type `make install' to install the programs and any data files and
5974c14cd6Smrg     documentation.
6074c14cd6Smrg
6174c14cd6Smrg  5. You can remove the program binaries and object files from the
6274c14cd6Smrg     source code directory by typing `make clean'.  To also remove the
6374c14cd6Smrg     files that `configure' created (so you can compile the package for
6474c14cd6Smrg     a different kind of computer), type `make distclean'.  There is
6574c14cd6Smrg     also a `make maintainer-clean' target, but that is intended mainly
6674c14cd6Smrg     for the package's developers.  If you use it, you may have to get
6774c14cd6Smrg     all sorts of other programs in order to regenerate files that came
6874c14cd6Smrg     with the distribution.
6974c14cd6Smrg
7074c14cd6Smrg  6. Often, you can also type `make uninstall' to remove the installed
7174c14cd6Smrg     files again.
7274c14cd6Smrg
7374c14cd6SmrgCompilers and Options
7474c14cd6Smrg=====================
7574c14cd6Smrg
7674c14cd6Smrg   Some systems require unusual options for compilation or linking that
7774c14cd6Smrgthe `configure' script does not know about.  Run `./configure --help'
7874c14cd6Smrgfor details on some of the pertinent environment variables.
7974c14cd6Smrg
8074c14cd6Smrg   You can give `configure' initial values for configuration parameters
8174c14cd6Smrgby setting variables in the command line or in the environment.  Here
8274c14cd6Smrgis an example:
8374c14cd6Smrg
8474c14cd6Smrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
8574c14cd6Smrg
8674c14cd6Smrg   *Note Defining Variables::, for more details.
8774c14cd6Smrg
8874c14cd6SmrgCompiling For Multiple Architectures
8974c14cd6Smrg====================================
9074c14cd6Smrg
9174c14cd6Smrg   You can compile the package for more than one kind of computer at the
9274c14cd6Smrgsame time, by placing the object files for each architecture in their
9374c14cd6Smrgown directory.  To do this, you can use GNU `make'.  `cd' to the
9474c14cd6Smrgdirectory where you want the object files and executables to go and run
9574c14cd6Smrgthe `configure' script.  `configure' automatically checks for the
9674c14cd6Smrgsource code in the directory that `configure' is in and in `..'.
9774c14cd6Smrg
9874c14cd6Smrg   With a non-GNU `make', it is safer to compile the package for one
9974c14cd6Smrgarchitecture at a time in the source code directory.  After you have
10074c14cd6Smrginstalled the package for one architecture, use `make distclean' before
10174c14cd6Smrgreconfiguring for another architecture.
10274c14cd6Smrg
10374c14cd6Smrg   On MacOS X 10.5 and later systems, you can create libraries and
10474c14cd6Smrgexecutables that work on multiple system types--known as "fat" or
10574c14cd6Smrg"universal" binaries--by specifying multiple `-arch' options to the
10674c14cd6Smrgcompiler but only a single `-arch' option to the preprocessor.  Like
10774c14cd6Smrgthis:
10874c14cd6Smrg
10974c14cd6Smrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
11074c14cd6Smrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
11174c14cd6Smrg                 CPP="gcc -E" CXXCPP="g++ -E"
11274c14cd6Smrg
11374c14cd6Smrg   This is not guaranteed to produce working output in all cases, you
11474c14cd6Smrgmay have to build one architecture at a time and combine the results
11574c14cd6Smrgusing the `lipo' tool if you have problems.
11674c14cd6Smrg
11774c14cd6SmrgInstallation Names
11874c14cd6Smrg==================
11974c14cd6Smrg
12074c14cd6Smrg   By default, `make install' installs the package's commands under
12174c14cd6Smrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
12274c14cd6Smrgcan specify an installation prefix other than `/usr/local' by giving
12374c14cd6Smrg`configure' the option `--prefix=PREFIX'.
12474c14cd6Smrg
12574c14cd6Smrg   You can specify separate installation prefixes for
12674c14cd6Smrgarchitecture-specific files and architecture-independent files.  If you
12774c14cd6Smrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
12874c14cd6SmrgPREFIX as the prefix for installing programs and libraries.
12974c14cd6SmrgDocumentation and other data files still use the regular prefix.
13074c14cd6Smrg
13174c14cd6Smrg   In addition, if you use an unusual directory layout you can give
13274c14cd6Smrgoptions like `--bindir=DIR' to specify different values for particular
13374c14cd6Smrgkinds of files.  Run `configure --help' for a list of the directories
13474c14cd6Smrgyou can set and what kinds of files go in them.
13574c14cd6Smrg
13674c14cd6Smrg   If the package supports it, you can cause programs to be installed
13774c14cd6Smrgwith an extra prefix or suffix on their names by giving `configure' the
13874c14cd6Smrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
13974c14cd6Smrg
14074c14cd6SmrgOptional Features
14174c14cd6Smrg=================
14274c14cd6Smrg
14374c14cd6Smrg   Some packages pay attention to `--enable-FEATURE' options to
14474c14cd6Smrg`configure', where FEATURE indicates an optional part of the package.
14574c14cd6SmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
14674c14cd6Smrgis something like `gnu-as' or `x' (for the X Window System).  The
14774c14cd6Smrg`README' should mention any `--enable-' and `--with-' options that the
14874c14cd6Smrgpackage recognizes.
14974c14cd6Smrg
15074c14cd6Smrg   For packages that use the X Window System, `configure' can usually
15174c14cd6Smrgfind the X include and library files automatically, but if it doesn't,
15274c14cd6Smrgyou can use the `configure' options `--x-includes=DIR' and
15374c14cd6Smrg`--x-libraries=DIR' to specify their locations.
15474c14cd6Smrg
15574c14cd6SmrgParticular systems
15674c14cd6Smrg==================
15774c14cd6Smrg
15874c14cd6Smrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
15974c14cd6SmrgCC is not installed, it is recommended to use the following options in
16074c14cd6Smrgorder to use an ANSI C compiler:
16174c14cd6Smrg
16274c14cd6Smrg     ./configure CC="cc -Ae"
16374c14cd6Smrg
16474c14cd6Smrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
16574c14cd6Smrg
16674c14cd6Smrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
16774c14cd6Smrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
16874c14cd6Smrga workaround.  If GNU CC is not installed, it is therefore recommended
16974c14cd6Smrgto try
17074c14cd6Smrg
17174c14cd6Smrg     ./configure CC="cc"
17274c14cd6Smrg
17374c14cd6Smrgand if that doesn't work, try
17474c14cd6Smrg
17574c14cd6Smrg     ./configure CC="cc -nodtk"
17674c14cd6Smrg
17774c14cd6SmrgSpecifying the System Type
17874c14cd6Smrg==========================
17974c14cd6Smrg
18074c14cd6Smrg   There may be some features `configure' cannot figure out
18174c14cd6Smrgautomatically, but needs to determine by the type of machine the package
18274c14cd6Smrgwill run on.  Usually, assuming the package is built to be run on the
18374c14cd6Smrg_same_ architectures, `configure' can figure that out, but if it prints
18474c14cd6Smrga message saying it cannot guess the machine type, give it the
18574c14cd6Smrg`--build=TYPE' option.  TYPE can either be a short name for the system
18674c14cd6Smrgtype, such as `sun4', or a canonical name which has the form:
18774c14cd6Smrg
18874c14cd6Smrg     CPU-COMPANY-SYSTEM
18974c14cd6Smrg
19074c14cd6Smrgwhere SYSTEM can have one of these forms:
19174c14cd6Smrg
19274c14cd6Smrg     OS KERNEL-OS
19374c14cd6Smrg
19474c14cd6Smrg   See the file `config.sub' for the possible values of each field.  If
19574c14cd6Smrg`config.sub' isn't included in this package, then this package doesn't
19674c14cd6Smrgneed to know the machine type.
19774c14cd6Smrg
19874c14cd6Smrg   If you are _building_ compiler tools for cross-compiling, you should
19974c14cd6Smrguse the option `--target=TYPE' to select the type of system they will
20074c14cd6Smrgproduce code for.
20174c14cd6Smrg
20274c14cd6Smrg   If you want to _use_ a cross compiler, that generates code for a
20374c14cd6Smrgplatform different from the build platform, you should specify the
20474c14cd6Smrg"host" platform (i.e., that on which the generated programs will
20574c14cd6Smrgeventually be run) with `--host=TYPE'.
20674c14cd6Smrg
20774c14cd6SmrgSharing Defaults
20874c14cd6Smrg================
20974c14cd6Smrg
21074c14cd6Smrg   If you want to set default values for `configure' scripts to share,
21174c14cd6Smrgyou can create a site shell script called `config.site' that gives
21274c14cd6Smrgdefault values for variables like `CC', `cache_file', and `prefix'.
21374c14cd6Smrg`configure' looks for `PREFIX/share/config.site' if it exists, then
21474c14cd6Smrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
21574c14cd6Smrg`CONFIG_SITE' environment variable to the location of the site script.
21674c14cd6SmrgA warning: not all `configure' scripts look for a site script.
21774c14cd6Smrg
21874c14cd6SmrgDefining Variables
21974c14cd6Smrg==================
22074c14cd6Smrg
22174c14cd6Smrg   Variables not defined in a site shell script can be set in the
22274c14cd6Smrgenvironment passed to `configure'.  However, some packages may run
22374c14cd6Smrgconfigure again during the build, and the customized values of these
22474c14cd6Smrgvariables may be lost.  In order to avoid this problem, you should set
22574c14cd6Smrgthem in the `configure' command line, using `VAR=value'.  For example:
22674c14cd6Smrg
22774c14cd6Smrg     ./configure CC=/usr/local2/bin/gcc
22874c14cd6Smrg
22974c14cd6Smrgcauses the specified `gcc' to be used as the C compiler (unless it is
23074c14cd6Smrgoverridden in the site shell script).
23174c14cd6Smrg
23274c14cd6SmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
23374c14cd6Smrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
23474c14cd6Smrg
23574c14cd6Smrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
23674c14cd6Smrg
23774c14cd6Smrg`configure' Invocation
23874c14cd6Smrg======================
23974c14cd6Smrg
24074c14cd6Smrg   `configure' recognizes the following options to control how it
24174c14cd6Smrgoperates.
24274c14cd6Smrg
24374c14cd6Smrg`--help'
24474c14cd6Smrg`-h'
24574c14cd6Smrg     Print a summary of all of the options to `configure', and exit.
24674c14cd6Smrg
24774c14cd6Smrg`--help=short'
24874c14cd6Smrg`--help=recursive'
24974c14cd6Smrg     Print a summary of the options unique to this package's
25074c14cd6Smrg     `configure', and exit.  The `short' variant lists options used
25174c14cd6Smrg     only in the top level, while the `recursive' variant lists options
25274c14cd6Smrg     also present in any nested packages.
25374c14cd6Smrg
25474c14cd6Smrg`--version'
25574c14cd6Smrg`-V'
25674c14cd6Smrg     Print the version of Autoconf used to generate the `configure'
25774c14cd6Smrg     script, and exit.
25874c14cd6Smrg
25974c14cd6Smrg`--cache-file=FILE'
26074c14cd6Smrg     Enable the cache: use and save the results of the tests in FILE,
26174c14cd6Smrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
26274c14cd6Smrg     disable caching.
26374c14cd6Smrg
26474c14cd6Smrg`--config-cache'
26574c14cd6Smrg`-C'
26674c14cd6Smrg     Alias for `--cache-file=config.cache'.
26774c14cd6Smrg
26874c14cd6Smrg`--quiet'
26974c14cd6Smrg`--silent'
27074c14cd6Smrg`-q'
27174c14cd6Smrg     Do not print messages saying which checks are being made.  To
27274c14cd6Smrg     suppress all normal output, redirect it to `/dev/null' (any error
27374c14cd6Smrg     messages will still be shown).
27474c14cd6Smrg
27574c14cd6Smrg`--srcdir=DIR'
27674c14cd6Smrg     Look for the package's source code in directory DIR.  Usually
27774c14cd6Smrg     `configure' can determine that directory automatically.
27874c14cd6Smrg
27974c14cd6Smrg`--prefix=DIR'
28074c14cd6Smrg     Use DIR as the installation prefix.  *Note Installation Names::
28174c14cd6Smrg     for more details, including other options available for fine-tuning
28274c14cd6Smrg     the installation locations.
28374c14cd6Smrg
28474c14cd6Smrg`--no-create'
28574c14cd6Smrg`-n'
28674c14cd6Smrg     Run the configure checks, but stop before creating any output
28774c14cd6Smrg     files.
28874c14cd6Smrg
28974c14cd6Smrg`configure' also accepts some other, not widely useful, options.  Run
29074c14cd6Smrg`configure --help' for more details.
29174c14cd6Smrg
292