Blame INSTALL

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