annotate INSTALL @ 7948:af10baa63915 ss-3-1-50

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