Blame INSTALL

Packit 679830
Introduction
Packit 679830
============
Packit 679830
Packit 679830
  This installation guide is for POSIX (Autoconf) systems.
Packit 679830
  For Win32, Win64, DOS and OS/2 please read the file B/00README.TXT.
Packit 679830
Packit 679830
  Quick start
Packit 679830
  -----------
Packit 679830
    ./configure
Packit 679830
    make
Packit 679830
    make check
Packit 679830
    make test     (run a full test)
Packit 679830
    make install  (when logged in as root)
Packit 679830
Packit 679830
  Exotic machines
Packit 679830
  ---------------
Packit 679830
  Instead of using Autoconf you may want to adapt the simple build
Packit 679830
  script in B/generic/build.sh.
Packit 679830
Packit 679830
  Shared libraries
Packit 679830
  ----------------
Packit 679830
  LZO uses Libtool so that shared libraries are supported on many
Packit 679830
  systems. If want to build shared libraries type you have to type
Packit 679830
  `./configure --enable-shared' - building shared libraries is not
Packit 679830
  enabled by default.
Packit 679830
Packit 679830
  Assembler versions
Packit 679830
  ------------------
Packit 679830
  On Intel i386 systems, the assembler versions of the decompressors are
Packit 679830
  built and used by default. You can use `./configure --disable-asm' if
Packit 679830
  for some reason they cause compilation problems on your system.
Packit 679830
Packit 679830
Packit 679830
Packit 679830
[ The standard Autoconf installation instructions follow below. ]
Packit 679830
Packit 679830
Packit 679830
Packit 679830
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
Packit 679830
Foundation, Inc.
Packit 679830
Packit 679830
   This file is free documentation; the Free Software Foundation gives
Packit 679830
unlimited permission to copy, distribute and modify it.
Packit 679830
Packit 679830
Basic Installation
Packit 679830
==================
Packit 679830
Packit 679830
   These are generic installation instructions.
Packit 679830
Packit 679830
   The `configure' shell script attempts to guess correct values for
Packit 679830
various system-dependent variables used during compilation.  It uses
Packit 679830
those values to create a `Makefile' in each directory of the package.
Packit 679830
It may also create one or more `.h' files containing system-dependent
Packit 679830
definitions.  Finally, it creates a shell script `config.status' that
Packit 679830
you can run in the future to recreate the current configuration, and a
Packit 679830
file `config.log' containing compiler output (useful mainly for
Packit 679830
debugging `configure').
Packit 679830
Packit 679830
   It can also use an optional file (typically called `config.cache'
Packit 679830
and enabled with `--cache-file=config.cache' or simply `-C') that saves
Packit 679830
the results of its tests to speed up reconfiguring.  (Caching is
Packit 679830
disabled by default to prevent problems with accidental use of stale
Packit 679830
cache files.)
Packit 679830
Packit 679830
   If you need to do unusual things to compile the package, please try
Packit 679830
to figure out how `configure' could check whether to do them, and mail
Packit 679830
diffs or instructions to the address given in the `README' so they can
Packit 679830
be considered for the next release.  If you are using the cache, and at
Packit 679830
some point `config.cache' contains results you don't want to keep, you
Packit 679830
may remove or edit it.
Packit 679830
Packit 679830
   The file `configure.ac' (or `configure.in') is used to create
Packit 679830
`configure' by a program called `autoconf'.  You only need
Packit 679830
`configure.ac' if you want to change it or regenerate `configure' using
Packit 679830
a newer version of `autoconf'.
Packit 679830
Packit 679830
The simplest way to compile this package is:
Packit 679830
Packit 679830
  1. `cd' to the directory containing the package's source code and type
Packit 679830
     `./configure' to configure the package for your system.  If you're
Packit 679830
     using `csh' on an old version of System V, you might need to type
Packit 679830
     `sh ./configure' instead to prevent `csh' from trying to execute
Packit 679830
     `configure' itself.
Packit 679830
Packit 679830
     Running `configure' takes awhile.  While running, it prints some
Packit 679830
     messages telling which features it is checking for.
Packit 679830
Packit 679830
  2. Type `make' to compile the package.
Packit 679830
Packit 679830
  3. Optionally, type `make check' to run any self-tests that come with
