Blame INSTALL

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