INSTALL revision 14330f12
114330f12SmrgInstallation Instructions
214330f12Smrg*************************
314330f12Smrg
414330f12SmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
514330f12Smrg2006, 2007, 2008 Free Software Foundation, Inc.
614330f12Smrg
714330f12Smrg   This file is free documentation; the Free Software Foundation gives
814330f12Smrgunlimited permission to copy, distribute and modify it.
914330f12Smrg
1014330f12SmrgBasic Installation
1114330f12Smrg==================
1214330f12Smrg
1314330f12Smrg   Briefly, the shell commands `./configure; make; make install' should
1414330f12Smrgconfigure, build, and install this package.  The following
1514330f12Smrgmore-detailed instructions are generic; see the `README' file for
1614330f12Smrginstructions specific to this package.
1714330f12Smrg
1814330f12Smrg   The `configure' shell script attempts to guess correct values for
1914330f12Smrgvarious system-dependent variables used during compilation.  It uses
2014330f12Smrgthose values to create a `Makefile' in each directory of the package.
2114330f12SmrgIt may also create one or more `.h' files containing system-dependent
2214330f12Smrgdefinitions.  Finally, it creates a shell script `config.status' that
2314330f12Smrgyou can run in the future to recreate the current configuration, and a
2414330f12Smrgfile `config.log' containing compiler output (useful mainly for
2514330f12Smrgdebugging `configure').
2614330f12Smrg
2714330f12Smrg   It can also use an optional file (typically called `config.cache'
2814330f12Smrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
2914330f12Smrgthe results of its tests to speed up reconfiguring.  Caching is
3014330f12Smrgdisabled by default to prevent problems with accidental use of stale
3114330f12Smrgcache files.
3214330f12Smrg
3314330f12Smrg   If you need to do unusual things to compile the package, please try
3414330f12Smrgto figure out how `configure' could check whether to do them, and mail
3514330f12Smrgdiffs or instructions to the address given in the `README' so they can
3614330f12Smrgbe considered for the next release.  If you are using the cache, and at
3714330f12Smrgsome point `config.cache' contains results you don't want to keep, you
3814330f12Smrgmay remove or edit it.
3914330f12Smrg
4014330f12Smrg   The file `configure.ac' (or `configure.in') is used to create
4114330f12Smrg`configure' by a program called `autoconf'.  You need `configure.ac' if
4214330f12Smrgyou want to change it or regenerate `configure' using a newer version
4314330f12Smrgof `autoconf'.
4414330f12Smrg
4514330f12SmrgThe simplest way to compile this package is:
4614330f12Smrg
4714330f12Smrg  1. `cd' to the directory containing the package's source code and type
4814330f12Smrg     `./configure' to configure the package for your system.
4914330f12Smrg
5014330f12Smrg     Running `configure' might take a while.  While running, it prints
5114330f12Smrg     some messages telling which features it is checking for.
5214330f12Smrg
5314330f12Smrg  2. Type `make' to compile the package.
5414330f12Smrg
5514330f12Smrg  3. Optionally, type `make check' to run any self-tests that come with
5614330f12Smrg     the package.
5714330f12Smrg
5814330f12Smrg  4. Type `make install' to install the programs and any data files and
5914330f12Smrg     documentation.
6014330f12Smrg
6114330f12Smrg  5. You can remove the program binaries and object files from the
6214330f12Smrg     source code directory by typing `make clean'.  To also remove the
6314330f12Smrg     files that `configure' created (so you can compile the package for
6414330f12Smrg     a different kind of computer), type `make distclean'.  There is
6514330f12Smrg     also a `make maintainer-clean' target, but that is intended mainly
6614330f12Smrg     for the package's developers.  If you use it, you may have to get
6714330f12Smrg     all sorts of other programs in order to regenerate files that came
6814330f12Smrg     with the distribution.
6914330f12Smrg
7014330f12Smrg  6. Often, you can also type `make uninstall' to remove the installed
7114330f12Smrg     files again.
7214330f12Smrg
7314330f12SmrgCompilers and Options
7414330f12Smrg=====================
7514330f12Smrg
7614330f12Smrg   Some systems require unusual options for compilation or linking that
7714330f12Smrgthe `configure' script does not know about.  Run `./configure --help'
7814330f12Smrgfor details on some of the pertinent environment variables.
7914330f12Smrg
8014330f12Smrg   You can give `configure' initial values for configuration parameters
8114330f12Smrgby setting variables in the command line or in the environment.  Here
8214330f12Smrgis an example:
8314330f12Smrg
8414330f12Smrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
8514330f12Smrg
8614330f12Smrg   *Note Defining Variables::, for more details.
8714330f12Smrg
8814330f12SmrgCompiling For Multiple Architectures
8914330f12Smrg====================================
9014330f12Smrg
9114330f12Smrg   You can compile the package for more than one kind of computer at the
9214330f12Smrgsame time, by placing the object files for each architecture in their
9314330f12Smrgown directory.  To do this, you can use GNU `make'.  `cd' to the
9414330f12Smrgdirectory where you want the object files and executables to go and run
9514330f12Smrgthe `configure' script.  `configure' automatically checks for the
9614330f12Smrgsource code in the directory that `configure' is in and in `..'.
9714330f12Smrg
9814330f12Smrg   With a non-GNU `make', it is safer to compile the package for one
9914330f12Smrgarchitecture at a time in the source code directory.  After you have
10014330f12Smrginstalled the package for one architecture, use `make distclean' before
10114330f12Smrgreconfiguring for another architecture.
10214330f12Smrg
10314330f12Smrg   On MacOS X 10.5 and later systems, you can create libraries and
10414330f12Smrgexecutables that work on multiple system types--known as "fat" or
10514330f12Smrg"universal" binaries--by specifying multiple `-arch' options to the
10614330f12Smrgcompiler but only a single `-arch' option to the preprocessor.  Like
10714330f12Smrgthis:
10814330f12Smrg
10914330f12Smrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
11014330f12Smrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
11114330f12Smrg                 CPP="gcc -E" CXXCPP="g++ -E"
11214330f12Smrg
11314330f12Smrg   This is not guaranteed to produce working output in all cases, you
11414330f12Smrgmay have to build one architecture at a time and combine the results
11514330f12Smrgusing the `lipo' tool if you have problems.
11614330f12Smrg
11714330f12SmrgInstallation Names
11814330f12Smrg==================
11914330f12Smrg
12014330f12Smrg   By default, `make install' installs the package's commands under
12114330f12Smrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
12214330f12Smrgcan specify an installation prefix other than `/usr/local' by giving
12314330f12Smrg`configure' the option `--prefix=PREFIX'.
12414330f12Smrg
12514330f12Smrg   You can specify separate installation prefixes for
12614330f12Smrgarchitecture-specific files and architecture-independent files.  If you
12714330f12Smrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
12814330f12SmrgPREFIX as the prefix for installing programs and libraries.
12914330f12SmrgDocumentation and other data files still use the regular prefix.
13014330f12Smrg
13114330f12Smrg   In addition, if you use an unusual directory layout you can give
13214330f12Smrgoptions like `--bindir=DIR' to specify different values for particular
13314330f12Smrgkinds of files.  Run `configure --help' for a list of the directories
13414330f12Smrgyou can set and what kinds of files go in them.
13514330f12Smrg
13614330f12Smrg   If the package supports it, you can cause programs to be installed
13714330f12Smrgwith an extra prefix or suffix on their names by giving `configure' the
13814330f12Smrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
13914330f12Smrg
14014330f12SmrgOptional Features
14114330f12Smrg=================
14214330f12Smrg
14314330f12Smrg   Some packages pay attention to `--enable-FEATURE' options to
14414330f12Smrg`configure', where FEATURE indicates an optional part of the package.
14514330f12SmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
14614330f12Smrgis something like `gnu-as' or `x' (for the X Window System).  The
14714330f12Smrg`README' should mention any `--enable-' and `--with-' options that the
14814330f12Smrgpackage recognizes.
14914330f12Smrg
15014330f12Smrg   For packages that use the X Window System, `configure' can usually
15114330f12Smrgfind the X include and library files automatically, but if it doesn't,
15214330f12Smrgyou can use the `configure' options `--x-includes=DIR' and
15314330f12Smrg`--x-libraries=DIR' to specify their locations.
15414330f12Smrg
15514330f12SmrgParticular systems
15614330f12Smrg==================
15714330f12Smrg
15814330f12Smrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
15914330f12SmrgCC is not installed, it is recommended to use the following options in
16014330f12Smrgorder to use an ANSI C compiler:
16114330f12Smrg
16214330f12Smrg     ./configure CC="cc -Ae"
16314330f12Smrg
16414330f12Smrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
16514330f12Smrg
16614330f12Smrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
16714330f12Smrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
16814330f12Smrga workaround.  If GNU CC is not installed, it is therefore recommended
16914330f12Smrgto try
17014330f12Smrg
17114330f12Smrg     ./configure CC="cc"
17214330f12Smrg
17314330f12Smrgand if that doesn't work, try
17414330f12Smrg
17514330f12Smrg     ./configure CC="cc -nodtk"
17614330f12Smrg
17714330f12SmrgSpecifying the System Type
17814330f12Smrg==========================
17914330f12Smrg
18014330f12Smrg   There may be some features `configure' cannot figure out
18114330f12Smrgautomatically, but needs to determine by the type of machine the package
18214330f12Smrgwill run on.  Usually, assuming the package is built to be run on the
18314330f12Smrg_same_ architectures, `configure' can figure that out, but if it prints
18414330f12Smrga message saying it cannot guess the machine type, give it the
18514330f12Smrg`--build=TYPE' option.  TYPE can either be a short name for the system
18614330f12Smrgtype, such as `sun4', or a canonical name which has the form:
18714330f12Smrg
18814330f12Smrg     CPU-COMPANY-SYSTEM
18914330f12Smrg
19014330f12Smrgwhere SYSTEM can have one of these forms:
19114330f12Smrg
19214330f12Smrg     OS KERNEL-OS
19314330f12Smrg
19414330f12Smrg   See the file `config.sub' for the possible values of each field.  If
19514330f12Smrg`config.sub' isn't included in this package, then this package doesn't
19614330f12Smrgneed to know the machine type.
19714330f12Smrg
19814330f12Smrg   If you are _building_ compiler tools for cross-compiling, you should
19914330f12Smrguse the option `--target=TYPE' to select the type of system they will
20014330f12Smrgproduce code for.
20114330f12Smrg
20214330f12Smrg   If you want to _use_ a cross compiler, that generates code for a
20314330f12Smrgplatform different from the build platform, you should specify the
20414330f12Smrg"host" platform (i.e., that on which the generated programs will
20514330f12Smrgeventually be run) with `--host=TYPE'.
20614330f12Smrg
20714330f12SmrgSharing Defaults
20814330f12Smrg================
20914330f12Smrg
21014330f12Smrg   If you want to set default values for `configure' scripts to share,
21114330f12Smrgyou can create a site shell script called `config.site' that gives
21214330f12Smrgdefault values for variables like `CC', `cache_file', and `prefix'.
21314330f12Smrg`configure' looks for `PREFIX/share/config.site' if it exists, then
21414330f12Smrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
21514330f12Smrg`CONFIG_SITE' environment variable to the location of the site script.
21614330f12SmrgA warning: not all `configure' scripts look for a site script.
21714330f12Smrg
21814330f12SmrgDefining Variables
21914330f12Smrg==================
22014330f12Smrg
22114330f12Smrg   Variables not defined in a site shell script can be set in the
22214330f12Smrgenvironment passed to `configure'.  However, some packages may run
22314330f12Smrgconfigure again during the build, and the customized values of these
22414330f12Smrgvariables may be lost.  In order to avoid this problem, you should set
22514330f12Smrgthem in the `configure' command line, using `VAR=value'.  For example:
22614330f12Smrg
22714330f12Smrg     ./configure CC=/usr/local2/bin/gcc
22814330f12Smrg
22914330f12Smrgcauses the specified `gcc' to be used as the C compiler (unless it is
23014330f12Smrgoverridden in the site shell script).
23114330f12Smrg
23214330f12SmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
23314330f12Smrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
23414330f12Smrg
23514330f12Smrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
23614330f12Smrg
23714330f12Smrg`configure' Invocation
23814330f12Smrg======================
23914330f12Smrg
24014330f12Smrg   `configure' recognizes the following options to control how it
24114330f12Smrgoperates.
24214330f12Smrg
24314330f12Smrg`--help'
24414330f12Smrg`-h'
24514330f12Smrg     Print a summary of all of the options to `configure', and exit.
24614330f12Smrg
24714330f12Smrg`--help=short'
24814330f12Smrg`--help=recursive'
24914330f12Smrg     Print a summary of the options unique to this package's
25014330f12Smrg     `configure', and exit.  The `short' variant lists options used
25114330f12Smrg     only in the top level, while the `recursive' variant lists options
25214330f12Smrg     also present in any nested packages.
25314330f12Smrg
25414330f12Smrg`--version'
25514330f12Smrg`-V'
25614330f12Smrg     Print the version of Autoconf used to generate the `configure'
25714330f12Smrg     script, and exit.
25814330f12Smrg
25914330f12Smrg`--cache-file=FILE'
26014330f12Smrg     Enable the cache: use and save the results of the tests in FILE,
26114330f12Smrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
26214330f12Smrg     disable caching.
26314330f12Smrg
26414330f12Smrg`--config-cache'
26514330f12Smrg`-C'
26614330f12Smrg     Alias for `--cache-file=config.cache'.
26714330f12Smrg
26814330f12Smrg`--quiet'
26914330f12Smrg`--silent'
27014330f12Smrg`-q'
27114330f12Smrg     Do not print messages saying which checks are being made.  To
27214330f12Smrg     suppress all normal output, redirect it to `/dev/null' (any error
27314330f12Smrg     messages will still be shown).
27414330f12Smrg
27514330f12Smrg`--srcdir=DIR'
27614330f12Smrg     Look for the package's source code in directory DIR.  Usually
27714330f12Smrg     `configure' can determine that directory automatically.
27814330f12Smrg
27914330f12Smrg`--prefix=DIR'
28014330f12Smrg     Use DIR as the installation prefix.  *Note Installation Names::
28114330f12Smrg     for more details, including other options available for fine-tuning
28214330f12Smrg     the installation locations.
28314330f12Smrg
28414330f12Smrg`--no-create'
28514330f12Smrg`-n'
28614330f12Smrg     Run the configure checks, but stop before creating any output
28714330f12Smrg     files.
28814330f12Smrg
28914330f12Smrg`configure' also accepts some other, not widely useful, options.  Run
29014330f12Smrg`configure --help' for more details.
29114330f12Smrg
292