Blame INSTALL

Packit Service 0210bb
Basic Installation
Packit Service 0210bb
==================
Packit Service 0210bb
Packit Service 0210bb
   These are generic installation instructions.
Packit Service 0210bb
Packit Service 0210bb
   The `configure' shell script attempts to guess correct values for
Packit Service 0210bb
various system-dependent variables used during compilation.  It uses
Packit Service 0210bb
those values to create a `Makefile' in each directory of the package.
Packit Service 0210bb
It may also create one or more `.h' files containing system-dependent
Packit Service 0210bb
definitions.  Finally, it creates a shell script `config.status' that
Packit Service 0210bb
you can run in the future to recreate the current configuration, a file
Packit Service 0210bb
`config.cache' that saves the results of its tests to speed up
Packit Service 0210bb
reconfiguring, and a file `config.log' containing compiler output
Packit Service 0210bb
(useful mainly for debugging `configure').
Packit Service 0210bb
Packit Service 0210bb
   If you need to do unusual things to compile the package, please try
Packit Service 0210bb
to figure out how `configure' could check whether to do them, and mail
Packit Service 0210bb
diffs or instructions to the address given in the `README' so they can
Packit Service 0210bb
be considered for the next release.  If at some point `config.cache'
Packit Service 0210bb
contains results you don't want to keep, you may remove or edit it.
Packit Service 0210bb
Packit Service 0210bb
   The file `configure.ac' is used to create `configure' by a program
Packit Service 0210bb
called `autoconf'.  You only need `configure.ac' if you want to change
Packit Service 0210bb
it or regenerate `configure' using a newer version of `autoconf'.
Packit Service 0210bb
Packit Service 0210bb
The simplest way to compile this package is:
Packit Service 0210bb
Packit Service 0210bb
  1. `cd' to the directory containing the package's source code and
Packit Service 0210bb
     type `sh ./bootstrap.sh', then type `./configure' to configure the
Packit Service 0210bb
     package for your system.
Packit Service 0210bb
Packit Service 0210bb
     Running `configure' takes awhile.  While running, it prints some
Packit Service 0210bb
     messages telling which features it is checking for.
Packit Service 0210bb
Packit Service 0210bb
  2. Type `make' to compile the package.
Packit Service 0210bb
Packit Service 0210bb
  3. Optionally, type `make check' to run any self-tests that come with
Packit Service 0210bb
     the package.
Packit Service 0210bb
Packit Service 0210bb
  4. Type `make install' to install the programs and any data files and
Packit Service 0210bb
     documentation.
Packit Service 0210bb
Packit Service 0210bb
  5. You can remove the program binaries and object files from the
Packit Service 0210bb
     source code directory by typing `make clean'.  To also remove the
Packit Service 0210bb
     files that `configure' created (so you can compile the package for
Packit Service 0210bb
     a different kind of computer), type `make distclean'.  There is
Packit Service 0210bb
     also a `make maintainer-clean' target, but that is intended mainly
Packit Service 0210bb
     for the package's developers.  If you use it, you may have to get
Packit Service 0210bb
     all sorts of other programs in order to regenerate files that came
Packit Service 0210bb
     with the distribution.
Packit Service 0210bb
Packit Service 0210bb
Compilers and Options
Packit Service 0210bb
=====================
Packit Service 0210bb
Packit Service 0210bb
   Some systems require unusual options for compilation or linking that
Packit Service 0210bb
the `configure' script does not know about.  You can give `configure'
Packit Service 0210bb
initial values for variables by setting them in the environment.  Using
Packit Service 0210bb
a Bourne-compatible shell, you can do that on the command line like
Packit Service 0210bb
this:
Packit Service 0210bb
     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Packit Service 0210bb
Packit Service 0210bb
Or on systems that have the `env' program, you can do it like this:
Packit Service 0210bb
     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
Packit Service 0210bb
Packit Service 0210bb
Compiling For Multiple Architectures
Packit Service 0210bb
====================================
Packit Service 0210bb
Packit Service 0210bb
   You can compile the package for more than one kind of computer at the
Packit Service 0210bb
same time, by placing the object files for each architecture in their
Packit Service 0210bb
own directory.  To do this, you must use a version of `make' that
Packit Service 0210bb
supports the `VPATH' variable, such as GNU `make'.  `cd' to the
Packit Service 0210bb
directory where you want the object files and executables to go and run
Packit Service 0210bb
the `configure' script.  `configure' automatically checks for the
Packit Service 0210bb
source code in the directory that `configure' is in and in `..'.
Packit Service 0210bb
Packit Service 0210bb
   If you have to use a `make' that does not supports the `VPATH'
