Blame INSTALL

Packit 071ada
Installation Instructions
Packit 071ada
*************************
Packit 071ada
Packit 071ada
Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
Packit 071ada
Inc.
Packit 071ada
Packit 071ada
   Copying and distribution of this file, with or without modification,
Packit 071ada
are permitted in any medium without royalty provided the copyright
Packit 071ada
notice and this notice are preserved.  This file is offered as-is,
Packit 071ada
without warranty of any kind.
Packit 071ada
Packit 071ada
Basic Installation
Packit 071ada
==================
Packit 071ada
Packit 071ada
   Briefly, the shell commands `./configure; make; make install' should
Packit 071ada
configure, build, and install this package.  The following
Packit 071ada
more-detailed instructions are generic; see the `README' file for
Packit 071ada
instructions specific to this package.  Some packages provide this
Packit 071ada
`INSTALL' file but do not implement all of the features documented
Packit 071ada
below.  The lack of an optional feature in a given package is not
Packit 071ada
necessarily a bug.  More recommendations for GNU packages can be found
Packit 071ada
in *note Makefile Conventions: (standards)Makefile Conventions.
Packit 071ada
Packit 071ada
   The `configure' shell script attempts to guess correct values for
Packit 071ada
various system-dependent variables used during compilation.  It uses
Packit 071ada
those values to create a `Makefile' in each directory of the package.
Packit 071ada
It may also create one or more `.h' files containing system-dependent
Packit 071ada
definitions.  Finally, it creates a shell script `config.status' that
Packit 071ada
you can run in the future to recreate the current configuration, and a
Packit 071ada
file `config.log' containing compiler output (useful mainly for
Packit 071ada
debugging `configure').
Packit 071ada
Packit 071ada
   It can also use an optional file (typically called `config.cache'
Packit 071ada
and enabled with `--cache-file=config.cache' or simply `-C') that saves
Packit 071ada
the results of its tests to speed up reconfiguring.  Caching is
Packit 071ada
disabled by default to prevent problems with accidental use of stale
Packit 071ada
cache files.
Packit 071ada
Packit 071ada
   If you need to do unusual things to compile the package, please try
Packit 071ada
to figure out how `configure' could check whether to do them, and mail
Packit 071ada
diffs or instructions to the address given in the `README' so they can
Packit 071ada
be considered for the next release.  If you are using the cache, and at
Packit 071ada
some point `config.cache' contains results you don't want to keep, you
Packit 071ada
may remove or edit it.
Packit 071ada
Packit 071ada
   The file `configure.ac' (or `configure.in') is used to create
Packit 071ada
`configure' by a program called `autoconf'.  You need `configure.ac' if
Packit 071ada
you want to change it or regenerate `configure' using a newer version
Packit 071ada
of `autoconf'.
Packit 071ada
Packit 071ada
   The simplest way to compile this package is:
Packit 071ada
Packit 071ada
  1. `cd' to the directory containing the package's source code and type
Packit 071ada
     `./configure' to configure the package for your system.
Packit 071ada
Packit 071ada
     Running `configure' might take a while.  While running, it prints
Packit 071ada
     some messages telling which features it is checking for.
Packit 071ada
Packit 071ada
  2. Type `make' to compile the package.
Packit 071ada
Packit 071ada
  3. Optionally, type `make check' to run any self-tests that come with
Packit 071ada
     the package, generally using the just-built uninstalled binaries.
Packit 071ada
Packit 071ada
  4. Type `make install' to install the programs and any data files and
Packit 071ada
     documentation.  When installing into a prefix owned by root, it is
Packit 071ada
     recommended that the package be configured and built as a regular
Packit 071ada
     user, and only the `make install' phase executed with root
Packit 071ada
     privileges.
Packit 071ada
Packit 071ada
  5. Optionally, type `make installcheck' to repeat any self-tests, but
Packit 071ada
     this time using the binaries in their final installed location.
Packit 071ada
     This target does not install anything.  Running this target as a
Packit 071ada
     regular user, particularly if the prior `make install' required
Packit 071ada
     root privileges, verifies that the installation completed
Packit 071ada
     correctly.
Packit 071ada
Packit 071ada
  6. You can remove the program binaries and object files from the
Packit 071ada
     source code directory by typing `make clean'.  To also remove the
Packit 071ada
     files that `configure' created (so you can compile the package for
Packit 071ada
     a different kind of computer), type `make distclean'.  There is
Packit 071ada
     also a `make maintainer-clean' target, but that is intended mainly
Packit 071ada
     for the package's developers.  If you use it, you may have to get
Packit 071ada
     all sorts of other programs in order to regenerate files that came
Packit 071ada
     with the distribution.
Packit 071ada
Packit 071ada
  7. Often, you can also type `make uninstall' to remove the installed
Packit 071ada
     files again.  In practice, not all packages have tested that
