INSTALL revision 7e6533d5
17e6533d5SmrgInstallation Instructions
27e6533d5Smrg*************************
37e6533d5Smrg
47e6533d5SmrgCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
57e6533d5Smrg2006, 2007, 2008 Free Software Foundation, Inc.
67e6533d5Smrg
77e6533d5Smrg   This file is free documentation; the Free Software Foundation gives
87e6533d5Smrgunlimited permission to copy, distribute and modify it.
97e6533d5Smrg
107e6533d5SmrgBasic Installation
117e6533d5Smrg==================
127e6533d5Smrg
137e6533d5Smrg   Briefly, the shell commands `./configure; make; make install' should
147e6533d5Smrgconfigure, build, and install this package.  The following
157e6533d5Smrgmore-detailed instructions are generic; see the `README' file for
167e6533d5Smrginstructions specific to this package.
177e6533d5Smrg
187e6533d5Smrg   The `configure' shell script attempts to guess correct values for
197e6533d5Smrgvarious system-dependent variables used during compilation.  It uses
207e6533d5Smrgthose values to create a `Makefile' in each directory of the package.
217e6533d5SmrgIt may also create one or more `.h' files containing system-dependent
227e6533d5Smrgdefinitions.  Finally, it creates a shell script `config.status' that
237e6533d5Smrgyou can run in the future to recreate the current configuration, and a
247e6533d5Smrgfile `config.log' containing compiler output (useful mainly for
257e6533d5Smrgdebugging `configure').
267e6533d5Smrg
277e6533d5Smrg   It can also use an optional file (typically called `config.cache'
287e6533d5Smrgand enabled with `--cache-file=config.cache' or simply `-C') that saves
297e6533d5Smrgthe results of its tests to speed up reconfiguring.  Caching is
307e6533d5Smrgdisabled by default to prevent problems with accidental use of stale
317e6533d5Smrgcache files.
327e6533d5Smrg
337e6533d5Smrg   If you need to do unusual things to compile the package, please try
347e6533d5Smrgto figure out how `configure' could check whether to do them, and mail
357e6533d5Smrgdiffs or instructions to the address given in the `README' so they can
367e6533d5Smrgbe considered for the next release.  If you are using the cache, and at
377e6533d5Smrgsome point `config.cache' contains results you don't want to keep, you
387e6533d5Smrgmay remove or edit it.
397e6533d5Smrg
407e6533d5Smrg   The file `configure.ac' (or `configure.in') is used to create
417e6533d5Smrg`configure' by a program called `autoconf'.  You need `configure.ac' if
427e6533d5Smrgyou want to change it or regenerate `configure' using a newer version
437e6533d5Smrgof `autoconf'.
447e6533d5Smrg
457e6533d5SmrgThe simplest way to compile this package is:
467e6533d5Smrg
477e6533d5Smrg  1. `cd' to the directory containing the package's source code and type
487e6533d5Smrg     `./configure' to configure the package for your system.
497e6533d5Smrg
507e6533d5Smrg     Running `configure' might take a while.  While running, it prints
517e6533d5Smrg     some messages telling which features it is checking for.
527e6533d5Smrg
537e6533d5Smrg  2. Type `make' to compile the package.
547e6533d5Smrg
557e6533d5Smrg  3. Optionally, type `make check' to run any self-tests that come with
567e6533d5Smrg     the package.
577e6533d5Smrg
587e6533d5Smrg  4. Type `make install' to install the programs and any data files and
597e6533d5Smrg     documentation.
607e6533d5Smrg
617e6533d5Smrg  5. You can remove the program binaries and object files from the
627e6533d5Smrg     source code directory by typing `make clean'.  To also remove the
637e6533d5Smrg     files that `configure' created (so you can compile the package for
647e6533d5Smrg     a different kind of computer), type `make distclean'.  There is
657e6533d5Smrg     also a `make maintainer-clean' target, but that is intended mainly
667e6533d5Smrg     for the package's developers.  If you use it, you may have to get
677e6533d5Smrg     all sorts of other programs in order to regenerate files that came
687e6533d5Smrg     with the distribution.
697e6533d5Smrg
707e6533d5Smrg  6. Often, you can also type `make uninstall' to remove the installed
717e6533d5Smrg     files again.
727e6533d5Smrg
737e6533d5SmrgCompilers and Options
747e6533d5Smrg=====================
757e6533d5Smrg
767e6533d5Smrg   Some systems require unusual options for compilation or linking that
777e6533d5Smrgthe `configure' script does not know about.  Run `./configure --help'
787e6533d5Smrgfor details on some of the pertinent environment variables.
797e6533d5Smrg
807e6533d5Smrg   You can give `configure' initial values for configuration parameters
817e6533d5Smrgby setting variables in the command line or in the environment.  Here
827e6533d5Smrgis an example:
837e6533d5Smrg
847e6533d5Smrg     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
857e6533d5Smrg
867e6533d5Smrg   *Note Defining Variables::, for more details.
877e6533d5Smrg
887e6533d5SmrgCompiling For Multiple Architectures
897e6533d5Smrg====================================
907e6533d5Smrg
917e6533d5Smrg   You can compile the package for more than one kind of computer at the
927e6533d5Smrgsame time, by placing the object files for each architecture in their
937e6533d5Smrgown directory.  To do this, you can use GNU `make'.  `cd' to the
947e6533d5Smrgdirectory where you want the object files and executables to go and run
957e6533d5Smrgthe `configure' script.  `configure' automatically checks for the
967e6533d5Smrgsource code in the directory that `configure' is in and in `..'.
977e6533d5Smrg
987e6533d5Smrg   With a non-GNU `make', it is safer to compile the package for one
997e6533d5Smrgarchitecture at a time in the source code directory.  After you have
1007e6533d5Smrginstalled the package for one architecture, use `make distclean' before
1017e6533d5Smrgreconfiguring for another architecture.
1027e6533d5Smrg
1037e6533d5Smrg   On MacOS X 10.5 and later systems, you can create libraries and
1047e6533d5Smrgexecutables that work on multiple system types--known as "fat" or
1057e6533d5Smrg"universal" binaries--by specifying multiple `-arch' options to the
1067e6533d5Smrgcompiler but only a single `-arch' option to the preprocessor.  Like
1077e6533d5Smrgthis:
1087e6533d5Smrg
1097e6533d5Smrg     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
1107e6533d5Smrg                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
1117e6533d5Smrg                 CPP="gcc -E" CXXCPP="g++ -E"
1127e6533d5Smrg
1137e6533d5Smrg   This is not guaranteed to produce working output in all cases, you
1147e6533d5Smrgmay have to build one architecture at a time and combine the results
1157e6533d5Smrgusing the `lipo' tool if you have problems.
1167e6533d5Smrg
1177e6533d5SmrgInstallation Names
1187e6533d5Smrg==================
1197e6533d5Smrg
1207e6533d5Smrg   By default, `make install' installs the package's commands under
1217e6533d5Smrg`/usr/local/bin', include files under `/usr/local/include', etc.  You
1227e6533d5Smrgcan specify an installation prefix other than `/usr/local' by giving
1237e6533d5Smrg`configure' the option `--prefix=PREFIX'.
1247e6533d5Smrg
1257e6533d5Smrg   You can specify separate installation prefixes for
1267e6533d5Smrgarchitecture-specific files and architecture-independent files.  If you
1277e6533d5Smrgpass the option `--exec-prefix=PREFIX' to `configure', the package uses
1287e6533d5SmrgPREFIX as the prefix for installing programs and libraries.
1297e6533d5SmrgDocumentation and other data files still use the regular prefix.
1307e6533d5Smrg
1317e6533d5Smrg   In addition, if you use an unusual directory layout you can give
1327e6533d5Smrgoptions like `--bindir=DIR' to specify different values for particular
1337e6533d5Smrgkinds of files.  Run `configure --help' for a list of the directories
1347e6533d5Smrgyou can set and what kinds of files go in them.
1357e6533d5Smrg
1367e6533d5Smrg   If the package supports it, you can cause programs to be installed
1377e6533d5Smrgwith an extra prefix or suffix on their names by giving `configure' the
1387e6533d5Smrgoption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
1397e6533d5Smrg
1407e6533d5SmrgOptional Features
1417e6533d5Smrg=================
1427e6533d5Smrg
1437e6533d5Smrg   Some packages pay attention to `--enable-FEATURE' options to
1447e6533d5Smrg`configure', where FEATURE indicates an optional part of the package.
1457e6533d5SmrgThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
1467e6533d5Smrgis something like `gnu-as' or `x' (for the X Window System).  The
1477e6533d5Smrg`README' should mention any `--enable-' and `--with-' options that the
1487e6533d5Smrgpackage recognizes.
1497e6533d5Smrg
1507e6533d5Smrg   For packages that use the X Window System, `configure' can usually
1517e6533d5Smrgfind the X include and library files automatically, but if it doesn't,
1527e6533d5Smrgyou can use the `configure' options `--x-includes=DIR' and
1537e6533d5Smrg`--x-libraries=DIR' to specify their locations.
1547e6533d5Smrg
1557e6533d5SmrgParticular systems
1567e6533d5Smrg==================
1577e6533d5Smrg
1587e6533d5Smrg   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
1597e6533d5SmrgCC is not installed, it is recommended to use the following options in
1607e6533d5Smrgorder to use an ANSI C compiler:
1617e6533d5Smrg
1627e6533d5Smrg     ./configure CC="cc -Ae"
1637e6533d5Smrg
1647e6533d5Smrgand if that doesn't work, install pre-built binaries of GCC for HP-UX.
1657e6533d5Smrg
1667e6533d5Smrg   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
1677e6533d5Smrgparse its `<wchar.h>' header file.  The option `-nodtk' can be used as
1687e6533d5Smrga workaround.  If GNU CC is not installed, it is therefore recommended
1697e6533d5Smrgto try
1707e6533d5Smrg
1717e6533d5Smrg     ./configure CC="cc"
1727e6533d5Smrg
1737e6533d5Smrgand if that doesn't work, try
1747e6533d5Smrg
1757e6533d5Smrg     ./configure CC="cc -nodtk"
1767e6533d5Smrg
1777e6533d5SmrgSpecifying the System Type
1787e6533d5Smrg==========================
1797e6533d5Smrg
1807e6533d5Smrg   There may be some features `configure' cannot figure out
1817e6533d5Smrgautomatically, but needs to determine by the type of machine the package
1827e6533d5Smrgwill run on.  Usually, assuming the package is built to be run on the
1837e6533d5Smrg_same_ architectures, `configure' can figure that out, but if it prints
1847e6533d5Smrga message saying it cannot guess the machine type, give it the
1857e6533d5Smrg`--build=TYPE' option.  TYPE can either be a short name for the system
1867e6533d5Smrgtype, such as `sun4', or a canonical name which has the form:
1877e6533d5Smrg
1887e6533d5Smrg     CPU-COMPANY-SYSTEM
1897e6533d5Smrg
1907e6533d5Smrgwhere SYSTEM can have one of these forms:
1917e6533d5Smrg
1927e6533d5Smrg     OS KERNEL-OS
1937e6533d5Smrg
1947e6533d5Smrg   See the file `config.sub' for the possible values of each field.  If
1957e6533d5Smrg`config.sub' isn't included in this package, then this package doesn't
1967e6533d5Smrgneed to know the machine type.
1977e6533d5Smrg
1987e6533d5Smrg   If you are _building_ compiler tools for cross-compiling, you should
1997e6533d5Smrguse the option `--target=TYPE' to select the type of system they will
2007e6533d5Smrgproduce code for.
2017e6533d5Smrg
2027e6533d5Smrg   If you want to _use_ a cross compiler, that generates code for a
2037e6533d5Smrgplatform different from the build platform, you should specify the
2047e6533d5Smrg"host" platform (i.e., that on which the generated programs will
2057e6533d5Smrgeventually be run) with `--host=TYPE'.
2067e6533d5Smrg
2077e6533d5SmrgSharing Defaults
2087e6533d5Smrg================
2097e6533d5Smrg
2107e6533d5Smrg   If you want to set default values for `configure' scripts to share,
2117e6533d5Smrgyou can create a site shell script called `config.site' that gives
2127e6533d5Smrgdefault values for variables like `CC', `cache_file', and `prefix'.
2137e6533d5Smrg`configure' looks for `PREFIX/share/config.site' if it exists, then
2147e6533d5Smrg`PREFIX/etc/config.site' if it exists.  Or, you can set the
2157e6533d5Smrg`CONFIG_SITE' environment variable to the location of the site script.
2167e6533d5SmrgA warning: not all `configure' scripts look for a site script.
2177e6533d5Smrg
2187e6533d5SmrgDefining Variables
2197e6533d5Smrg==================
2207e6533d5Smrg
2217e6533d5Smrg   Variables not defined in a site shell script can be set in the
2227e6533d5Smrgenvironment passed to `configure'.  However, some packages may run
2237e6533d5Smrgconfigure again during the build, and the customized values of these
2247e6533d5Smrgvariables may be lost.  In order to avoid this problem, you should set
2257e6533d5Smrgthem in the `configure' command line, using `VAR=value'.  For example:
2267e6533d5Smrg
2277e6533d5Smrg     ./configure CC=/usr/local2/bin/gcc
2287e6533d5Smrg
2297e6533d5Smrgcauses the specified `gcc' to be used as the C compiler (unless it is
2307e6533d5Smrgoverridden in the site shell script).
2317e6533d5Smrg
2327e6533d5SmrgUnfortunately, this technique does not work for `CONFIG_SHELL' due to
2337e6533d5Smrgan Autoconf bug.  Until the bug is fixed you can use this workaround:
2347e6533d5Smrg
2357e6533d5Smrg     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
2367e6533d5Smrg
2377e6533d5Smrg`configure' Invocation
2387e6533d5Smrg======================
2397e6533d5Smrg
2407e6533d5Smrg   `configure' recognizes the following options to control how it
2417e6533d5Smrgoperates.
2427e6533d5Smrg
2437e6533d5Smrg`--help'
2447e6533d5Smrg`-h'
2457e6533d5Smrg     Print a summary of all of the options to `configure', and exit.
2467e6533d5Smrg
2477e6533d5Smrg`--help=short'
2487e6533d5Smrg`--help=recursive'
2497e6533d5Smrg     Print a summary of the options unique to this package's
2507e6533d5Smrg     `configure', and exit.  The `short' variant lists options used
2517e6533d5Smrg     only in the top level, while the `recursive' variant lists options
2527e6533d5Smrg     also present in any nested packages.
2537e6533d5Smrg
2547e6533d5Smrg`--version'
2557e6533d5Smrg`-V'
2567e6533d5Smrg     Print the version of Autoconf used to generate the `configure'
2577e6533d5Smrg     script, and exit.
2587e6533d5Smrg
2597e6533d5Smrg`--cache-file=FILE'
2607e6533d5Smrg     Enable the cache: use and save the results of the tests in FILE,
2617e6533d5Smrg     traditionally `config.cache'.  FILE defaults to `/dev/null' to
2627e6533d5Smrg     disable caching.
2637e6533d5Smrg
2647e6533d5Smrg`--config-cache'
2657e6533d5Smrg`-C'
2667e6533d5Smrg     Alias for `--cache-file=config.cache'.
2677e6533d5Smrg
2687e6533d5Smrg`--quiet'
2697e6533d5Smrg`--silent'
2707e6533d5Smrg`-q'
2717e6533d5Smrg     Do not print messages saying which checks are being made.  To
2727e6533d5Smrg     suppress all normal output, redirect it to `/dev/null' (any error
2737e6533d5Smrg     messages will still be shown).
2747e6533d5Smrg
2757e6533d5Smrg`--srcdir=DIR'
2767e6533d5Smrg     Look for the package's source code in directory DIR.  Usually
2777e6533d5Smrg     `configure' can determine that directory automatically.
2787e6533d5Smrg
2797e6533d5Smrg`--prefix=DIR'
2807e6533d5Smrg     Use DIR as the installation prefix.  *Note Installation Names::
2817e6533d5Smrg     for more details, including other options available for fine-tuning
2827e6533d5Smrg     the installation locations.
2837e6533d5Smrg
2847e6533d5Smrg`--no-create'
2857e6533d5Smrg`-n'
2867e6533d5Smrg     Run the configure checks, but stop before creating any output
2877e6533d5Smrg     files.
2887e6533d5Smrg
2897e6533d5Smrg`configure' also accepts some other, not widely useful, options.  Run
2907e6533d5Smrg`configure --help' for more details.
2917e6533d5Smrg
292