Packit Service 0210bb
variable, you have to compile the package for one architecture at a time
Packit Service 0210bb
in the source code directory.  After you have installed the package for
Packit Service 0210bb
one architecture, use `make distclean' before reconfiguring for another
Packit Service 0210bb
architecture.
Packit Service 0210bb
Packit Service 0210bb
Installation Names
Packit Service 0210bb
==================
Packit Service 0210bb
Packit Service 0210bb
   By default, `make install' will install the pkcs11 API in the directory
Packit Service 0210bb
`/usr/lib/pkcs11/', any STDLLs that were built in `/usr/lib/pkcs11/stdll',
Packit Service 0210bb
the config programs in `/usr/lib/pkcs11/methods', and the slot daemon in
Packit Service 0210bb
`/usr/sbin/'. You can specify an installation prefix other than `/usr/local'
Packit Service 0210bb
bygiving `configure' the option `--prefix=PATH'.
Packit Service 0210bb
Packit Service 0210bb
Optional Features
Packit Service 0210bb
=================
Packit Service 0210bb
Packit Service 0210bb
   For packages that use the X Window System, `configure' can usually
Packit Service 0210bb
find the X include and library files automatically, but if it doesn't,
Packit Service 0210bb
you can use the `configure' options `--x-includes=DIR' and
Packit Service 0210bb
`--x-libraries=DIR' to specify their locations.
Packit Service 0210bb
Packit Service 0210bb
Specifying the System Type
Packit Service 0210bb
==========================
Packit Service 0210bb
Packit Service 0210bb
   There may be some features `configure' can not figure out
Packit Service 0210bb
automatically, but needs to determine by the type of host the package
Packit Service 0210bb
will run on.  Usually `configure' can figure that out, but if it prints
Packit Service 0210bb
a message saying it can not guess the host type, give it the
Packit Service 0210bb
`--host=TYPE' option.  TYPE can either be a short name for the system
Packit Service 0210bb
type, such as `sun4', or a canonical name with three fields:
Packit Service 0210bb
     CPU-COMPANY-SYSTEM
Packit Service 0210bb
Packit Service 0210bb
See the file `config.sub' for the possible values of each field.  If
Packit Service 0210bb
`config.sub' isn't included in this package, then this package doesn't
Packit Service 0210bb
need to know the host type.
Packit Service 0210bb
Packit Service 0210bb
   If you are building compiler tools for cross-compiling, you can also
Packit Service 0210bb
use the `--target=TYPE' option to select the type of system they will
Packit Service 0210bb
produce code for and the `--build=TYPE' option to select the type of
Packit Service 0210bb
system on which you are compiling the package.
Packit Service 0210bb
Packit Service 0210bb
Sharing Defaults
Packit Service 0210bb
================
Packit Service 0210bb
Packit Service 0210bb
   If you want to set default values for `configure' scripts to share,
Packit Service 0210bb
you can create a site shell script called `config.site' that gives
Packit Service 0210bb
default values for variables like `CC', `cache_file', and `prefix'.
Packit Service 0210bb
`configure' looks for `PREFIX/share/config.site' if it exists, then
Packit Service 0210bb
`PREFIX/etc/config.site' if it exists.  Or, you can set the
Packit Service 0210bb
`CONFIG_SITE' environment variable to the location of the site script.
Packit Service 0210bb
A warning: not all `configure' scripts look for a site script.
Packit Service 0210bb
Packit Service 0210bb
Operation Controls
Packit Service 0210bb
==================
Packit Service 0210bb
Packit Service 0210bb
   `configure' recognizes the following options to control how it
Packit Service 0210bb
operates.
Packit Service 0210bb
Packit Service 0210bb
`--cache-file=FILE'
Packit Service 0210bb
     Use and save the results of the tests in FILE instead of
Packit Service 0210bb
     `./config.cache'.  Set FILE to `/dev/null' to disable caching, for
Packit Service 0210bb
     debugging `configure'.
Packit Service 0210bb
Packit Service 0210bb
`--help'
Packit Service 0210bb
     Print a summary of the options to `configure', and exit.
Packit Service 0210bb
Packit Service 0210bb
`--quiet'
Packit Service 0210bb
`--silent'
Packit Service 0210bb
`-q'
Packit Service 0210bb
     Do not print messages saying which checks are being made.  To
Packit Service 0210bb
     suppress all normal output, redirect it to `/dev/null' (any error
Packit Service 0210bb
     messages will still be shown).
Packit Service 0210bb
Packit Service 0210bb
`--srcdir=DIR'
Packit Service 0210bb
     Look for the package's source code in directory DIR.  Usually
Packit Service 0210bb
     `configure' can determine that directory automatically.
Packit Service 0210bb
Packit Service 0210bb
`--version'
Packit Service 0210bb
     Print the version of Autoconf used to generate the `configure'
Packit Service 0210bb
     script, and exit.
Packit Service 0210bb
Packit Service 0210bb
`configure' also accepts some other, not widely useful, options.