Packit 679830
     the package.
Packit 679830
Packit 679830
  4. Type `make install' to install the programs and any data files and
Packit 679830
     documentation.
Packit 679830
Packit 679830
  5. You can remove the program binaries and object files from the
Packit 679830
     source code directory by typing `make clean'.  To also remove the
Packit 679830
     files that `configure' created (so you can compile the package for
Packit 679830
     a different kind of computer), type `make distclean'.  There is
Packit 679830
     also a `make maintainer-clean' target, but that is intended mainly
Packit 679830
     for the package's developers.  If you use it, you may have to get
Packit 679830
     all sorts of other programs in order to regenerate files that came
Packit 679830
     with the distribution.
Packit 679830
Packit 679830
Compilers and Options
Packit 679830
=====================
Packit 679830
Packit 679830
   Some systems require unusual options for compilation or linking that
Packit 679830
the `configure' script does not know about.  Run `./configure --help'
Packit 679830
for details on some of the pertinent environment variables.
Packit 679830
Packit 679830
   You can give `configure' initial values for configuration parameters
Packit 679830
by setting variables in the command line or in the environment.  Here
Packit 679830
is an example:
Packit 679830
Packit 679830
     ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
Packit 679830
Packit 679830
Compiling For Multiple Architectures
Packit 679830
====================================
Packit 679830
Packit 679830
   You can compile the package for more than one kind of computer at the
Packit 679830
same time, by placing the object files for each architecture in their
Packit 679830
own directory.  To do this, you must use a version of `make' that
Packit 679830
supports the `VPATH' variable, such as GNU `make'.  `cd' to the
Packit 679830
directory where you want the object files and executables to go and run
Packit 679830
the `configure' script.  `configure' automatically checks for the
Packit 679830
source code in the directory that `configure' is in and in `..'.
Packit 679830
Packit 679830
   If you have to use a `make' that does not support the `VPATH'
Packit 679830
variable, you have to compile the package for one architecture at a
Packit 679830
time in the source code directory.  After you have installed the
Packit 679830
package for one architecture, use `make distclean' before reconfiguring
Packit 679830
for another architecture.
Packit 679830
Packit 679830
Installation Names
Packit 679830
==================
Packit 679830
Packit 679830
   By default, `make install' will install the package's files in
Packit 679830
`/usr/local/bin', `/usr/local/man', etc.  You can specify an
Packit 679830
installation prefix other than `/usr/local' by giving `configure' the
Packit 679830
option `--prefix=PATH'.
Packit 679830
Packit 679830
   You can specify separate installation prefixes for
Packit 679830
architecture-specific files and architecture-independent files.  If you
Packit 679830
give `configure' the option `--exec-prefix=PATH', the package will use
Packit 679830
PATH as the prefix for installing programs and libraries.
Packit 679830
Documentation and other data files will still use the regular prefix.
Packit 679830
Packit 679830
   In addition, if you use an unusual directory layout you can give
Packit 679830
options like `--bindir=PATH' to specify different values for particular
Packit 679830
kinds of files.  Run `configure --help' for a list of the directories
Packit 679830
you can set and what kinds of files go in them.
Packit 679830
Packit 679830
   If the package supports it, you can cause programs to be installed
Packit 679830
with an extra prefix or suffix on their names by giving `configure' the
Packit 679830
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Packit 679830
Packit 679830
Optional Features
Packit 679830
=================
Packit 679830
Packit 679830
   Some packages pay attention to `--enable-FEATURE' options to
Packit 679830
`configure', where FEATURE indicates an optional part of the package.
Packit 679830
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
Packit 679830
is something like `gnu-as' or `x' (for the X Window System).  The
Packit 679830
`README' should mention any `--enable-' and `--with-' options that the
Packit 679830
package recognizes.
Packit 679830
Packit 679830
   For packages that use the X Window System, `configure' can usually
Packit 679830
find the X include and library files automatically, but if it doesn't,
Packit 679830
you can use the `configure' options `--x-includes=DIR' and
Packit 679830
`--x-libraries=DIR' to specify their locations.
Packit 679830
Packit 679830
Specifying the System Type
Packit 679830
==========================
Packit 679830
Packit 679830
   There may be some features `configure' cannot figure out
