Blame INSTALL

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