annotate src/liblo-0.26/INSTALL @ 4:e13257ea84a4

Add bzip2, zlib, liblo, portaudio sources
author Chris Cannam
date Wed, 20 Mar 2013 13:59:52 +0000
parents
children
rev   line source
Chris@4 1 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
Chris@4 2 Foundation, Inc.
Chris@4 3
Chris@4 4 This file is free documentation; the Free Software Foundation gives
Chris@4 5 unlimited permission to copy, distribute and modify it.
Chris@4 6
Chris@4 7 Basic Installation
Chris@4 8 ==================
Chris@4 9
Chris@4 10 These are generic installation instructions.
Chris@4 11
Chris@4 12 The `configure' shell script attempts to guess correct values for
Chris@4 13 various system-dependent variables used during compilation. It uses
Chris@4 14 those values to create a `Makefile' in each directory of the package.
Chris@4 15 It may also create one or more `.h' files containing system-dependent
Chris@4 16 definitions. Finally, it creates a shell script `config.status' that
Chris@4 17 you can run in the future to recreate the current configuration, and a
Chris@4 18 file `config.log' containing compiler output (useful mainly for
Chris@4 19 debugging `configure').
Chris@4 20
Chris@4 21 It can also use an optional file (typically called `config.cache'
Chris@4 22 and enabled with `--cache-file=config.cache' or simply `-C') that saves
Chris@4 23 the results of its tests to speed up reconfiguring. (Caching is
Chris@4 24 disabled by default to prevent problems with accidental use of stale
Chris@4 25 cache files.)
Chris@4 26
Chris@4 27 If you need to do unusual things to compile the package, please try
Chris@4 28 to figure out how `configure' could check whether to do them, and mail
Chris@4 29 diffs or instructions to the address given in the `README' so they can
Chris@4 30 be considered for the next release. If you are using the cache, and at
Chris@4 31 some point `config.cache' contains results you don't want to keep, you
Chris@4 32 may remove or edit it.
Chris@4 33
Chris@4 34 The file `configure.ac' (or `configure.in') is used to create
Chris@4 35 `configure' by a program called `autoconf'. You only need
Chris@4 36 `configure.ac' if you want to change it or regenerate `configure' using
Chris@4 37 a newer version of `autoconf'.
Chris@4 38
Chris@4 39 The simplest way to compile this package is:
Chris@4 40
Chris@4 41 1. `cd' to the directory containing the package's source code and type
Chris@4 42 `./configure' to configure the package for your system. If you're
Chris@4 43 using `csh' on an old version of System V, you might need to type
Chris@4 44 `sh ./configure' instead to prevent `csh' from trying to execute
Chris@4 45 `configure' itself.
Chris@4 46
Chris@4 47 Running `configure' takes awhile. While running, it prints some
Chris@4 48 messages telling which features it is checking for.
Chris@4 49
Chris@4 50 2. Type `make' to compile the package.
Chris@4 51
Chris@4 52 3. Optionally, type `make check' to run any self-tests that come with
Chris@4 53 the package.
Chris@4 54
Chris@4 55 4. Type `make install' to install the programs and any data files and
Chris@4 56 documentation.
Chris@4 57
Chris@4 58 5. You can remove the program binaries and object files from the
Chris@4 59 source code directory by typing `make clean'. To also remove the
Chris@4 60 files that `configure' created (so you can compile the package for
Chris@4 61 a different kind of computer), type `make distclean'. There is
Chris@4 62 also a `make maintainer-clean' target, but that is intended mainly
Chris@4 63 for the package's developers. If you use it, you may have to get
Chris@4 64 all sorts of other programs in order to regenerate files that came
Chris@4 65 with the distribution.
Chris@4 66
Chris@4 67 Compilers and Options
Chris@4 68 =====================
Chris@4 69
Chris@4 70 Some systems require unusual options for compilation or linking that
Chris@4 71 the `configure' script does not know about. Run `./configure --help'
Chris@4 72 for details on some of the pertinent environment variables.
Chris@4 73
Chris@4 74 You can give `configure' initial values for configuration parameters
Chris@4 75 by setting variables in the command line or in the environment. Here
Chris@4 76 is an example:
Chris@4 77
Chris@4 78 ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
Chris@4 79
Chris@4 80 *Note Defining Variables::, for more details.
Chris@4 81
Chris@4 82 Compiling For Multiple Architectures
Chris@4 83 ====================================
Chris@4 84
Chris@4 85 You can compile the package for more than one kind of computer at the
Chris@4 86 same time, by placing the object files for each architecture in their
Chris@4 87 own directory. To do this, you must use a version of `make' that
Chris@4 88 supports the `VPATH' variable, such as GNU `make'. `cd' to the
Chris@4 89 directory where you want the object files and executables to go and run
Chris@4 90 the `configure' script. `configure' automatically checks for the
Chris@4 91 source code in the directory that `configure' is in and in `..'.
Chris@4 92
Chris@4 93 If you have to use a `make' that does not support the `VPATH'
Chris@4 94 variable, you have to compile the package for one architecture at a
Chris@4 95 time in the source code directory. After you have installed the
Chris@4 96 package for one architecture, use `make distclean' before reconfiguring
Chris@4 97 for another architecture.
Chris@4 98
Chris@4 99 Installation Names
Chris@4 100 ==================
Chris@4 101
Chris@4 102 By default, `make install' will install the package's files in
Chris@4 103 `/usr/local/bin', `/usr/local/man', etc. You can specify an
Chris@4 104 installation prefix other than `/usr/local' by giving `configure' the
Chris@4 105 option `--prefix=PATH'.
Chris@4 106
Chris@4 107 You can specify separate installation prefixes for
Chris@4 108 architecture-specific files and architecture-independent files. If you
Chris@4 109 give `configure' the option `--exec-prefix=PATH', the package will use
Chris@4 110 PATH as the prefix for installing programs and libraries.
Chris@4 111 Documentation and other data files will still use the regular prefix.
Chris@4 112
Chris@4 113 In addition, if you use an unusual directory layout you can give
Chris@4 114 options like `--bindir=PATH' to specify different values for particular
Chris@4 115 kinds of files. Run `configure --help' for a list of the directories
Chris@4 116 you can set and what kinds of files go in them.
Chris@4 117
Chris@4 118 If the package supports it, you can cause programs to be installed
Chris@4 119 with an extra prefix or suffix on their names by giving `configure' the
Chris@4 120 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Chris@4 121
Chris@4 122 Optional Features
Chris@4 123 =================
Chris@4 124
Chris@4 125 Some packages pay attention to `--enable-FEATURE' options to
Chris@4 126 `configure', where FEATURE indicates an optional part of the package.
Chris@4 127 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
Chris@4 128 is something like `gnu-as' or `x' (for the X Window System). The
Chris@4 129 `README' should mention any `--enable-' and `--with-' options that the
Chris@4 130 package recognizes.
Chris@4 131
Chris@4 132 For packages that use the X Window System, `configure' can usually
Chris@4 133 find the X include and library files automatically, but if it doesn't,
Chris@4 134 you can use the `configure' options `--x-includes=DIR' and
Chris@4 135 `--x-libraries=DIR' to specify their locations.
Chris@4 136
Chris@4 137 Specifying the System Type
Chris@4 138 ==========================
Chris@4 139
Chris@4 140 There may be some features `configure' cannot figure out
Chris@4 141 automatically, but needs to determine by the type of machine the package
Chris@4 142 will run on. Usually, assuming the package is built to be run on the
Chris@4 143 _same_ architectures, `configure' can figure that out, but if it prints
Chris@4 144 a message saying it cannot guess the machine type, give it the
Chris@4 145 `--build=TYPE' option. TYPE can either be a short name for the system
Chris@4 146 type, such as `sun4', or a canonical name which has the form:
Chris@4 147
Chris@4 148 CPU-COMPANY-SYSTEM
Chris@4 149
Chris@4 150 where SYSTEM can have one of these forms:
Chris@4 151
Chris@4 152 OS KERNEL-OS
Chris@4 153
Chris@4 154 See the file `config.sub' for the possible values of each field. If
Chris@4 155 `config.sub' isn't included in this package, then this package doesn't
Chris@4 156 need to know the machine type.
Chris@4 157
Chris@4 158 If you are _building_ compiler tools for cross-compiling, you should
Chris@4 159 use the `--target=TYPE' option to select the type of system they will
Chris@4 160 produce code for.
Chris@4 161
Chris@4 162 If you want to _use_ a cross compiler, that generates code for a
Chris@4 163 platform different from the build platform, you should specify the
Chris@4 164 "host" platform (i.e., that on which the generated programs will
Chris@4 165 eventually be run) with `--host=TYPE'.
Chris@4 166
Chris@4 167 Sharing Defaults
Chris@4 168 ================
Chris@4 169
Chris@4 170 If you want to set default values for `configure' scripts to share,
Chris@4 171 you can create a site shell script called `config.site' that gives
Chris@4 172 default values for variables like `CC', `cache_file', and `prefix'.
Chris@4 173 `configure' looks for `PREFIX/share/config.site' if it exists, then
Chris@4 174 `PREFIX/etc/config.site' if it exists. Or, you can set the
Chris@4 175 `CONFIG_SITE' environment variable to the location of the site script.
Chris@4 176 A warning: not all `configure' scripts look for a site script.
Chris@4 177
Chris@4 178 Defining Variables
Chris@4 179 ==================
Chris@4 180
Chris@4 181 Variables not defined in a site shell script can be set in the
Chris@4 182 environment passed to `configure'. However, some packages may run
Chris@4 183 configure again during the build, and the customized values of these
Chris@4 184 variables may be lost. In order to avoid this problem, you should set
Chris@4 185 them in the `configure' command line, using `VAR=value'. For example:
Chris@4 186
Chris@4 187 ./configure CC=/usr/local2/bin/gcc
Chris@4 188
Chris@4 189 will cause the specified gcc to be used as the C compiler (unless it is
Chris@4 190 overridden in the site shell script).
Chris@4 191
Chris@4 192 `configure' Invocation
Chris@4 193 ======================
Chris@4 194
Chris@4 195 `configure' recognizes the following options to control how it
Chris@4 196 operates.
Chris@4 197
Chris@4 198 `--help'
Chris@4 199 `-h'
Chris@4 200 Print a summary of the options to `configure', and exit.
Chris@4 201
Chris@4 202 `--version'
Chris@4 203 `-V'
Chris@4 204 Print the version of Autoconf used to generate the `configure'
Chris@4 205 script, and exit.
Chris@4 206
Chris@4 207 `--cache-file=FILE'
Chris@4 208 Enable the cache: use and save the results of the tests in FILE,
Chris@4 209 traditionally `config.cache'. FILE defaults to `/dev/null' to
Chris@4 210 disable caching.
Chris@4 211
Chris@4 212 `--config-cache'
Chris@4 213 `-C'
Chris@4 214 Alias for `--cache-file=config.cache'.
Chris@4 215
Chris@4 216 `--quiet'
Chris@4 217 `--silent'
Chris@4 218 `-q'
Chris@4 219 Do not print messages saying which checks are being made. To
Chris@4 220 suppress all normal output, redirect it to `/dev/null' (any error
Chris@4 221 messages will still be shown).
Chris@4 222
Chris@4 223 `--srcdir=DIR'
Chris@4 224 Look for the package's source code in directory DIR. Usually
Chris@4 225 `configure' can determine that directory automatically.
Chris@4 226
Chris@4 227 `configure' also accepts some other, not widely useful, options. Run
Chris@4 228 `configure --help' for more details.
Chris@4 229