Packit 679830
automatically, but needs to determine by the type of machine the package
Packit 679830
will run on.  Usually, assuming the package is built to be run on the
Packit 679830
_same_ architectures, `configure' can figure that out, but if it prints
Packit 679830
a message saying it cannot guess the machine type, give it the
Packit 679830
`--build=TYPE' option.  TYPE can either be a short name for the system
Packit 679830
type, such as `sun4', or a canonical name which has the form:
Packit 679830
Packit 679830
     CPU-COMPANY-SYSTEM
Packit 679830
Packit 679830
where SYSTEM can have one of these forms:
Packit 679830
Packit 679830
     OS KERNEL-OS
Packit 679830
Packit 679830
   See the file `config.sub' for the possible values of each field.  If
Packit 679830
`config.sub' isn't included in this package, then this package doesn't
Packit 679830
need to know the machine type.
Packit 679830
Packit 679830
   If you are _building_ compiler tools for cross-compiling, you should
Packit 679830
use the `--target=TYPE' option to select the type of system they will
Packit 679830
produce code for.
Packit 679830
Packit 679830
   If you want to _use_ a cross compiler, that generates code for a
Packit 679830
platform different from the build platform, you should specify the
Packit 679830
"host" platform (i.e., that on which the generated programs will
Packit 679830
eventually be run) with `--host=TYPE'.
Packit 679830
Packit 679830
Sharing Defaults
Packit 679830
================
Packit 679830
Packit 679830
   If you want to set default values for `configure' scripts to share,
Packit 679830
you can create a site shell script called `config.site' that gives
Packit 679830
default values for variables like `CC', `cache_file', and `prefix'.
Packit 679830
`configure' looks for `PREFIX/share/config.site' if it exists, then
Packit 679830
`PREFIX/etc/config.site' if it exists.  Or, you can set the
Packit 679830
`CONFIG_SITE' environment variable to the location of the site script.
Packit 679830
A warning: not all `configure' scripts look for a site script.
Packit 679830
Packit 679830
Defining Variables
Packit 679830
==================
Packit 679830
Packit 679830
   Variables not defined in a site shell script can be set in the
Packit 679830
environment passed to `configure'.  However, some packages may run
Packit 679830
configure again during the build, and the customized values of these
Packit 679830
variables may be lost.  In order to avoid this problem, you should set
Packit 679830
them in the `configure' command line, using `VAR=value'.  For example:
Packit 679830
Packit 679830
     ./configure CC=/usr/local2/bin/gcc
Packit 679830
Packit 679830
will cause the specified gcc to be used as the C compiler (unless it is
Packit 679830
overridden in the site shell script).
Packit 679830
Packit 679830
`configure' Invocation
Packit 679830
======================
Packit 679830
Packit 679830
   `configure' recognizes the following options to control how it
Packit 679830
operates.
Packit 679830
Packit 679830
`--help'
Packit 679830
`-h'
Packit 679830
     Print a summary of the options to `configure', and exit.
Packit 679830
Packit 679830
`--version'
Packit 679830
`-V'
Packit 679830
     Print the version of Autoconf used to generate the `configure'
Packit 679830
     script, and exit.
Packit 679830
Packit 679830
`--cache-file=FILE'
Packit 679830
     Enable the cache: use and save the results of the tests in FILE,
Packit 679830
     traditionally `config.cache'.  FILE defaults to `/dev/null' to
Packit 679830
     disable caching.
Packit 679830
Packit 679830
`--config-cache'
Packit 679830
`-C'
Packit 679830
     Alias for `--cache-file=config.cache'.
Packit 679830
Packit 679830
`--quiet'
Packit 679830
`--silent'
Packit 679830
`-q'
Packit 679830
     Do not print messages saying which checks are being made.  To
Packit 679830
     suppress all normal output, redirect it to `/dev/null' (any error
Packit 679830
     messages will still be shown).
Packit 679830
Packit 679830
`--srcdir=DIR'
Packit 679830
     Look for the package's source code in directory DIR.  Usually
Packit 679830
     `configure' can determine that directory automatically.
Packit 679830
Packit 679830
`configure' also accepts some other, not widely useful, options.  Run
Packit 679830
`configure --help' for more details.
Packit 679830