Packit 071ada
     uninstallation works correctly, even though it is required by the
Packit 071ada
     GNU Coding Standards.
Packit 071ada
Packit 071ada
  8. Some packages, particularly those that use Automake, provide `make
Packit 071ada
     distcheck', which can by used by developers to test that all other
Packit 071ada
     targets like `make install' and `make uninstall' work correctly.
Packit 071ada
     This target is generally not run by end users.
Packit 071ada
Packit 071ada
Compilers and Options
Packit 071ada
=====================
Packit 071ada
Packit 071ada
   Some systems require unusual options for compilation or linking that
Packit 071ada
the `configure' script does not know about.  Run `./configure --help'
Packit 071ada
for details on some of the pertinent environment variables.
Packit 071ada
Packit 071ada
   You can give `configure' initial values for configuration parameters
Packit 071ada
by setting variables in the command line or in the environment.  Here
Packit 071ada
is an example:
Packit 071ada
Packit 071ada
     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
Packit 071ada
Packit 071ada
   *Note Defining Variables::, for more details.
Packit 071ada
Packit 071ada
Compiling For Multiple Architectures
Packit 071ada
====================================
Packit 071ada
Packit 071ada
   You can compile the package for more than one kind of computer at the
Packit 071ada
same time, by placing the object files for each architecture in their
Packit 071ada
own directory.  To do this, you can use GNU `make'.  `cd' to the
Packit 071ada
directory where you want the object files and executables to go and run
Packit 071ada
the `configure' script.  `configure' automatically checks for the
Packit 071ada
source code in the directory that `configure' is in and in `..'.  This
Packit 071ada
is known as a "VPATH" build.
Packit 071ada
Packit 071ada
   With a non-GNU `make', it is safer to compile the package for one
Packit 071ada
architecture at a time in the source code directory.  After you have
Packit 071ada
installed the package for one architecture, use `make distclean' before
Packit 071ada
reconfiguring for another architecture.
Packit 071ada
Packit 071ada
   On MacOS X 10.5 and later systems, you can create libraries and
Packit 071ada
executables that work on multiple system types--known as "fat" or
Packit 071ada
"universal" binaries--by specifying multiple `-arch' options to the
Packit 071ada
compiler but only a single `-arch' option to the preprocessor.  Like
Packit 071ada
this:
Packit 071ada
Packit 071ada
     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
Packit 071ada
                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
Packit 071ada
                 CPP="gcc -E" CXXCPP="g++ -E"
Packit 071ada
Packit 071ada
   This is not guaranteed to produce working output in all cases, you
Packit 071ada
may have to build one architecture at a time and combine the results
Packit 071ada
using the `lipo' tool if you have problems.
Packit 071ada
Packit 071ada
Installation Names
Packit 071ada
==================
Packit 071ada
Packit 071ada
   By default, `make install' installs the package's commands under
Packit 071ada
`/usr/local/bin', include files under `/usr/local/include', etc.  You
Packit 071ada
can specify an installation prefix other than `/usr/local' by giving
Packit 071ada
`configure' the option `--prefix=PREFIX', where PREFIX must be an
Packit 071ada
absolute file name.
Packit 071ada
Packit 071ada
   You can specify separate installation prefixes for
Packit 071ada
architecture-specific files and architecture-independent files.  If you
Packit 071ada
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
Packit 071ada
PREFIX as the prefix for installing programs and libraries.
Packit 071ada
Documentation and other data files still use the regular prefix.
Packit 071ada
Packit 071ada
   In addition, if you use an unusual directory layout you can give
Packit 071ada
options like `--bindir=DIR' to specify different values for particular
Packit 071ada
kinds of files.  Run `configure --help' for a list of the directories
Packit 071ada
you can set and what kinds of files go in them.  In general, the
Packit 071ada
default for these options is expressed in terms of `${prefix}', so that
Packit 071ada
specifying just `--prefix' will affect all of the other directory
Packit 071ada
specifications that were not explicitly provided.
Packit 071ada
Packit 071ada
   The most portable way to affect installation locations is to pass the
Packit 071ada
correct locations to `configure'; however, many packages provide one or
Packit 071ada
both of the following shortcuts of passing variable assignments to the
Packit 071ada
`make install' command line to change installation locations without
Packit 071ada
having to reconfigure or recompile.
Packit 071ada
Packit 071ada
   The first method involves providing an override variable for each
