annotate mule-doc/INSTALL @ 165:5a88923fcbfe r20-3b9

Import from CVS: tag r20-3b9
author cvs
date Mon, 13 Aug 2007 09:44:42 +0200
parents c7528f8e288d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
1 GNU Emacs Installation Guide
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
2 Copyright (c) 1992, 1994 Free software Foundation, Inc.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
3
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
4 Permission is granted to anyone to make or distribute verbatim copies
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
5 of this document as received, in any medium, provided that the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
6 copyright notice and permission notice are preserved,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
7 and that the distributor grants the recipient permission
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
8 for further redistribution as permitted by this notice.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
9
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
10 Permission is granted to distribute modified versions
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
11 of this document, or of portions of it,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
12 under the above conditions, provided also that they
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
13 carry prominent notices stating who last changed them,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
14 and that any new or changed statements about the activities
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
15 of the Free Software Foundation are approved by the Foundation.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
16
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
17
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
18 BUILDING AND INSTALLATION:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
19 (This is for a Unix or Unix-like system. For MSDOS, see below;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
20 search for MSDOG.)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
21
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
22 0) Mule specific notices are surrounded by lines <MULE> and </MULE>.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
23
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
24 1) Make sure your system has enough swapping space allocated to handle
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
25 a program whose pure code is 900k bytes and whose data area is at
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
26 least 400k and can reach 8Mb or more. If the swapping space is
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
27 insufficient, you will get an error in the command `temacs -batch -l
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
28 loadup dump', found in `./src/Makefile.in.in', or possibly when
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
29 running the final dumped Emacs.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
30
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
31 Building Emacs requires about 50 Mb of disk space (including the Emacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
32 sources). Once installed, Emacs occupies about 20 Mb in the file
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
33 system where it is installed; this includes the executable files, Lisp
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
34 libraries, miscellaneous data files, and on-line documentation. If
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
35 the building and installation take place in different directories,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
36 then the installation procedure momentarily requires 50+20 Mb.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
37
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
38 <MULE>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
39 Mule requires 5 Mb more of disk space.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
40 </MULE>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
41
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
42 2) Consult `./etc/MACHINES' to see what configuration name you should
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
43 give to the `configure' program. That file sometimes offers hints for
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
44 getting around some possible installation problems.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
45
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
46 3) In the top directory of the Emacs distribution, run the program
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
47 `configure' as follows:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
48
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
49 ./configure CONFIGURATION-NAME [--OPTION[=VALUE]] ...
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
50
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
51 The CONFIGURATION-NAME argument should be a configuration name given
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
52 in `./etc/MACHINES'. If omitted, `configure' will try to guess your
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
53 system type by inspecting its environment; if it cannot, you must find
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
54 the appropriate configuration name in `./etc/MACHINES' and specify it
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
55 explicitly.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
56
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
57 The `--with-x', `--with-x11', and `--with-x10' options specify which
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
58 window system Emacs should support. If you don't want X support,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
59 specify `--with-x=no'. If all of these options are omitted,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
60 `configure' will try to figure out for itself whether your system has
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
61 X11, and arrange to use it if present.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
62
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
63 The `--x-includes=DIR' and `--x-libraries=DIR' options tell the build
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
64 process where the compiler should look for the include files and
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
65 object libraries used with the X Window System. Normally, your
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
66 compiler should be able to find these by default; these options should
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
67 only be necessary if you have your X Window System files installed in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
68 unusual places.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
69
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
70 You can specify toolkit operation when you configure Emacs; use the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
71 option --with-x-toolkit.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
72
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
73 Note: on some systems, it does not work to use the toolkit with shared
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
74 libraries.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
75
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
76 The `--run-in-place' option sets up default values for the path
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
77 variables in `./Makefile' so that Emacs will expect to find its data
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
78 files (lisp libraries, runnable programs, and the like) in the same
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
79 locations they occupy while Emacs builds. If you use `--run-in-place'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
80 then you don't need to do `make install'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
81
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
82 `--run-in-place' is pretty much obsolete now. If you put the Emacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
83 executable in a subdirectory named src, which has siblings named lisp,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
84 lib-src, etc, info and so on, Emacs automatically uses those sibling
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
85 directories if the standard installation directory names don't contain
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
86 what Emacs needs.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
87
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
88 The `--with-gcc' option specifies that the build process should
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
89 compile Emacs using GCC. If you don't want to use GCC, specify
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
90 `--with-gcc=no'. If this option is omitted, `configure' will search
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
91 for GCC in your load path, and use it if present.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
92
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
93 The `--srcdir=DIR' option specifies that the configuration and build
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
94 processes should look for the Emacs source code in DIR, when DIR is
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
95 not the current directory.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
96
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
97 You can use `--srcdir' to build Emacs for several different machine
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
98 types from a single source directory. Make separate build directories
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
99 for the different configuration types, and in each one, build Emacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
100 specifying the common source directory with `--srcdir'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
101
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
102 The `--prefix=PREFIXDIR' option specifies where the installation process
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
103 should put emacs and its data files. This defaults to `/usr/local'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
104 - Emacs (and the other utilities users run) go in PREFIXDIR/bin
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
105 (unless the `--exec-prefix' option says otherwise).
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
106 - The architecture-independent files go in PREFIXDIR/lib/emacs/VERSION
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
107 (where VERSION is the version number of Emacs, like `19.7').
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
108 - The architecture-dependent files go in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
109 PREFIXDIR/lib/emacs/VERSION/CONFIGURATION
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
110 (where CONFIGURATION is the configuration name, like mips-dec-ultrix4.2),
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
111 unless the `--exec-prefix' option says otherwise.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
112
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
113 The `--exec-prefix=EXECDIR' option allows you to specify a separate
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
114 portion of the directory tree for installing architecture-specific
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
115 files, like executables and utility programs. If specified,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
116 - Emacs (and the other utilities users run) go in EXECDIR/bin, and
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
117 - The architecture-dependent files go in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
118 EXECDIR/lib/emacs/VERSION/CONFIGURATION.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
119 EXECDIR/bin should be a directory that is normally in users' PATHs.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
120
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
121 <MULE>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
122 Here's a list of Mule specific options.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
123
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
124 The `--terminal-face' option allows you to use face even while running
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
125 Mule under terminals.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
126
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
127 The `--mcpath' option allows you to handle multilingual file names.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
128 You should set `pathname-coding-system' appropriately in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
129 ./lisp/site-init.el.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
130
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
131 The `--with-wnn4' option enables Japanese and Chinese inputting by Wnn4.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
132
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
133 The `--wiht-wnn6' option enables Japanese and Chinese inputting by Wnn6.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
134
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
135 The `--wnn-includes=DIR' option specifies where to search for WNN
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
136 header files.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
137
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
138 The `--wnn-libraries=DIR' option specifies where to search for WNN
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
139 libraries (e.g. libwnn.a).
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
140
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
141 To use `--with-wnn4' or `--with-wnn6', you should have
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
142 created include files (e.g. wnn/commonhd.h) and a library
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
143 (libwnn.a). For `--with-wnn4', you must install Wnn4 to get
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
144 those files. For `--with-wnn6', you must buy Wnn6 from
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
145 Omron Software or get those files from the following ftp cite:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
146 ftp-sp.omronsoft.co.jp:/pub/Wnn6/sdk
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
147 In addition, in both cases, you must run jserver (and/or
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
148 cserver, kserver) on some IP-reachable machine. In the case
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
149 of Wnn6, it is not a free software, and you must buy it from
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
150 Omron Software or get a trial program from the following ftp
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
151 cite:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
152 ftp-sp.omronsoft.co.jp:/pub/Wnn6/trial
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
153 The trial program can be used until the end of September '95.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
154 But, Wnn6 does not include cserver and kserver. If you want
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
155 to use them, you must also installl Wnn4. There's no
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
156 problem in using jserver of Wnn6 along with csercer/kserver
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
157 of Wnn4.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
158
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
159 General information about Wnn6 is avairable at:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
160 http://www-sp.omronsoft.co.jp/
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
161
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
162 The `--sj3' option enables Japanese inputting by SJ3.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
163
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
164 The `--canna' option enables Japanese inputting by CANNA.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
165
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
166 The `--canna-includes=DIR' and `--canna-libraries=DIR' options are
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
167 analogous to `--wnn-includes=DIR' and `--wnn-libraries=DIR'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
168 respectively.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
169
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
170 The `--bdf-path=DIRS' option specifies where to search for
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
171 BDF files. DIRS is a list of directories separated by
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
172 comma. This specification is concerned by `m2ps' program.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
173
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
174 The `--valbits=NN' option specifies a value of VALBITS macro.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
175 </MULE>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
176
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
177 For example, the command
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
178
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
179 ./configure mips-dec-ultrix --with-x11
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
180
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
181 configures Emacs to build for a DECstation running Ultrix, with
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
182 support for the X11 window system.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
183
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
184 The `configure' program does not accept abbreviations for its
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
185 options.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
186
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
187 Note that `configure' doesn't do any compilation or installation
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
188 itself. It just creates the files that influence those things:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
189 `./Makefile', `build-install', and `./src/config.h'. For details on
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
190 exactly what it does, see the section called `CONFIGURATION BY HAND',
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
191 below.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
192
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
193 When it is done, `configure' prints a description of what it did and
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
194 leaves a copy in the file `config.status'. That file is also a shell
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
195 script which, when run, recreates the same configuration; it contains
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
196 the verbal description as a comment. If `configure' exits with an
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
197 error after disturbing the status quo, it removes `config.status'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
198
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
199 The work of `configure' can be done by editing various files in the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
200 distribution, but using `configure' is supposed to be simpler. See
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
201 the section called "CONFIGURATION BY HAND" below if you want to do the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
202 configuration yourself.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
203
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
204 4) Look at `./lisp/paths.el'; if some of those values are not right
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
205 for your system, edit the file `./lisp/site-init.el' containing Emacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
206 Lisp code to override them; you probably don't want to edit paths.el
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
207 itself. YOU MUST USE THE LISP FUNCTION `setq' TO ASSIGN VALUES,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
208 rather than `defvar', as used by `./lisp/paths.el'. For example,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
209
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
210 (setq news-inews-program "/usr/bin/inews")
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
211
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
212 is how you would override the default value of the variable
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
213 news-inews-program (which is "/usr/local/inews").
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
214
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
215 Note that, on some systems, the code you place in site-init.el must
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
216 not use expand-file-name or any other function which may look
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
217 something up in the system's password and user information database.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
218 See `./PROBLEMS' for more details on which systems this affects.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
219
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
220 5) Put into `./lisp/site-init.el' or `./lisp/site-load.el' any Emacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
221 Lisp code you want Emacs to load before it is dumped out. Use
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
222 site-load.el for additional libraries if you arrange for their
78
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
223 documentation strings to be in the DOC file (see src/Makefile.in.in if
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
224 you wish to figure out how to do that). For all else, use
c7528f8e288d Import from CVS: tag r20-0b34
cvs
parents: 70
diff changeset
225 site-init.el.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
226
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
227 <MULE>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
228 All language specific basic environments are defined `./lisp/mule-init.el'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
229 By default, Japanese is set as the primary environment.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
230 You can change primary environment in `./lisp/site-init.el by
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
231 `set-primary-environment'. For instance,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
232 (set-primary-environment 'chinese)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
233 makes Chinese the primary environment.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
234 If you are still not satisfied with the settings, you can
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
235 override them after the above line. For instance,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
236 (set-default-file-coding-system '*big5*)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
237 makes *big5* be used for file I/O by default.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
238 If you are not satisfied with other default settings in `./lisp/mule-init.el',
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
239 override any of them also in `./lisp/site-init.el'. For instance,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
240 (define-program-coding-system nil ".*mail.*" '*iso-8859-1*)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
241 makes the coding-system '*iso-8859-1* be used in mail.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
242 </MULE>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
243
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
244 Note that, on some systems, the code you place in site-init.el must
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
245 not use expand-file-name or any other function which may look
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
246 something up in the system's password and user information database.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
247 See `./PROBLEMS' for more details on which systems this affects.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
248
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
249 The `site-*.el' files are nonexistent in the distribution. You do not
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
250 need to create them if you have nothing to put in them.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
251
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
252 6) Refer to the file `./etc/TERMS' for information on fields you may
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
253 wish to add to various termcap entries. The files `./etc/termcap.ucb'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
254 and `./etc/termcap.dat' may already contain appropriately-modified
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
255 entries.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
256
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
257 7) Run `make' in the top directory of the Emacs distribution to finish
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
258 building Emacs in the standard way. The final executable file will be
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
259 named `src/emacs'. If you want to have Emacs's executable programs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
260 and data files installed as well, run `make install'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
261
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
262 By default, Emacs installs its files in the following directories:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
263
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
264 `/usr/local/bin' holds the executable programs users normally run -
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
265 `emacs', `etags', `ctags', `b2m', `emacsclient',
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
266 and `rcs-checkin'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
267
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
268 `/usr/local/lib/emacs/VERSION/lisp' holds the Emacs Lisp library;
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
269 `VERSION' stands for the number of the Emacs version
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
270 you are installing, like `18.59' or `19.0'. Since the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
271 lisp library changes from one version of Emacs to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
272 another, including the version number in the path
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
273 allows you to have several versions of Emacs installed
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
274 at the same time; this means that you don't have to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
275 make Emacs unavailable while installing a new
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
276 version.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
277
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
278 Emacs searches for its lisp files in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
279 `/usr/local/lib/emacs/site-lisp', then in this
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
280 directory.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
281
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
282 `/usr/local/lib/emacs/VERSION/etc' holds the Emacs tutorial, the DOC
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
283 file, the `yow' database, and other
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
284 architecture-independent files Emacs might need while
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
285 running. VERSION is as specified for `.../lisp'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
286
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
287 `/usr/local/lib/emacs/lock' contains files indicating who is editing
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
288 what, so Emacs can detect editing clashes between
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
289 users.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
290
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
291 `/usr/local/lib/emacs/VERSION/CONFIGURATION-NAME' contains executable
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
292 programs used by Emacs that users are not expected to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
293 run themselves.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
294 `VERSION' is the number of the Emacs version you are
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
295 installing, and `CONFIGURATION-NAME' is the argument
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
296 you gave to the `configure' program to identify the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
297 architecture and operating system of your machine,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
298 like `mips-dec-ultrix' or `sparc-sun-sunos'. Since
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
299 these files are specific to the version of Emacs,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
300 operating system, and architecture in use, including
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
301 the configuration name in the path allows you to have
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
302 several versions of Emacs for any mix of machines and
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
303 operating systems installed at the same time; this is
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
304 useful for sites at which different kinds of machines
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
305 share the file system Emacs is installed on.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
306
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
307 `/usr/local/info' holds the on-line documentation for Emacs, known as
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
308 "info files". Many other GNU programs are documented
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
309 using info files as well, so this directory stands
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
310 apart from the other, Emacs-specific directories.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
311
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
312 `/usr/local/man/man1' holds the man pages for the programs installed
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
313 in `/usr/local/bin'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
314
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
315 If these directories are not what you want, you can specify where to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
316 install Emacs's libraries and data files or where Emacs should search
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
317 for its lisp files by giving values for `make' variables as part of
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
318 the command. See the section below called `MAKE VARIABLES' for more
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
319 information on this.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
320
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
321 8) Check the file `dir' in your site's info directory (usually
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
322 /usr/local/info) to make sure that it has a menu entry for the Emacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
323 info files.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
324
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
325 9) If your system uses lock files to interlock access to mailer inbox files,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
326 then you might need to make the program arch-lib/movemail setuid or setgid
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
327 to enable it to write the lock files. We believe this is safe.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
328
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
329 10) You are done!
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
330
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
331
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
332 MAKE VARIABLES
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
333
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
334 You can change where the build process installs Emacs and its data
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
335 files by specifying values for `make' variables as part of the `make'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
336 command line. For example, if you type
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
337
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
338 make install bindir=/usr/local/gnubin
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
339
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
340 the `bindir=/usr/local/gnubin' argument indicates that the Emacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
341 executable files should go in `/usr/local/gnubin', not
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
342 `/usr/local/bin'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
343
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
344 Here is a complete list of the variables you may want to set.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
345
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
346 `bindir' indicates where to put executable programs that users can
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
347 run. This defaults to /usr/local/bin.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
348
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
349 `datadir' indicates where to put the architecture-independent
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
350 read-only data files that Emacs refers to while it runs; it
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
351 defaults to /usr/local/lib. We create the following
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
352 subdirectories under `datadir':
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
353 - `emacs/VERSION/lisp', containing the Emacs lisp library, and
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
354 - `emacs/VERSION/etc', containing the Emacs tutorial, the DOC
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
355 file, and the `yow' database.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
356 `VERSION' is the number of the Emacs version you are installing,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
357 like `18.59' or `19.0'. Since these files vary from one version
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
358 of Emacs to another, including the version number in the path
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
359 allows you to have several versions of Emacs installed at the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
360 same time; this means that you don't have to make Emacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
361 unavailable while installing a new version.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
362
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
363 `statedir' indicates where to put architecture-independent data files
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
364 that Emacs modifies while it runs; it defaults to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
365 /usr/local/lib as well. We create the following
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
366 subdirectories under `statedir':
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
367 - `emacs/lock', containing files indicating who is editing
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
368 what, so Emacs can detect editing clashes between
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
369 users.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
370
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
371 `libdir' indicates where to put architecture-specific data files that
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
372 Emacs refers to as it runs; it too defaults to `/usr/local/lib'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
373 We create the following subdirectories under `libdir':
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
374 - `emacs/VERSION/CONFIGURATION-NAME', containing executable
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
375 programs used by Emacs that users are not expected to run
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
376 themselves.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
377 `VERSION' is the number of the Emacs version you are installing,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
378 and `CONFIGURATION-NAME' is the argument you gave to the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
379 `configure' program to identify the architecture and operating
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
380 system of your machine, like `mips-dec-ultrix' or
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
381 `sparc-sun-sunos'. Since these files are specific to the version
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
382 of Emacs, operating system, and architecture in use, including
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
383 the configuration name in the path allows you to have several
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
384 versions of Emacs for any mix of machines and operating systems
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
385 installed at the same time; this is useful for sites at which
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
386 different kinds of machines share the file system Emacs is
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
387 installed on.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
388
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
389 `infodir' indicates where to put the info files distributed with
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
390 Emacs; it defaults to `/usr/local/info'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
391
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
392 `mandir' indicates where to put the man pages for Emacs and its
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
393 utilities (like `etags'); it defaults to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
394 `/usr/local/man/man1'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
395
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
396 `manext' gives the extension the man pages should be installed with.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
397 It should contain a period, followed by the appropriate
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
398 digit. It defaults to `.1'. For example given the default
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
399 values for `mandir' and `manext', the Emacs man page would be
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
400 installed as `/usr/local/man/man1/emacs.1'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
401
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
402 `prefix' doesn't give a path for any specific part of Emacs; instead,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
403 its value is used to determine the defaults for all the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
404 architecture-independent path variables - `datadir',
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
405 `statedir', `infodir', and `mandir'. Its default value is
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
406 `/usr/local'; the other variables add on `lib' or `man' to it
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
407 by default.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
408
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
409 For example, suppose your site generally places GNU software
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
410 under `/usr/users/software/gnusoft' instead of `/usr/local'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
411 By including
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
412 `prefix=/usr/users/software/gnusoft'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
413 in the arguments to `make', you can instruct the build process
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
414 to place all of the Emacs data files in the appropriate
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
415 directories under that path.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
416
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
417 `exec_prefix' serves the same purpose as `prefix', but instead
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
418 determines the default values for the architecture-dependent
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
419 path variables - `bindir' and `libdir'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
420
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
421 The above variables serve analogous purposes in the makefiles for all
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
422 GNU software; here are some variables specific to Emacs.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
423
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
424 `lispdir' indicates where Emacs installs and expects its lisp
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
425 library. Its default value, based on `datadir' (see above),
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
426 is `/usr/local/lib/emacs/VERSION/lisp' (where `VERSION' is as
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
427 described above).
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
428
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
429 `locallisppath' indicates where Emacs should search for lisp files
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
430 specific to your site. It should be a colon-separated list of
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
431 directories; Emacs checks them in order before checking
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
432 `lispdir'. Its default value, based on `datadir' (see above),
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
433 is `/usr/local/lib/emacs/site-lisp'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
434
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
435 `lisppath' is the complete list of directories Emacs should search for
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
436 its lisp files; its default value is the concatenation of
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
437 `lispdir' and `locallisppath'. It should be a colon-separated
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
438 list of directories; Emacs checks them in the order they
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
439 appear.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
440
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
441 `etcdir' indicates where Emacs should install and expect the rest of
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
442 its architecture-independent data, like the tutorial, DOC
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
443 file, and yow database. Its default value, based on `datadir'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
444 (which see), is `/usr/local/lib/emacs/VERSION/etc'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
445
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
446 `lockdir' indicates the directory where Emacs keeps track of its
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
447 locking information. Its default value, based on `statedir'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
448 (which see), is `/usr/local/lib/emacs/lock'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
449
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
450 `archlibdir' indicates where Emacs installs and expects the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
451 executable files and other architecture-dependent data it uses
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
452 while running. Its default value, based on `libdir' (which
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
453 see), is `/usr/local/lib/emacs/VERSION/CONFIGURATION-NAME'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
454 (where VERSION and CONFIGURATION-NAME are as described above).
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
455
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
456 Remember that you must specify any variable values you need each time
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
457 you run `make' in the top directory. If you run `make' once to build
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
458 emacs, test it, and then run `make' again to install the files, you
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
459 must provide the same variable settings each time. To make the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
460 settings persist, you can edit them into the `Makefile' in the top
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
461 directory, but be aware that running the `configure' program erases
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
462 `Makefile' and rebuilds it from `Makefile.in'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
463
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
464 The top-level Makefile stores the variable settings it used in the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
465 Makefiles for the subdirectories, so you don't have to specify them
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
466 when running make in the subdirectories.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
467
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
468
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
469 CONFIGURATION BY HAND
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
470
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
471 Instead of running the `configure' program, you have to perform the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
472 following steps.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
473
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
474 1) Copy `./src/config.h.in' to `./src/config.h'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
475
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
476 2) Consult `./etc/MACHINES' to see what configuration name you should
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
477 use for your system. Look at the code of the `configure' script to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
478 see which operating system and architecture description files from
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
479 `src/s' and `src/m' should be used for that configuration name. Edit
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
480 `src/config.h', and change the two `#include' directives to include
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
481 the appropriate system and architecture description files.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
482
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
483 2) Edit `./src/config.h' to set the right options for your system. If
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
484 you need to override any of the definitions in the s/*.h and m/*.h
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
485 files for your system and machine, do so by editing config.h, not by
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
486 changing the s/*.h and m/*.h files. Occasionally you may need to
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
487 redefine parameters used in `./lib-src/movemail.c'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
488
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
489 3) Create src/Makefile and lib-src/Makefile from the corresponding
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
490 `Makefile.in.in' files. First copy `Makefile.in.in' to `Makefile.in',
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
491 then edit in appropriate substituions for the @...@ constructs,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
492 and then copy the shell commands near the end of `configure'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
493 that run cpp to construct `Makefile'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
494
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
495 4) Create `Makefile' files in various other directories
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
496 from the corresponding `Makefile.in' files. This isn't so hard,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
497 just a matter of substitution.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
498
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
499 5) If you're going to use the build-install script to build Emacs,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
500 copy `./build-ins.in' to `./build-install', and edit the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
501 definitions found at the top of the script.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
502
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
503 The `configure' script is built from `configure.in' by the `autoconf'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
504 program. However, since Emacs has configuration requirements that
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
505 autoconf can't meet, `configure.in' uses an marriage of custom-baked
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
506 configuration code and autoconf macros. New versions of autoconf
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
507 could very well break this arrangement, so it may be wise to avoid
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
508 rebuilding `configure' from `configure.in' when possible.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
509
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
510
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
511 BUILDING GNU EMACS BY HAND
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
512
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
513 Once Emacs is configured, running `make' or running the shell script
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
514 `build-install' in the top directory performs the following steps.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
515
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
516 1) Run `make src/paths.h' in the top directory. This produces
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
517 `./src/paths.h' from the template file `./src/paths.h.in', changing
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
518 the paths to the values specified in `./Makefile'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
519
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
520 2) Go to directory `./lib-src' and run `make'. This creates
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
521 executables named `ctags' and `etags' and `wakeup' and `make-docfile'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
522 and `digest-doc' and `test-distrib'. And others.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
523
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
524 3) Go to directory `./src' and Run `make'. This refers to files in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
525 the `./lisp' and `./lib-src' subdirectories using names `../lisp' and
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
526 `../lib-src'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
527
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
528 This creates a file `./src/emacs' which is the runnable Emacs,
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
529 which has another name that contains a version number.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
530 Each time you do this, that version number increments in the last place.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
531
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
532 It also creates a file in `./etc' whose name is `DOC' followed by the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
533 current Emacs version. This file contains documentation strings for
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
534 all the functions in Emacs. Each time you run make to make a new
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
535 emacs, a new DOC file with a new name is made. You must keep the DOC
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
536 file for an Emacs version as long as you keep using that Emacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
537 version.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
538
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
539
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
540 INSTALLATION BY HAND
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
541
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
542 The steps below are done by the shell script `build-install' or by
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
543 running `make install' in the main directory of the Emacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
544 distribution.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
545
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
546 1) Copy `./lisp' and its subdirectories, `./etc', and the executables
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
547 in `./lib-src' to their final destinations, as selected in `./src/paths.h'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
548
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
549 Strictly speaking, not all of the executables in `./lib-src' need be copied.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
550 - The programs `cvtmail', `emacsserver', `fakemail', `hexl',
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
551 `movemail', `profile', `rcs2log', `timer', `vcdiff', `wakeup',
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
552 and `yow' are used by Emacs; they do need to be copied.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
553 - The programs `etags', `ctags', `emacsclient', `b2m', and `rcs-checkin'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
554 are intended to be run by users; they are handled below.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
555 - The programs `make-docfile', `make-path', and `test-distrib' were
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
556 used in building Emacs, and are not needed any more.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
557 - The programs `digest-doc' and `sorted-doc' convert a `DOC' file into
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
558 a file for users to read. There is no important reason to move them.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
559
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
560 2) Copy the files in `./info' to the place specified in
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
561 `./lisp/site-init.el' or `./lisp/paths.el'. Note that if the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
562 destination directory already contains a file named `dir', you
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
563 probably don't want to replace it with the `dir' file in the Emacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
564 distribution. Instead, you should make sure that the existing `dir'
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
565 file contains an appropriate menu entry for the Emacs info.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
566
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
567 3) Create a directory for Emacs to use for clash detection, named as
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
568 indicated by the PATH_LOCK macro in `./src/paths.h'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
569
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
570 4) Copy `./src/emacs' to `/usr/local/bin', or to some other directory
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
571 in users' search paths. `./src/emacs' has an alternate name
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
572 `./src/emacs-EMACSVERSION'; you may wish to make a symbolic link named
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
573 `/usr/local/bin/emacs' pointing to that alternate name, as an easy way
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
574 of installing different versions.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
575
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
576 You can delete `./src/temacs'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
577
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
578 5) Copy the programs `b2m', `emacsclient', `ctags', `etags', and
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
579 `rcs-checkin' from `./lib-src' to `/usr/local/bin'. These programs are
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
580 intended for users to run.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
581
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
582 <MULE>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
583 You'd better also copy the program `m2ps'.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
584 </MULE>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
585
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
586 6) Copy the man pages in `./etc' for emacs, ctags, and etags into the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
587 appropriate man directories.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
588
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
589 7) The files in the `./src' subdirectory, except for `emacs', are not
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
590 used by Emacs once it is built. However, it is very desirable to keep
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
591 the source on line for debugging.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
592
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
593
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
594 PROBLEMS
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
595
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
596 See the file PROBLEMS in this directory for a list of various
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
597 problems sometimes encountered, and what to do about them.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
598
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
599
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
600 Installation on MSDOG (a.k.a. MSDOS)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
601
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
602 To install on MSDOG, you need to have the GNU C compiler for MSDOG
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
603 (also known as djgpp), GNU Make, rm, mv, chmod, and sed. Type these
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
604 commands:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
605
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
606 config msdos
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
607 make install
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
608
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
609 To save disk space, Emacs is built with the idea that you will execute
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
610 it from the same place in the file system where you built it. As the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
611 /usr/local/ subtree does not exist on most MSDOG systems, the
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
612 executables are placed in /emacs/bin/.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
613
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
614 MSDOG is a not a multitasking operating system, so Emacs features such
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
615 as asynchronous subprocesses that depend on multitasking will not
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
616 work. Synchronous subprocesses do work.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
617
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
618 <MULE>
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
619 To run Mule for DOS, termcap must be setup.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
620
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
621 For exapmle, type following commands:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
622
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
623 mkdir c:\etc
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
624 copy msdos\termcap c:\etc
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
625 set TERMCAP=c:/etc/termcap
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
626 set TERM=ibmpc
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents:
diff changeset
627 </MULE>