INSTALL revision 6747b715
16747b715SmrgInstallation Instructions
26747b715Smrg*************************
36747b715Smrg
46747b715SmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
56747b715Smrg2006, 2007, 2008 Free Software Foundation, Inc.
66747b715Smrg
76747b715Smrg   This file is free documentation; the Free Software Foundation gives
86747b715Smrgunlimited permission to copy, distribute and modify it.
96747b715Smrg
106747b715SmrgBasic Installation
116747b715Smrg==================
126747b715Smrg
136747b715Smrg   Briefly, the shell commands `./configure; make; make install' should
146747b715Smrgconfigure, build, and install this package.  The following
156747b715Smrgmore-detailed instructions are generic; see the `README' file for
166747b715Smrginstructions specific to this package.
176747b715Smrg
186747b715Smrg   The `configure' shell script attempts to guess correct values for
196747b715Smrgvarious system-dependent variables used during compilation.  It uses
206747b715Smrgthose values to create a `Makefile' in each directory of the package.
216747b715SmrgIt may also create one or more `.h' files containing system-dependent
226747b715Smrgdefinitions.  Finally, it creates a shell script `config.status' that
236747b715Smrgyou can run in the future to recreate the current configuration, and a
246747b715Smrgfile `config.log' containing compiler output (useful mainly for
256747b715Smrgdebugging `configure').
266747b715Smrg
276747b715Smrg   It can also use an optional file (typically called `config.cache'
286747b715Smrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
296747b715Smrgthe results of its tests to speed up reconfiguring.  Caching is
306747b715Smrgdisabled by default to prevent problems with accidental use of stale
316747b715Smrgcache files.
326747b715Smrg
336747b715Smrg   If you need to do unusual things to compile the package, please try
346747b715Smrgto figure out how `configure' could check whether to do them, and mail
356747b715Smrgdiffs or instructions to the address given in the `README' so they can
366747b715Smrgbe considered for the next release.  If you are using the cache, and at
376747b715Smrgsome point `config.cache' contains results you don't want to keep, you
386747b715Smrgmay remove or edit it.
396747b715Smrg
406747b715Smrg   The file `configure.ac' (or `configure.in') is used to create
416747b715Smrg`configure' by a program called `autoconf'.  You need `configure.ac' if
426747b715Smrgyou want to change it or regenerate `configure' using a newer version
436747b715Smrgof `autoconf'.
446747b715Smrg
456747b715SmrgThe simplest way to compile this package is:
466747b715Smrg
476747b715Smrg  1. `cd' to the directory containing the package's source code and type
486747b715Smrg     `./configure' to configure the package for your system.
496747b715Smrg
506747b715Smrg     Running `configure' might take a while.  While running, it prints
516747b715Smrg     some messages telling which features it is checking for.
526747b715Smrg
536747b715Smrg  2. Type `make' to compile the package.
546747b715Smrg
556747b715Smrg  3. Optionally, type `make check' to run any self-tests that come with
566747b715Smrg     the package.
576747b715Smrg
586747b715Smrg  4. Type `make install' to install the programs and any data files and
596747b715Smrg     documentation.
606747b715Smrg
616747b715Smrg  5. You can remove the program binaries and object files from the
626747b715Smrg     source code directory by typing `make clean'.  To also remove the
636747b715Smrg     files that `configure' created (so you can compile the package for
646747b715Smrg     a different kind of computer), type `make distclean'.  There is
656747b715Smrg     also a `make maintainer-clean' target, but that is intended mainly
666747b715Smrg     for the package's developers.  If you use it, you may have to get
676747b715Smrg     all sorts of other programs in order to regenerate files that came
686747b715Smrg     with the distribution.
696747b715Smrg
706747b715Smrg  6. Often, you can also type `make uninstall' to remove the installed
716747b715Smrg     files again.
726747b715Smrg
736747b715SmrgCompilers and Options
746747b715Smrg=====================
756747b715Smrg
766747b715Smrg   Some systems require unusual options for compilation or linking that
776747b715Smrgthe `configure' script does not know about.  Run `./configure --help'
786747b715Smrgfor details on some of the pertinent environment variables.
796747b715Smrg
806747b715Smrg   You can give `configure' initial values for configuration parameters
816747b715Smrgby setting variables in the command line or in the environment.  Here
826747b715Smrgis an example:
836747b715Smrg
846747b715Smrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
856747b715Smrg
866747b715Smrg   *Note Defining Variables::, for more details.
876747b715Smrg
886747b715SmrgCompiling For Multiple Architectures
896747b715Smrg====================================
906747b715Smrg
916747b715Smrg   You can compile the package for more than one kind of computer at the
926747b715Smrgsame time, by placing the object files for each architecture in their
936747b715Smrgown directory.  To do this, you can use GNU `make'.  `cd' to the
946747b715Smrgdirectory where you want the object files and executables to go and run
956747b715Smrgthe `configure' script.  `configure' automatically checks for the
966747b715Smrgsource code in the directory that `configure' is in and in `..'.
976747b715Smrg
986747b715Smrg   With a non-GNU `make', it is safer to compile the package for one
996747b715Smrgarchitecture at a time in the source code directory.  After you have
1006747b715Smrginstalled the package for one architecture, use `make distclean' before
1016747b715Smrgreconfiguring for another architecture.
1026747b715Smrg
1036747b715Smrg   On MacOS X 10.5 and later systems, you can create libraries and
1046747b715Smrgexecutables that work on multiple system types--known as "fat" or
1056747b715Smrg"universal" binaries--by specifying multiple `-arch' options to the
1066747b715Smrgcompiler but only a single `-arch' option to the preprocessor.  Like
1076747b715Smrgthis:
1086747b715Smrg
1096747b715Smrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
1106747b715Smrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
1116747b715Smrg                 CPP="gcc -E" CXXCPP="g++ -E"
1126747b715Smrg
1136747b715Smrg   This is not guaranteed to produce working output in all cases, you
1146747b715Smrgmay have to build one architecture at a time and combine the results
1156747b715Smrgusing the `lipo' tool if you have problems.
1166747b715Smrg
1176747b715SmrgInstallation Names
1186747b715Smrg==================
1196747b715Smrg
1206747b715Smrg   By default, `make install' installs the package's commands under
1216747b715Smrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
1226747b715Smrgcan specify an installation prefix other than `/usr/local' by giving
1236747b715Smrg`configure' the option `--prefix=PREFIX'.
1246747b715Smrg
1256747b715Smrg   You can specify separate installation prefixes for
1266747b715Smrgarchitecture-specific files and architecture-independent files.  If you
1276747b715Smrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
1286747b715SmrgPREFIX as the prefix for installing programs and libraries.
1296747b715SmrgDocumentation and other data files still use the regular prefix.
1306747b715Smrg
1316747b715Smrg   In addition, if you use an unusual directory layout you can give
1326747b715Smrgoptions like `--bindir=DIR' to specify different values for particular
1336747b715Smrgkinds of files.  Run `configure --help' for a list of the directories
1346747b715Smrgyou can set and what kinds of files go in them.
1356747b715Smrg
1366747b715Smrg   If the package supports it, you can cause programs to be installed
1376747b715Smrgwith an extra prefix or suffix on their names by giving `configure' the
1386747b715Smrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
1396747b715Smrg
1406747b715SmrgOptional Features
1416747b715Smrg=================
1426747b715Smrg
1436747b715Smrg   Some packages pay attention to `--enable-FEATURE' options to
1446747b715Smrg`configure', where FEATURE indicates an optional part of the package.
1456747b715SmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
1466747b715Smrgis something like `gnu-as' or `x' (for the X Window System).  The
1476747b715Smrg`README' should mention any `--enable-' and `--with-' options that the
1486747b715Smrgpackage recognizes.
1496747b715Smrg
1506747b715Smrg   For packages that use the X Window System, `configure' can usually
1516747b715Smrgfind the X include and library files automatically, but if it doesn't,
1526747b715Smrgyou can use the `configure' options `--x-includes=DIR' and
1536747b715Smrg`--x-libraries=DIR' to specify their locations.
1546747b715Smrg
1556747b715SmrgParticular systems
1566747b715Smrg==================
1576747b715Smrg
1586747b715Smrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
1596747b715SmrgCC is not installed, it is recommended to use the following options in
1606747b715Smrgorder to use an ANSI C compiler:
1616747b715Smrg
1626747b715Smrg     ./configure CC="cc -Ae"
1636747b715Smrg
1646747b715Smrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
1656747b715Smrg
1666747b715Smrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
1676747b715Smrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
1686747b715Smrga workaround.  If GNU CC is not installed, it is therefore recommended
1696747b715Smrgto try
1706747b715Smrg
1716747b715Smrg     ./configure CC="cc"
1726747b715Smrg
1736747b715Smrgand if that doesn't work, try
1746747b715Smrg
1756747b715Smrg     ./configure CC="cc -nodtk"
1766747b715Smrg
1776747b715SmrgSpecifying the System Type
1786747b715Smrg==========================
1796747b715Smrg
1806747b715Smrg   There may be some features `configure' cannot figure out
1816747b715Smrgautomatically, but needs to determine by the type of machine the package
1826747b715Smrgwill run on.  Usually, assuming the package is built to be run on the
1836747b715Smrg_same_ architectures, `configure' can figure that out, but if it prints
1846747b715Smrga message saying it cannot guess the machine type, give it the
1856747b715Smrg`--build=TYPE' option.  TYPE can either be a short name for the system
1866747b715Smrgtype, such as `sun4', or a canonical name which has the form:
1876747b715Smrg
1886747b715Smrg     CPU-COMPANY-SYSTEM
1896747b715Smrg
1906747b715Smrgwhere SYSTEM can have one of these forms:
1916747b715Smrg
1926747b715Smrg     OS KERNEL-OS
1936747b715Smrg
1946747b715Smrg   See the file `config.sub' for the possible values of each field.  If
1956747b715Smrg`config.sub' isn't included in this package, then this package doesn't
1966747b715Smrgneed to know the machine type.
1976747b715Smrg
1986747b715Smrg   If you are _building_ compiler tools for cross-compiling, you should
1996747b715Smrguse the option `--target=TYPE' to select the type of system they will
2006747b715Smrgproduce code for.
2016747b715Smrg
2026747b715Smrg   If you want to _use_ a cross compiler, that generates code for a
2036747b715Smrgplatform different from the build platform, you should specify the
2046747b715Smrg"host" platform (i.e., that on which the generated programs will
2056747b715Smrgeventually be run) with `--host=TYPE'.
2066747b715Smrg
2076747b715SmrgSharing Defaults
2086747b715Smrg================
2096747b715Smrg
2106747b715Smrg   If you want to set default values for `configure' scripts to share,
2116747b715Smrgyou can create a site shell script called `config.site' that gives
2126747b715Smrgdefault values for variables like `CC', `cache_file', and `prefix'.
2136747b715Smrg`configure' looks for `PREFIX/share/config.site' if it exists, then
2146747b715Smrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
2156747b715Smrg`CONFIG_SITE' environment variable to the location of the site script.
2166747b715SmrgA warning: not all `configure' scripts look for a site script.
2176747b715Smrg
2186747b715SmrgDefining Variables
2196747b715Smrg==================
2206747b715Smrg
2216747b715Smrg   Variables not defined in a site shell script can be set in the
2226747b715Smrgenvironment passed to `configure'.  However, some packages may run
2236747b715Smrgconfigure again during the build, and the customized values of these
2246747b715Smrgvariables may be lost.  In order to avoid this problem, you should set
2256747b715Smrgthem in the `configure' command line, using `VAR=value'.  For example:
2266747b715Smrg
2276747b715Smrg     ./configure CC=/usr/local2/bin/gcc
2286747b715Smrg
2296747b715Smrgcauses the specified `gcc' to be used as the C compiler (unless it is
2306747b715Smrgoverridden in the site shell script).
2316747b715Smrg
2326747b715SmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
2336747b715Smrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
2346747b715Smrg
2356747b715Smrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
2366747b715Smrg
2376747b715Smrg`configure' Invocation
2386747b715Smrg======================
2396747b715Smrg
2406747b715Smrg   `configure' recognizes the following options to control how it
2416747b715Smrgoperates.
2426747b715Smrg
2436747b715Smrg`--help'
2446747b715Smrg`-h'
2456747b715Smrg     Print a summary of all of the options to `configure', and exit.
2466747b715Smrg
2476747b715Smrg`--help=short'
2486747b715Smrg`--help=recursive'
2496747b715Smrg     Print a summary of the options unique to this package's
2506747b715Smrg     `configure', and exit.  The `short' variant lists options used
2516747b715Smrg     only in the top level, while the `recursive' variant lists options
2526747b715Smrg     also present in any nested packages.
2536747b715Smrg
2546747b715Smrg`--version'
2556747b715Smrg`-V'
2566747b715Smrg     Print the version of Autoconf used to generate the `configure'
2576747b715Smrg     script, and exit.
2586747b715Smrg
2596747b715Smrg`--cache-file=FILE'
2606747b715Smrg     Enable the cache: use and save the results of the tests in FILE,
2616747b715Smrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
2626747b715Smrg     disable caching.
2636747b715Smrg
2646747b715Smrg`--config-cache'
2656747b715Smrg`-C'
2666747b715Smrg     Alias for `--cache-file=config.cache'.
2676747b715Smrg
2686747b715Smrg`--quiet'
2696747b715Smrg`--silent'
2706747b715Smrg`-q'
2716747b715Smrg     Do not print messages saying which checks are being made.  To
2726747b715Smrg     suppress all normal output, redirect it to `/dev/null' (any error
2736747b715Smrg     messages will still be shown).
2746747b715Smrg
2756747b715Smrg`--srcdir=DIR'
2766747b715Smrg     Look for the package's source code in directory DIR.  Usually
2776747b715Smrg     `configure' can determine that directory automatically.
2786747b715Smrg
2796747b715Smrg`--prefix=DIR'
2806747b715Smrg     Use DIR as the installation prefix.  *Note Installation Names::
2816747b715Smrg     for more details, including other options available for fine-tuning
2826747b715Smrg     the installation locations.
2836747b715Smrg
2846747b715Smrg`--no-create'
2856747b715Smrg`-n'
2866747b715Smrg     Run the configure checks, but stop before creating any output
2876747b715Smrg     files.
2886747b715Smrg
2896747b715Smrg`configure' also accepts some other, not widely useful, options.  Run
2906747b715Smrg`configure --help' for more details.
2916747b715Smrg
292