Packit 071ada
affected directory.  For example, `make install
Packit 071ada
prefix=/alternate/directory' will choose an alternate location for all
Packit 071ada
directory configuration variables that were expressed in terms of
Packit 071ada
`${prefix}'.  Any directories that were specified during `configure',
Packit 071ada
but not in terms of `${prefix}', must each be overridden at install
Packit 071ada
time for the entire installation to be relocated.  The approach of
Packit 071ada
makefile variable overrides for each directory variable is required by
Packit 071ada
the GNU Coding Standards, and ideally causes no recompilation.
Packit 071ada
However, some platforms have known limitations with the semantics of
Packit 071ada
shared libraries that end up requiring recompilation when using this
Packit 071ada
method, particularly noticeable in packages that use GNU Libtool.
Packit 071ada
Packit 071ada
   The second method involves providing the `DESTDIR' variable.  For
Packit 071ada
example, `make install DESTDIR=/alternate/directory' will prepend
Packit 071ada
`/alternate/directory' before all installation names.  The approach of
Packit 071ada
`DESTDIR' overrides is not required by the GNU Coding Standards, and
Packit 071ada
does not work on platforms that have drive letters.  On the other hand,
Packit 071ada
it does better at avoiding recompilation issues, and works well even
Packit 071ada
when some directory options were not specified in terms of `${prefix}'
Packit 071ada
at `configure' time.
Packit 071ada
Packit 071ada
Optional Features
Packit 071ada
=================
Packit 071ada
Packit 071ada
   If the package supports it, you can cause programs to be installed
Packit 071ada
with an extra prefix or suffix on their names by giving `configure' the
Packit 071ada
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Packit 071ada
Packit 071ada
   Some packages pay attention to `--enable-FEATURE' options to
Packit 071ada
`configure', where FEATURE indicates an optional part of the package.
Packit 071ada
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
Packit 071ada
is something like `gnu-as' or `x' (for the X Window System).  The
Packit 071ada
`README' should mention any `--enable-' and `--with-' options that the
Packit 071ada
package recognizes.
Packit 071ada
Packit 071ada
   For packages that use the X Window System, `configure' can usually
Packit 071ada
find the X include and library files automatically, but if it doesn't,
Packit 071ada
you can use the `configure' options `--x-includes=DIR' and
Packit 071ada
`--x-libraries=DIR' to specify their locations.
Packit 071ada
Packit 071ada
   Some packages offer the ability to configure how verbose the
Packit 071ada
execution of `make' will be.  For these packages, running `./configure
Packit 071ada
--enable-silent-rules' sets the default to minimal output, which can be
Packit 071ada
overridden with `make V=1'; while running `./configure
Packit 071ada
--disable-silent-rules' sets the default to verbose, which can be
Packit 071ada
overridden with `make V=0'.
Packit 071ada
Packit 071ada
Particular systems
Packit 071ada
==================
Packit 071ada
Packit 071ada
   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
Packit 071ada
CC is not installed, it is recommended to use the following options in
Packit 071ada
order to use an ANSI C compiler:
Packit 071ada
Packit 071ada
     ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
Packit 071ada
Packit 071ada
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
Packit 071ada
Packit 071ada
   HP-UX `make' updates targets which have the same time stamps as
Packit 071ada
their prerequisites, which makes it generally unusable when shipped
Packit 071ada
generated files such as `configure' are involved.  Use GNU `make'
Packit 071ada
instead.
Packit 071ada
Packit 071ada
   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
Packit 071ada
parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
Packit 071ada
a workaround.  If GNU CC is not installed, it is therefore recommended
Packit 071ada
to try
Packit 071ada
Packit 071ada
     ./configure CC="cc"
Packit 071ada
Packit 071ada
and if that doesn't work, try
Packit 071ada
Packit 071ada
     ./configure CC="cc -nodtk"
Packit 071ada
Packit 071ada
   On Solaris, don't put `/usr/ucb' early in your `PATH'.  This
Packit 071ada
directory contains several dysfunctional programs; working variants of
Packit 071ada
these programs are available in `/usr/bin'.  So, if you need `/usr/ucb'
Packit 071ada
in your `PATH', put it _after_ `/usr/bin'.
Packit 071ada
Packit 071ada
   On Haiku, software installed for all users goes in `/boot/common',
Packit 071ada
not `/usr/local'.  It is recommended to use the following options:
Packit 071ada
Packit 071ada
     ./configure --prefix=/boot/common
Packit 071ada
Packit 071ada
Specifying the System Type
Packit 071ada
==========================
Packit 071ada
Packit 071ada
   There may be some features `configure' cannot figure out
Packit 071ada
automatically, but needs to determine by the type of machine the package
Packit 071ada
will run on.  Usually, assuming the package is built to be run on the
Packit 071ada
_same_ architectures, `configure' can figure that out, but if it prints
Packit 071ada
a message saying it cannot guess the machine type, give it the
Packit 071ada
`--build=TYPE' option.  TYPE can either be a short name for the system
Packit 071ada
type, such as `sun4', or a canonical name which has the form:
Packit 071ada
Packit 071ada
     CPU-COMPANY-SYSTEM
Packit 071ada
Packit 071ada
where SYSTEM can have one of these forms:
Packit 071ada
Packit 071ada
     OS
