annotate src/INSTALL @ 2664:033e7b49356c v7.3.083

updated for version 7.3.083 Problem: When a read() or write() is interrupted by a signal it fails. Solution: Add read_eintr() and write_eintr().
author Bram Moolenaar <bram@vim.org>
date Fri, 17 Dec 2010 16:27:16 +0100
parents 0b3be97064e5
children 107b03fdf1ad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 INSTALL - Installation of Vim on different machines.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 This file contains instructions for compiling Vim. If you already have an
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 executable version of Vim, you don't need this.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 Contents:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 1. Generic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 2. Unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 3. RISC OS
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
10 4. OS/2 (with EMX 0.9b)
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
11 5. Atari MiNT
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
13 See INSTALLami.txt for Amiga
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
14 See INSTALLmac.txt for Macintosh
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
15 See INSTALLpc.txt for PC (MS-DOS, Windows 95/98/NT/XP)
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
16 See INSTALLvms.txt for VMS
1622
149d8b46404c updated for version 7.2a
vimboss
parents: 1268
diff changeset
17 See INSTALLx.txt for cross-compiling on Unix
2247
c40cd9aad546 Add patch to improve support of z/OS (OS/390). (Ralf Schandl)
Bram Moolenaar <bram@vim.org>
parents: 1668
diff changeset
18 See ../README_390.txt for OS/390 Unix
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
19 See ../runtime/doc/os_beos.txt for BeBox
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 1. Generic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 ==========
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 If you compile Vim without specifying anything, you will get the default
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 behaviour as is documented, which should be fine for most people.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 For features that you can't enable/disable in another way, you can edit the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 file "feature.h" to match your preferences.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 2. Unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 =======
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 Summary:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 1. make run configure, compile and link
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 2. make install installation in /usr/local
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 This will include the GUI and X11 libraries, if you have them. If you want a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 version of Vim that is small and starts up quickly, see the Makefile for how
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
41 to disable the GUI and X11. If you don't have GUI libraries and/or X11, these
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 features will be disabled automatically.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 See the start of Makefile for more detailed instructions about how to compile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 If you need extra compiler and/or linker arguments, set $CFLAGS and/or $LIBS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 before starting configure. Example:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 env CFLAGS=-I/usr/local/include LIBS=-lm make
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 This is only needed for things that configure doesn't offer a specific argument
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 for or figures out by itself. First try running configure without extra
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 arguments.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 GNU Autoconf and a few other tools have been used to make Vim work on many
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 different Unix systems. The advantage of this is that Vim should compile
2278
0b3be97064e5 Various small fixes from Dominique Pelle.
Bram Moolenaar <bram@vim.org>
parents: 2247
diff changeset
58 on most systems without any adjustments. The disadvantage is that when
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 adjustments are required, it takes some time to understand what is happening.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 If configure finds all library files and then complains when linking that some
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 of them can't be found, your linker doesn't return an error code for missing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 libraries. Vim should be linked fine anyway, mostly you can just ignore these
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 errors.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 If you run configure by hand (not using the Makefile), remember that any
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 changes in the Makefile have no influence on configure. This may be what you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 want, but maybe not!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 The advantage of running configure separately, is that you can write a script
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 to build Vim, without changing the Makefile or feature.h. Example (using sh):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 CFLAGS=-DCOMPILER_FLAG ./configure --enable-gui=motif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 One thing to watch out for: If the configure script itself changes, running
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 "make" will execute it again, but without your arguments. Do "make clean" and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 run configure again.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 If you are compiling Vim for several machines, for each machine:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 a. make shadow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 b. mv shadow machine_name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 c. cd machine_name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 d. make; make install
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 [Don't use a path for machine_name, just a directory name, otherwise the links
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 that "make shadow" creates won't work.]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 Unix: COMPILING WITH/WITHOUT GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
91 NOTE: This is incomplete, look in Makefile for more info.
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
92
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 These configure arguments can be used to select which GUI to use:
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
94 --enable-gui=gtk or: gtk2, motif, athena or auto
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 --disable-gtk-check
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 --disable-motif-check
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 --disable-athena-check
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 --enable-gui defaults to "auto", so it will automatically look for a GUI (in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 the order of GTK, Motif, then Athena). If one is found, then is uses it and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 does not proceed to check any of the remaining ones. Otherwise, it moves on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 to the next one.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
104 --enable-{gtk,gtk2,kde,motif,athena}-check all default to "yes", such that if
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 --enable-gui is "auto" (which it is by default), GTK, Motif, and Athena will
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 be checked for. If you want to *exclude* a certain check, then you use
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
107 --disable-{gtk,gtk2,kde,motif,athena}-check.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 For example, if --enable-gui is set to "auto", but you don't want it look for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 Motif, you then also specify --disable-motif-check. This results in only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 checking for GTK and Athena.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 Lastly, if you know which one you want to use, then you can just do
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
114 --enable-gui={gtk,gtk2,kde,motif,athena}. So if you wanted to only use Motif,
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
115 then you'd specify --enable-gui=motif. Once you specify what you want, the
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
116 --enable-{gtk,gtk2,kde,motif,athena}-check options are ignored.
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
117
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
118 On Linux you usually need GUI "-devel" packages. You may already have GTK
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
119 libraries installed, but that doesn't mean you can compile Vim with GTK, you
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
120 also need the header files.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 For compiling with the GTK+ GUI, you need a recent version of glib and gtk+.
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
123 Configure checks for at least version 1.1.16. An older version is not selected
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
124 automatically. If you want to use it anyway, run configure with
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
125 "--disable-gtktest".
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 GTK requires an ANSI C compiler. If you fail to compile Vim with GTK+ (it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 is the preferred choice), try selecting another one in the Makefile.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 If you are sure you have GTK installed, but for some reason configure says you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 do not, you may have left-over header files and/or library files from an older
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 (and incompatible) version of GTK. if this is the case, please check
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 auto/config.log for any error messages that may give you a hint as to what's
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 happening.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
134 There used to be a KDE version of Vim, using Qt libraries, but since it didn't
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
135 work very well and there was no maintainer it was dropped.
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 7
diff changeset
136
4424b47a0797 updated for version 7.0003
vimboss
parents: 7
diff changeset
137
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 Unix: COMPILING WITH MULTI-BYTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 When you want to compile with the multi-byte features enabled, make sure you
2278
0b3be97064e5 Various small fixes from Dominique Pelle.
Bram Moolenaar <bram@vim.org>
parents: 2247
diff changeset
141 compile on a machine where the locale settings actually work, otherwise the
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 configure tests may fail. You need to compile with "big" features:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 ./configure --with-features=big
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 Unix: COMPILING ON LINUX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 On Linux, when using -g to compile (which is default for gcc), the executable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 will probably be statically linked. If you don't want this, remove the -g
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 option from CFLAGS.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 Unix: PUTTING vimrc IN /etc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 Some Linux distributions prefer to put the global vimrc file in /etc, and the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 Vim runtime files in /usr. This can be done with:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 ./configure --prefix=/usr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim MAKE="make -e"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 Unix: COMPILING ON NeXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 Add the "-posix" argument to the compiler by using one of these commands:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 setenv CC 'cc -posix' (csh)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 export CC='cc -posix' (sh)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 And run configure with "--disable-motif-check".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1622
diff changeset
166 Unix: LOCAL HEADERS AND LIBRARIES NOT IN /usr/local
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1622
diff changeset
167
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1622
diff changeset
168 Sometimes it is necessary to search different path than /usr/local for locally
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1622
diff changeset
169 installed headers (/usr/local/include) and libraries (/usr/local/lib).
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1622
diff changeset
170 To search /stranger/include and /stranger/lib for locally installed
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1622
diff changeset
171 headers and libraries, use:
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1622
diff changeset
172 ./configure --with-local-dir=/stranger
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1622
diff changeset
173 And to not search for locally installed headers and libraries at all, use:
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1622
diff changeset
174 ./configure --without-local-dir
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 1622
diff changeset
175
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 3. RISC OS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 =============
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 Much file renaming is needed before you can compile anything.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 You'll need UnixLib to link against, GCC and GNU make.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 I suggest you get the RISC OS binary distribution, which includes the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 Templates file and the loader.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 Try here: http://www.ecs.soton.ac.uk/~tal197
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 Do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 :help riscos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
191 within the editor for more information, or read the
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
192 ../runtime/doc/os_risc.txt help file.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
195 4. OS/2
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 =======
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 Summary:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 ren Makefile Makefile.unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 ren makefile.os2 Makefile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 make
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 This port of Vim to OS/2 is based on the emx environment together
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 with GNU C. The main design goal of emx is to simplify porting Unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 software to OS/2 and DOS. Because of this, almost all the Unix defines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 etc. already existing in the Vim source code could be reused. Only where
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 OS/2 specifics came into play were additional changes necessary. Those
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 places can be found by searching for "OS2" and "__EMX__" (I've tried to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 keep emx-specific things separate from generic OS/2 stuff).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 Note: This OS/2 port works well for me and an additional OS/2 user on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 the Vim development team (Karsten Sievert); however, since I
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 haven't had any other feedback from other people, that either
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 means no (OS/2-specific) bugs exist, or no one has yet created
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 a situation in which any bugs are apparent.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 Report any problems or other comments to paul@wau.mis.ah.nl
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 (email valid up to at least September 1996, after that try
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 paul@wurtel.hobby.nl, paul@murphy.nl, or paulS@toecompst.nl).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 Textmode/notextmode and binary mode both seem to work well.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 Prerequisites:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 - To compile, you need the emx environment (at least rev. 0.9b), GCC,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 some make utility (GNU make works fine). These are generally
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 available as (ask Archie about them):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 emxrt.zip emx runtime package
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 emxdev.zip emx development system (without compiler)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 GNU programs compiled for emx, patches and patched sources:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 gnudev1.zip GNU development tools compiled for emx (part 1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 gnudev2.zip GNU development tools compiled for emx (part 2)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 gnumake.zip GNU make
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 - Don't set a TERM environment variable; Vim defaults to os2ansi
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 which is available as a builtin termcap entry. Using other values
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 may give problems! (OS/2 ANSI emulation is quite limited.) If you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 need to set TERM for other programs, you may consider putting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 set term=os2ansi in the vimrc file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
237 Check ../runtime/doc/os_os2.txt for additional info on running Vim.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
240 5. Atari MiNT
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 =============
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
243 [NOTE: this is quite old, it might not work anymore]
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244
1268
c91e60e1c695 updated for version 7.1
vimboss
parents: 11
diff changeset
245 To compile Vim for MiNT you may either copy Make_mint.mak to Makefile or use
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 the Unix Makefile adapted for the MiNT configuration.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 Now proceed as described in the Unix section.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 Prerequisites:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 You need a curses or termcap library that supports non-alphanumeric
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 termcap names. If you don't have any, link with termlib.o.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 -----------------------------------------------------------------------------
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 The rest of this file is based on the INSTALL file that comes with GNU
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 autoconf 2.12. Not everything applies to Vim. Read Makefile too!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 Basic Installation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 ==================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 These are generic installation instructions.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 The `configure' shell script attempts to guess correct values for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 various system-dependent variables used during compilation. It uses
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 those values to create a `Makefile' in each directory of the package.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 It may also create one or more `.h' files containing system-dependent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 definitions. Finally, it creates a shell script `config.status' that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 you can run in the future to recreate the current configuration, a file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 `config.cache' that saves the results of its tests to speed up
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 reconfiguring, and a file `config.log' containing compiler output
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 (useful mainly for debugging `configure').
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 If you need to do unusual things to compile the package, please try
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 to figure out how `configure' could check whether to do them, and mail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 diffs or instructions to the address given in the `README' so they can
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 be considered for the next release. If at some point `config.cache'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 contains results you don't want to keep, you may remove or edit it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 The file `configure.in' is used to create `configure' by a program
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 called `autoconf'. You only need `configure.in' if you want to change
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 it or regenerate `configure' using a newer version of `autoconf'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 The simplest way to compile this package is:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 1. `cd' to the directory containing the package's source code and type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 `./configure' to configure the package for your system. If you're
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 using `csh' on an old version of System V, you might need to type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 `sh ./configure' instead to prevent `csh' from trying to execute
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 `configure' itself.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 Running `configure' takes awhile. While running, it prints some
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 messages telling which features it is checking for.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 2. Type `make' to compile the package.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 3. Optionally, type `make check' to run any self-tests that come with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 the package.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 4. Type `make install' to install the programs and any data files and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 documentation.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 5. You can remove the program binaries and object files from the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 source code directory by typing `make clean'. To also remove the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 files that `configure' created (so you can compile the package for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 a different kind of computer), type `make distclean'. There is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 also a `make maintainer-clean' target, but that is intended mainly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 for the package's developers. If you use it, you may have to get
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 all sorts of other programs in order to regenerate files that came
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 with the distribution.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 Compilers and Options
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 =====================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 Some systems require unusual options for compilation or linking that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 the `configure' script does not know about. You can give `configure'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 initial values for variables by setting them in the environment. Using
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 a Bourne-compatible shell, you can do that on the command line like
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 this:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322 CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324 Or on systems that have the `env' program, you can do it like this:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 Compiling For Multiple Architectures
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 ====================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 You can compile the package for more than one kind of computer at the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331 same time, by placing the object files for each architecture in their
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 own directory. To do this, you must use a version of `make' that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 supports the `VPATH' variable, such as GNU `make'. `cd' to the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 directory where you want the object files and executables to go and run
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 the `configure' script. `configure' automatically checks for the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 source code in the directory that `configure' is in and in `..'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 If you have to use a `make' that does not supports the `VPATH'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 variable, you have to compile the package for one architecture at a time
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 in the source code directory. After you have installed the package for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 one architecture, use `make distclean' before reconfiguring for another
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 architecture.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 Installation Names
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 ==================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 By default, `make install' will install the package's files in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 `/usr/local/bin', `/usr/local/man', etc. You can specify an
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 installation prefix other than `/usr/local' by giving `configure' the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 option `--prefix=PATH'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 You can specify separate installation prefixes for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 architecture-specific files and architecture-independent files. If you
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 give `configure' the option `--exec-prefix=PATH', the package will use
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 PATH as the prefix for installing programs and libraries.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 Documentation and other data files will still use the regular prefix.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 In addition, if you use an unusual directory layout you can give
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 options like `--bindir=PATH' to specify different values for particular
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 kinds of files. Run `configure --help' for a list of the directories
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 you can set and what kinds of files go in them.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 If the package supports it, you can cause programs to be installed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 with an extra prefix or suffix on their names by giving `configure' the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 Optional Features
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 =================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 Some packages pay attention to `--enable-FEATURE' options to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 `configure', where FEATURE indicates an optional part of the package.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 is something like `gnu-as' or `x' (for the X Window System). The
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 `README' should mention any `--enable-' and `--with-' options that the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 package recognizes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 For packages that use the X Window System, `configure' can usually
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 find the X include and library files automatically, but if it doesn't,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 you can use the `configure' options `--x-includes=DIR' and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 `--x-libraries=DIR' to specify their locations.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 Specifying the System Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 ==========================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385 There may be some features `configure' can not figure out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386 automatically, but needs to determine by the type of host the package
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 will run on. Usually `configure' can figure that out, but if it prints
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 a message saying it can not guess the host type, give it the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 `--host=TYPE' option. TYPE can either be a short name for the system
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390 type, such as `sun4', or a canonical name with three fields:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391 CPU-COMPANY-SYSTEM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393 See the file `config.sub' for the possible values of each field. If
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 `config.sub' isn't included in this package, then this package doesn't
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 need to know the host type.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397 If you are building compiler tools for cross-compiling, you can also
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 use the `--target=TYPE' option to select the type of system they will
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 produce code for and the `--build=TYPE' option to select the type of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400 system on which you are compiling the package.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402 Sharing Defaults
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 ================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 If you want to set default values for `configure' scripts to share,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 you can create a site shell script called `config.site' that gives
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 default values for variables like `CC', `cache_file', and `prefix'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 `configure' looks for `PREFIX/share/config.site' if it exists, then
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 `PREFIX/etc/config.site' if it exists. Or, you can set the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410 `CONFIG_SITE' environment variable to the location of the site script.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
411 A warning: not all `configure' scripts look for a site script.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 Operation Controls
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 ==================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416 `configure' recognizes the following options to control how it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 operates.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 `--cache-file=FILE'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 Use and save the results of the tests in FILE instead of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 `./config.cache'. Set FILE to `/dev/null' to disable caching, for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 debugging `configure'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 `--help'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 Print a summary of the options to `configure', and exit.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427 `--quiet'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 `--silent'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 `-q'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430 Do not print messages saying which checks are being made. To
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431 suppress all normal output, redirect it to `/dev/null' (any error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432 messages will still be shown).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434 `--srcdir=DIR'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435 Look for the package's source code in directory DIR. Usually
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 `configure' can determine that directory automatically.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 `--version'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439 Print the version of Autoconf used to generate the `configure'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 script, and exit.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442 `configure' also accepts some other, not widely useful, options.