INSTALL revision 44d8e951
144d8e951SmrgInstallation Instructions
244d8e951Smrg*************************
344d8e951Smrg
444d8e951SmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
544d8e951Smrg2006, 2007, 2008 Free Software Foundation, Inc.
644d8e951Smrg
744d8e951Smrg   This file is free documentation; the Free Software Foundation gives
844d8e951Smrgunlimited permission to copy, distribute and modify it.
944d8e951Smrg
1044d8e951SmrgBasic Installation
1144d8e951Smrg==================
1244d8e951Smrg
1344d8e951Smrg   Briefly, the shell commands `./configure; make; make install' should
1444d8e951Smrgconfigure, build, and install this package.  The following
1544d8e951Smrgmore-detailed instructions are generic; see the `README' file for
1644d8e951Smrginstructions specific to this package.
1744d8e951Smrg
1844d8e951Smrg   The `configure' shell script attempts to guess correct values for
1944d8e951Smrgvarious system-dependent variables used during compilation.  It uses
2044d8e951Smrgthose values to create a `Makefile' in each directory of the package.
2144d8e951SmrgIt may also create one or more `.h' files containing system-dependent
2244d8e951Smrgdefinitions.  Finally, it creates a shell script `config.status' that
2344d8e951Smrgyou can run in the future to recreate the current configuration, and a
2444d8e951Smrgfile `config.log' containing compiler output (useful mainly for
2544d8e951Smrgdebugging `configure').
2644d8e951Smrg
2744d8e951Smrg   It can also use an optional file (typically called `config.cache'
2844d8e951Smrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
2944d8e951Smrgthe results of its tests to speed up reconfiguring.  Caching is
3044d8e951Smrgdisabled by default to prevent problems with accidental use of stale
3144d8e951Smrgcache files.
3244d8e951Smrg
3344d8e951Smrg   If you need to do unusual things to compile the package, please try
3444d8e951Smrgto figure out how `configure' could check whether to do them, and mail
3544d8e951Smrgdiffs or instructions to the address given in the `README' so they can
3644d8e951Smrgbe considered for the next release.  If you are using the cache, and at
3744d8e951Smrgsome point `config.cache' contains results you don't want to keep, you
3844d8e951Smrgmay remove or edit it.
3944d8e951Smrg
4044d8e951Smrg   The file `configure.ac' (or `configure.in') is used to create
4144d8e951Smrg`configure' by a program called `autoconf'.  You need `configure.ac' if
4244d8e951Smrgyou want to change it or regenerate `configure' using a newer version
4344d8e951Smrgof `autoconf'.
4444d8e951Smrg
4544d8e951SmrgThe simplest way to compile this package is:
4644d8e951Smrg
4744d8e951Smrg  1. `cd' to the directory containing the package's source code and type
4844d8e951Smrg     `./configure' to configure the package for your system.
4944d8e951Smrg
5044d8e951Smrg     Running `configure' might take a while.  While running, it prints
5144d8e951Smrg     some messages telling which features it is checking for.
5244d8e951Smrg
5344d8e951Smrg  2. Type `make' to compile the package.
5444d8e951Smrg
5544d8e951Smrg  3. Optionally, type `make check' to run any self-tests that come with
5644d8e951Smrg     the package.
5744d8e951Smrg
5844d8e951Smrg  4. Type `make install' to install the programs and any data files and
5944d8e951Smrg     documentation.
6044d8e951Smrg
6144d8e951Smrg  5. You can remove the program binaries and object files from the
6244d8e951Smrg     source code directory by typing `make clean'.  To also remove the
6344d8e951Smrg     files that `configure' created (so you can compile the package for
6444d8e951Smrg     a different kind of computer), type `make distclean'.  There is
6544d8e951Smrg     also a `make maintainer-clean' target, but that is intended mainly
6644d8e951Smrg     for the package's developers.  If you use it, you may have to get
6744d8e951Smrg     all sorts of other programs in order to regenerate files that came
6844d8e951Smrg     with the distribution.
6944d8e951Smrg
7044d8e951Smrg  6. Often, you can also type `make uninstall' to remove the installed
7144d8e951Smrg     files again.
7244d8e951Smrg
7344d8e951SmrgCompilers and Options
7444d8e951Smrg=====================
7544d8e951Smrg
7644d8e951Smrg   Some systems require unusual options for compilation or linking that
7744d8e951Smrgthe `configure' script does not know about.  Run `./configure --help'
7844d8e951Smrgfor details on some of the pertinent environment variables.
7944d8e951Smrg
8044d8e951Smrg   You can give `configure' initial values for configuration parameters
8144d8e951Smrgby setting variables in the command line or in the environment.  Here
8244d8e951Smrgis an example:
8344d8e951Smrg
8444d8e951Smrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
8544d8e951Smrg
8644d8e951Smrg   *Note Defining Variables::, for more details.
8744d8e951Smrg
8844d8e951SmrgCompiling For Multiple Architectures
8944d8e951Smrg====================================
9044d8e951Smrg
9144d8e951Smrg   You can compile the package for more than one kind of computer at the
9244d8e951Smrgsame time, by placing the object files for each architecture in their
9344d8e951Smrgown directory.  To do this, you can use GNU `make'.  `cd' to the
9444d8e951Smrgdirectory where you want the object files and executables to go and run
9544d8e951Smrgthe `configure' script.  `configure' automatically checks for the
9644d8e951Smrgsource code in the directory that `configure' is in and in `..'.
9744d8e951Smrg
9844d8e951Smrg   With a non-GNU `make', it is safer to compile the package for one
9944d8e951Smrgarchitecture at a time in the source code directory.  After you have
10044d8e951Smrginstalled the package for one architecture, use `make distclean' before
10144d8e951Smrgreconfiguring for another architecture.
10244d8e951Smrg
10344d8e951Smrg   On MacOS X 10.5 and later systems, you can create libraries and
10444d8e951Smrgexecutables that work on multiple system types--known as "fat" or
10544d8e951Smrg"universal" binaries--by specifying multiple `-arch' options to the
10644d8e951Smrgcompiler but only a single `-arch' option to the preprocessor.  Like
10744d8e951Smrgthis:
10844d8e951Smrg
10944d8e951Smrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
11044d8e951Smrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
11144d8e951Smrg                 CPP="gcc -E" CXXCPP="g++ -E"
11244d8e951Smrg
11344d8e951Smrg   This is not guaranteed to produce working output in all cases, you
11444d8e951Smrgmay have to build one architecture at a time and combine the results
11544d8e951Smrgusing the `lipo' tool if you have problems.
11644d8e951Smrg
11744d8e951SmrgInstallation Names
11844d8e951Smrg==================
11944d8e951Smrg
12044d8e951Smrg   By default, `make install' installs the package's commands under
12144d8e951Smrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
12244d8e951Smrgcan specify an installation prefix other than `/usr/local' by giving
12344d8e951Smrg`configure' the option `--prefix=PREFIX'.
12444d8e951Smrg
12544d8e951Smrg   You can specify separate installation prefixes for
12644d8e951Smrgarchitecture-specific files and architecture-independent files.  If you
12744d8e951Smrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
12844d8e951SmrgPREFIX as the prefix for installing programs and libraries.
12944d8e951SmrgDocumentation and other data files still use the regular prefix.
13044d8e951Smrg
13144d8e951Smrg   In addition, if you use an unusual directory layout you can give
13244d8e951Smrgoptions like `--bindir=DIR' to specify different values for particular
13344d8e951Smrgkinds of files.  Run `configure --help' for a list of the directories
13444d8e951Smrgyou can set and what kinds of files go in them.
13544d8e951Smrg
13644d8e951Smrg   If the package supports it, you can cause programs to be installed
13744d8e951Smrgwith an extra prefix or suffix on their names by giving `configure' the
13844d8e951Smrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
13944d8e951Smrg
14044d8e951SmrgOptional Features
14144d8e951Smrg=================
14244d8e951Smrg
14344d8e951Smrg   Some packages pay attention to `--enable-FEATURE' options to
14444d8e951Smrg`configure', where FEATURE indicates an optional part of the package.
14544d8e951SmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
14644d8e951Smrgis something like `gnu-as' or `x' (for the X Window System).  The
14744d8e951Smrg`README' should mention any `--enable-' and `--with-' options that the
14844d8e951Smrgpackage recognizes.
14944d8e951Smrg
15044d8e951Smrg   For packages that use the X Window System, `configure' can usually
15144d8e951Smrgfind the X include and library files automatically, but if it doesn't,
15244d8e951Smrgyou can use the `configure' options `--x-includes=DIR' and
15344d8e951Smrg`--x-libraries=DIR' to specify their locations.
15444d8e951Smrg
15544d8e951SmrgParticular systems
15644d8e951Smrg==================
15744d8e951Smrg
15844d8e951Smrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
15944d8e951SmrgCC is not installed, it is recommended to use the following options in
16044d8e951Smrgorder to use an ANSI C compiler:
16144d8e951Smrg
16244d8e951Smrg     ./configure CC="cc -Ae"
16344d8e951Smrg
16444d8e951Smrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
16544d8e951Smrg
16644d8e951Smrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
16744d8e951Smrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
16844d8e951Smrga workaround.  If GNU CC is not installed, it is therefore recommended
16944d8e951Smrgto try
17044d8e951Smrg
17144d8e951Smrg     ./configure CC="cc"
17244d8e951Smrg
17344d8e951Smrgand if that doesn't work, try
17444d8e951Smrg
17544d8e951Smrg     ./configure CC="cc -nodtk"
17644d8e951Smrg
17744d8e951SmrgSpecifying the System Type
17844d8e951Smrg==========================
17944d8e951Smrg
18044d8e951Smrg   There may be some features `configure' cannot figure out
18144d8e951Smrgautomatically, but needs to determine by the type of machine the package
18244d8e951Smrgwill run on.  Usually, assuming the package is built to be run on the
18344d8e951Smrg_same_ architectures, `configure' can figure that out, but if it prints
18444d8e951Smrga message saying it cannot guess the machine type, give it the
18544d8e951Smrg`--build=TYPE' option.  TYPE can either be a short name for the system
18644d8e951Smrgtype, such as `sun4', or a canonical name which has the form:
18744d8e951Smrg
18844d8e951Smrg     CPU-COMPANY-SYSTEM
18944d8e951Smrg
19044d8e951Smrgwhere SYSTEM can have one of these forms:
19144d8e951Smrg
19244d8e951Smrg     OS KERNEL-OS
19344d8e951Smrg
19444d8e951Smrg   See the file `config.sub' for the possible values of each field.  If
19544d8e951Smrg`config.sub' isn't included in this package, then this package doesn't
19644d8e951Smrgneed to know the machine type.
19744d8e951Smrg
19844d8e951Smrg   If you are _building_ compiler tools for cross-compiling, you should
19944d8e951Smrguse the option `--target=TYPE' to select the type of system they will
20044d8e951Smrgproduce code for.
20144d8e951Smrg
20244d8e951Smrg   If you want to _use_ a cross compiler, that generates code for a
20344d8e951Smrgplatform different from the build platform, you should specify the
20444d8e951Smrg"host" platform (i.e., that on which the generated programs will
20544d8e951Smrgeventually be run) with `--host=TYPE'.
20644d8e951Smrg
20744d8e951SmrgSharing Defaults
20844d8e951Smrg================
20944d8e951Smrg
21044d8e951Smrg   If you want to set default values for `configure' scripts to share,
21144d8e951Smrgyou can create a site shell script called `config.site' that gives
21244d8e951Smrgdefault values for variables like `CC', `cache_file', and `prefix'.
21344d8e951Smrg`configure' looks for `PREFIX/share/config.site' if it exists, then
21444d8e951Smrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
21544d8e951Smrg`CONFIG_SITE' environment variable to the location of the site script.
21644d8e951SmrgA warning: not all `configure' scripts look for a site script.
21744d8e951Smrg
21844d8e951SmrgDefining Variables
21944d8e951Smrg==================
22044d8e951Smrg
22144d8e951Smrg   Variables not defined in a site shell script can be set in the
22244d8e951Smrgenvironment passed to `configure'.  However, some packages may run
22344d8e951Smrgconfigure again during the build, and the customized values of these
22444d8e951Smrgvariables may be lost.  In order to avoid this problem, you should set
22544d8e951Smrgthem in the `configure' command line, using `VAR=value'.  For example:
22644d8e951Smrg
22744d8e951Smrg     ./configure CC=/usr/local2/bin/gcc
22844d8e951Smrg
22944d8e951Smrgcauses the specified `gcc' to be used as the C compiler (unless it is
23044d8e951Smrgoverridden in the site shell script).
23144d8e951Smrg
23244d8e951SmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
23344d8e951Smrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
23444d8e951Smrg
23544d8e951Smrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
23644d8e951Smrg
23744d8e951Smrg`configure' Invocation
23844d8e951Smrg======================
23944d8e951Smrg
24044d8e951Smrg   `configure' recognizes the following options to control how it
24144d8e951Smrgoperates.
24244d8e951Smrg
24344d8e951Smrg`--help'
24444d8e951Smrg`-h'
24544d8e951Smrg     Print a summary of all of the options to `configure', and exit.
24644d8e951Smrg
24744d8e951Smrg`--help=short'
24844d8e951Smrg`--help=recursive'
24944d8e951Smrg     Print a summary of the options unique to this package's
25044d8e951Smrg     `configure', and exit.  The `short' variant lists options used
25144d8e951Smrg     only in the top level, while the `recursive' variant lists options
25244d8e951Smrg     also present in any nested packages.
25344d8e951Smrg
25444d8e951Smrg`--version'
25544d8e951Smrg`-V'
25644d8e951Smrg     Print the version of Autoconf used to generate the `configure'
25744d8e951Smrg     script, and exit.
25844d8e951Smrg
25944d8e951Smrg`--cache-file=FILE'
26044d8e951Smrg     Enable the cache: use and save the results of the tests in FILE,
26144d8e951Smrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
26244d8e951Smrg     disable caching.
26344d8e951Smrg
26444d8e951Smrg`--config-cache'
26544d8e951Smrg`-C'
26644d8e951Smrg     Alias for `--cache-file=config.cache'.
26744d8e951Smrg
26844d8e951Smrg`--quiet'
26944d8e951Smrg`--silent'
27044d8e951Smrg`-q'
27144d8e951Smrg     Do not print messages saying which checks are being made.  To
27244d8e951Smrg     suppress all normal output, redirect it to `/dev/null' (any error
27344d8e951Smrg     messages will still be shown).
27444d8e951Smrg
27544d8e951Smrg`--srcdir=DIR'
27644d8e951Smrg     Look for the package's source code in directory DIR.  Usually
27744d8e951Smrg     `configure' can determine that directory automatically.
27844d8e951Smrg
27944d8e951Smrg`--prefix=DIR'
28044d8e951Smrg     Use DIR as the installation prefix.  *Note Installation Names::
28144d8e951Smrg     for more details, including other options available for fine-tuning
28244d8e951Smrg     the installation locations.
28344d8e951Smrg
28444d8e951Smrg`--no-create'
28544d8e951Smrg`-n'
28644d8e951Smrg     Run the configure checks, but stop before creating any output
28744d8e951Smrg     files.
28844d8e951Smrg
28944d8e951Smrg`configure' also accepts some other, not widely useful, options.  Run
29044d8e951Smrg`configure --help' for more details.
29144d8e951Smrg
292