Blame INSTALL

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