Blame INSTALL

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