Packit 071ada
     KERNEL-OS
Packit 071ada
Packit 071ada
   See the file `config.sub' for the possible values of each field.  If
Packit 071ada
`config.sub' isn't included in this package, then this package doesn't
Packit 071ada
need to know the machine type.
Packit 071ada
Packit 071ada
   If you are _building_ compiler tools for cross-compiling, you should
Packit 071ada
use the option `--target=TYPE' to select the type of system they will
Packit 071ada
produce code for.
Packit 071ada
Packit 071ada
   If you want to _use_ a cross compiler, that generates code for a
Packit 071ada
platform different from the build platform, you should specify the
Packit 071ada
"host" platform (i.e., that on which the generated programs will
Packit 071ada
eventually be run) with `--host=TYPE'.
Packit 071ada
Packit 071ada
Sharing Defaults
Packit 071ada
================
Packit 071ada
Packit 071ada
   If you want to set default values for `configure' scripts to share,
Packit 071ada
you can create a site shell script called `config.site' that gives
Packit 071ada
default values for variables like `CC', `cache_file', and `prefix'.
Packit 071ada
`configure' looks for `PREFIX/share/config.site' if it exists, then
Packit 071ada
`PREFIX/etc/config.site' if it exists.  Or, you can set the
Packit 071ada
`CONFIG_SITE' environment variable to the location of the site script.
Packit 071ada
A warning: not all `configure' scripts look for a site script.
Packit 071ada
Packit 071ada
Defining Variables
Packit 071ada
==================
Packit 071ada
Packit 071ada
   Variables not defined in a site shell script can be set in the
Packit 071ada
environment passed to `configure'.  However, some packages may run
Packit 071ada
configure again during the build, and the customized values of these
Packit 071ada
variables may be lost.  In order to avoid this problem, you should set
Packit 071ada
them in the `configure' command line, using `VAR=value'.  For example:
Packit 071ada
Packit 071ada
     ./configure CC=/usr/local2/bin/gcc
Packit 071ada
Packit 071ada
causes the specified `gcc' to be used as the C compiler (unless it is
Packit 071ada
overridden in the site shell script).
Packit 071ada
Packit 071ada
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
Packit 071ada
an Autoconf bug.  Until the bug is fixed you can use this workaround:
Packit 071ada
Packit 071ada
     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
Packit 071ada
Packit 071ada
`configure' Invocation
Packit 071ada
======================
Packit 071ada
Packit 071ada
   `configure' recognizes the following options to control how it
Packit 071ada
operates.
Packit 071ada
Packit 071ada
`--help'
Packit 071ada
`-h'
Packit 071ada
     Print a summary of all of the options to `configure', and exit.
Packit 071ada
Packit 071ada
`--help=short'
Packit 071ada
`--help=recursive'
Packit 071ada
     Print a summary of the options unique to this package's
Packit 071ada
     `configure', and exit.  The `short' variant lists options used
Packit 071ada
     only in the top level, while the `recursive' variant lists options
Packit 071ada
     also present in any nested packages.
Packit 071ada
Packit 071ada
`--version'
Packit 071ada
`-V'
Packit 071ada
     Print the version of Autoconf used to generate the `configure'
Packit 071ada
     script, and exit.
Packit 071ada
Packit 071ada
`--cache-file=FILE'
Packit 071ada
     Enable the cache: use and save the results of the tests in FILE,
Packit 071ada
     traditionally `config.cache'.  FILE defaults to `/dev/null' to
Packit 071ada
     disable caching.
Packit 071ada
Packit 071ada
`--config-cache'
Packit 071ada
`-C'
Packit 071ada
     Alias for `--cache-file=config.cache'.
Packit 071ada
Packit 071ada
`--quiet'
Packit 071ada
`--silent'
Packit 071ada
`-q'
Packit 071ada
     Do not print messages saying which checks are being made.  To
Packit 071ada
     suppress all normal output, redirect it to `/dev/null' (any error
Packit 071ada
     messages will still be shown).
Packit 071ada
Packit 071ada
`--srcdir=DIR'
Packit 071ada
     Look for the package's source code in directory DIR.  Usually
Packit 071ada
     `configure' can determine that directory automatically.
Packit 071ada
Packit 071ada
`--prefix=DIR'
Packit 071ada
     Use DIR as the installation prefix.  *note Installation Names::
Packit 071ada
     for more details, including other options available for fine-tuning
Packit 071ada
     the installation locations.
Packit 071ada
Packit 071ada
`--no-create'
Packit 071ada
`-n'
Packit 071ada
     Run the configure checks, but stop before creating any output
Packit 071ada
     files.
Packit 071ada
Packit 071ada
`configure' also accepts some other, not widely useful, options.  Run
Packit 071ada
`configure --help' for more details.
Packit 071ada