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