comparison INSTALL @ 243:f220cc83d72e r20-5b20

Import from CVS: tag r20-5b20
author cvs
date Mon, 13 Aug 2007 10:17:07 +0200
parents 0e522484dd2a
children 157b30c96d03
comparison
equal deleted inserted replaced
242:fc816b73a05f 243:f220cc83d72e
25 least 400k and can reach 8Mb or more. If the swapping space is 25 least 400k and can reach 8Mb or more. If the swapping space is
26 insufficient, you will get an error in the command `temacs -batch 26 insufficient, you will get an error in the command `temacs -batch
27 -l loadup dump', found in `./src/Makefile.in.in', or possibly when 27 -l loadup dump', found in `./src/Makefile.in.in', or possibly when
28 running the final dumped XEmacs. 28 running the final dumped XEmacs.
29 29
30 Building XEmacs requires about 88 Mb of disk space (including the 30 Building XEmacs requires about 41 Mb of disk space (including the
31 XEmacs sources). Once installed, XEmacs occupies about 50 Mb in the 31 XEmacs sources). Once installed, XEmacs occupies about 16 Mb in the
32 file system where it is installed; this includes the executable files, 32 file system where it is installed; this includes the executable files,
33 Lisp libraries, miscellaneous data files, and on-line documentation. 33 Lisp libraries, miscellaneous data files, and on-line documentation.
34 The amount of storage of the Lisp directories may be reduced by 34 The amount of storage of the Lisp directories may be reduced by
35 compressing the .el files. If the building and installation take place 35 compressing the .el files. If the building and installation take place
36 in different directories, then the installation procedure temporarily 36 in different directories, then the installation procedure temporarily
37 requires 88+50 Mb. 37 requires 41+16 Mb. Adjust this value upwards depending upon what
38 additional Lisp support is installed.
38 39
39 XEmacs requires an ANSI C compiler, such as GCC. 40 XEmacs requires an ANSI C compiler, such as GCC.
40 41
41 42
42 2) Decide on what other software packages you would like to use with 43 2) Decide on what other software packages you would like to use with
46 software packages that XEmacs can use. If these are not yet available 47 software packages that XEmacs can use. If these are not yet available
47 on your system, obtain, build and install those external packages 48 on your system, obtain, build and install those external packages
48 before building XEmacs. The packages XEmacs can use are: 49 before building XEmacs. The packages XEmacs can use are:
49 50
50 Xaw3d, XPM, JPEG, compface, PNG, zlib, OffiX, GNU DBM, Berkeley DB, 51 Xaw3d, XPM, JPEG, compface, PNG, zlib, OffiX, GNU DBM, Berkeley DB,
51 socks, term, NAS, Canna, Wnn. 52 socks, term, NAS, Canna, Kinput2, SJ3, Wnn.
52 53
53 You can get (most of) them from the XEmacs ftp site at 54 You can get (most of) them from the XEmacs ftp site at
54 ftp://ftp.xemacs.org/pub/aux 55 ftp://ftp.xemacs.org/pub/xemacs/aux
55 56
56 If you want users on other systems to be able to use the XEmacs you 57 If you want users on other systems to be able to use the XEmacs you
57 have built, try to build those packages so that the generated 58 have built, try to build those packages so that the generated
58 libraries are statically linked. 59 libraries are statically linked.
59 60
62 If you link with dynamic (``.so'') external package libraries, which 63 If you link with dynamic (``.so'') external package libraries, which
63 is not recommended, you will also need to add the library directories 64 is not recommended, you will also need to add the library directories
64 to the --site-runtime-libraries option. 65 to the --site-runtime-libraries option.
65 66
66 67
67 3) In the top level directory of the XEmacs distribution, run the 68 3) Decide what Initial Lisp you need with XEmacs. XEmacs is distributed
69 separately from most of its runtime environment. This is done to make it
70 easier for administrators to tune an installation for what the local users
71 need. See the file etc/PACKAGES for an overview of what is available and
72 which packages need to be installed prior to building XEmacs. At this
73 point you only need a minimum to get started at which point you may install
74 what you wish without further changes to the XEmacs binary. A sample
75 minimum configuration for a Linux system using Mule and Wnn6 from OMRON
76 corporation would be the packages `mule-base' and `egg-its'. By default,
77 packages will be searched for in the directory $prefix/lib/xemacs/packages.
78 This may be changed by specifying a different value with the --package-path
79 configuration option. Multiple directories may be specified.
80
81
82 4) In the top level directory of the XEmacs distribution, run the
68 program `configure' as follows: 83 program `configure' as follows:
69 84
70 ./configure [CONFIGURATION-NAME] [--OPTION[=VALUE]] ... 85 ./configure [CONFIGURATION-NAME] [--OPTION[=VALUE]] ...
71 86
72 Usually, you should let `configure' (actually the shell script 87 Almost always, you should let `configure' (actually the shell script
73 `config.guess') guess your system type, by omitting the 88 `config.guess') guess your host type, by omitting the
74 CONFIGURATION-NAME argument. If you like to experiment, specify a 89 CONFIGURATION-NAME argument. If you like to experiment, specify a
75 configuration name in the form MACHINE-VENDOR-OPSYS, for example: 90 configuration name in the form MACHINE-VENDOR-OPSYS, for example:
76 91
77 sparc-sun-solaris2.6 92 sparc-sun-solaris2.6
78 93
160 - XEmacs (and the other utilities users run) go in PREFIXDIR/bin 175 - XEmacs (and the other utilities users run) go in PREFIXDIR/bin
161 (unless the `--exec-prefix' option says otherwise). 176 (unless the `--exec-prefix' option says otherwise).
162 - The architecture-independent files go in PREFIXDIR/lib/xemacs-VERSION 177 - The architecture-independent files go in PREFIXDIR/lib/xemacs-VERSION
163 (where VERSION is the version number of XEmacs, like `20.5'). 178 (where VERSION is the version number of XEmacs, like `20.5').
164 - The architecture-dependent files go in 179 - The architecture-dependent files go in
165 PREFIXDIR/lib/xemacs-VERSION/CONFIGURATION 180 PREFIXDIR/lib/xemacs-VERSION/CONFIGURATION-NAME
166 (where CONFIGURATION is the configuration name, like mips-dec-ultrix4.2), 181 (where CONFIGURATION-NAME is the host type, like mips-dec-ultrix4.2),
167 unless the `--exec-prefix' option says otherwise. 182 unless the `--exec-prefix' option says otherwise.
168 183
169 The `--exec-prefix=EXECDIR' option allows you to specify a separate 184 The `--exec-prefix=EXECDIR' option allows you to specify a separate
170 portion of the directory tree for installing architecture-specific 185 portion of the directory tree for installing architecture-specific
171 files, like executables and utility programs. If specified, 186 files, like executables and utility programs. If specified,
172 - XEmacs (and the other utilities users run) go in EXECDIR/bin, and 187 - XEmacs (and the other utilities users run) go in EXECDIR/bin, and
173 - The architecture-dependent files go in 188 - The architecture-dependent files go in
174 EXECDIR/lib/xemacs-VERSION/CONFIGURATION. 189 EXECDIR/lib/xemacs-VERSION/CONFIGURATION-NAME.
175 EXECDIR/bin should be a directory that is normally in users' PATHs. 190 EXECDIR/bin should be a directory that is normally in users' PATHs.
176 191
177 For example, the command 192 For example, the command
178 193
179 ./configure mips-dec-ultrix --with-x11=yes 194 ./configure mips-dec-ultrix --with-x11=yes
194 `lucid' which is a Motif-lookalike scrollbar. If `no' is specified 209 `lucid' which is a Motif-lookalike scrollbar. If `no' is specified
195 then support for scrollbars will not be compiled in. 210 then support for scrollbars will not be compiled in.
196 211
197 The `--with-dialogs=TYPE' option allows you to specify which X toolkit 212 The `--with-dialogs=TYPE' option allows you to specify which X toolkit
198 you wish to use for the dialog boxes. The valid options are `athena', 213 you wish to use for the dialog boxes. The valid options are `athena',
199 `motif, and `no. The `lucid' option is accepted and will result in 214 `athena3d', `motif, and `no. The `lucid' option is accepted and will
200 the `athena' toolkit being used. If the Motif toolkit can be found 215 result in the `athena' toolkit being used. If the Motif toolkit can be
201 the default is `motif'. Otherwise, the default is `athena'. If 216 found the default is `motif'. Otherwise, the default is `athena'. If
202 `no' is specified then support for dialog boxes will not be compiled 217 `no' is specified then support for dialog boxes will not be compiled
203 in. 218 in.
204 219
205 The `--with-toolbars' option allows you to enable or disable toolbar 220 The `--with-toolbars' option allows you to enable or disable toolbar
206 support. The default is `yes' as long as support for a windowing 221 support. The default is `yes' as long as support for a windowing
207 system is included. 222 system is included.
208 223
209 The `--with-gif' option specifies that XEmacs should support GIF image
210 conversion. No extra libraries are required. This options defaults
211 to `yes'.
212
213 The `--with-xpm' option specifies that XEmacs should support X11 224 The `--with-xpm' option specifies that XEmacs should support X11
214 Pixmaps. `configure' will attempt to detect if you have the Xpm 225 Pixmaps. `configure' will attempt to detect if you have the Xpm
215 libraries and define `--with-xpm' for you. 226 libraries and define `--with-xpm' for you.
216 227
217 The `--with-xface' option specifies that XEmacs should support 228 The `--with-xface' option specifies that XEmacs should support
218 X-Faces. `configure' will attempt to detect if you have the compface 229 X-Faces. `configure' will attempt to detect if you have the compface
219 library and define `--with-xface' for you. 230 library and define `--with-xface' for you.
220
221 The `--with-jpeg' option specifies that XEmacs should support JPEG
222 image conversion. This option requires libjpeg from the Independent
223 JPEG Group which is available on the XEmacs ftp site. `configure'
224 will attempt to detect if you have libjpeg and define `--with-jpeg'
225 for you.
226
227 The `--with-png' option specifies that XEmacs should support PNG image
228 conversion. The valid options are `yes' and `no'. This option
229 requires libpng which is available on the XEmacs ftp site. This
230 option also requires a decompression library, either libz or
231 libgz. XEmacs will detect whether libz is available, and use that,
232 else it will use libgz.
233 231
234 The `--with-database' option specifies that XEmacs should be built 232 The `--with-database' option specifies that XEmacs should be built
235 with additional database support. The valid options are `no' or a 233 with additional database support. The valid options are `no' or a
236 comma-separated list of one or more of `dbm', `gnudbm' or `berkdb'. 234 comma-separated list of one or more of `dbm', `gnudbm' or `berkdb'.
237 `configure' will attempt to detect the necessary libraries and header 235 `configure' will attempt to detect the necessary libraries and header
238 files and define `--with-database' for you. 236 files and define `--with-database' for you.
239 237
240 The `--with-socks' option specifies that XEmacs should be built with 238 The `--with-socks' option specifies that XEmacs should be built with
241 SOCKS support. This requires the libsocks library. 239 SOCKS support. This requires the libsocks library.
242 240
243 The `--with-term' option specifies that XEmacs should be built with
244 TERM support. TERM is a way to multiplex serial lines over a simple
245 dialup connection, used on Linux and other systems. We cannot
246 guarantee that our TERM support coexists well with standard Internet
247 connections.
248
249 The `--with-tooltalk' option specifies that XEmacs should be built 241 The `--with-tooltalk' option specifies that XEmacs should be built
250 with ToolTalk support for interconnecting with other applications. 242 with ToolTalk support for interconnecting with other applications.
251 ToolTalk is not yet supported on all architectures. 243 ToolTalk is not yet supported on all architectures. If you use this
244 option, you should have the tooltalk package (see etc/PACKAGES)
245 installed prior to building XEmacs.
252 246
253 The `--with-sparcworks' option specifies that XEmacs should be built 247 The `--with-sparcworks' option specifies that XEmacs should be built
254 with support for Sun Sparcworks 3.0.1 and up (including Sun WorkShop). 248 with support for Sun Sparcworks 3.0.1 and up (including Sun WorkShop).
255 This functionality is only of use on SunOS 4.1.x and Solaris 2.x 249 This functionality is only of use on SunOS 4.1.x and Solaris 2.x
256 systems. 250 systems. If you use this option, you should have the Sun package (see
251 etc/PACKAGES) installed prior to building XEmacs.
257 252
258 The `--with-cde' option allows you to enable or disable CDE drag and 253 The `--with-cde' option allows you to enable or disable CDE drag and
259 drop support. `configure' will attempt to detect this option and 254 drop support. `configure' will attempt to detect this option and
260 define `--with-cde' for you. 255 define `--with-cde' for you.
261 256
270 The `--with-xmu=no' option can be used if your vendor doesn't ship 265 The `--with-xmu=no' option can be used if your vendor doesn't ship
271 the Xmu library. 266 the Xmu library.
272 267
273 The `--puresize' option can be used to change the amount of purespace 268 The `--puresize' option can be used to change the amount of purespace
274 allocated for the dumped XEmacs. As of XEmacs 20.1 usage of this 269 allocated for the dumped XEmacs. As of XEmacs 20.1 usage of this
275 parameter is deprecated and, in fact, ignored. 270 parameter is deprecated and will be ignored.
276 271
277 The `--with-sound=TYPE' option specifies that XEmacs should be built 272 The `--with-sound=TYPE' option specifies that XEmacs should be built
278 with sound support. Native (`--with-sound=native') sound support is 273 with sound support. Native (`--with-sound=native') sound support is
279 currently available only on Sun SparcStations, SGI's, HP9000s, and 274 currently available only on Sun SparcStations, SGI's, HP9000s, and
280 systems (such as Linux) with soundcard.h. Network Audio Support (NAS) 275 systems (such as Linux) with soundcard.h. Network Audio Support (NAS)
319 determining configure failures is the file `config.log', which 314 determining configure failures is the file `config.log', which
320 contains the results of the compile and link tests used by configure. 315 contains the results of the compile and link tests used by configure.
321 316
322 The `--with-mule' option enables (MUlti-Lingual Emacs) support, needed 317 The `--with-mule' option enables (MUlti-Lingual Emacs) support, needed
323 to suport non-Latin-1 (including Asian) languages. The Mule support 318 to suport non-Latin-1 (including Asian) languages. The Mule support
324 is not yet as stable or efficient as the `Latin1' support. The 319 is not yet as stable or efficient as the `Latin1' support. Enabling
325 following options require Mule support: 320 Mule support requires the mule-base package installed prior to
321 building XEmacs. The following options require Mule support:
326 322
327 The `--with-xim' option enables use of the X11 XIM mechanism to allow 323 The `--with-xim' option enables use of the X11 XIM mechanism to allow
328 an input method to input text into XEmacs. The input method is shared 324 an input method to input text into XEmacs. The input method is shared
329 among all the X applications sharing an X display and using the same 325 among all the X applications sharing an X display and using the same
330 language. The XIM support comes in two flavors: `motif' and `xlib'. 326 language. The XIM support comes in two flavors: `motif' and `xlib'.
331 The Motif support (the XmIm* functions) is preferred when available. 327 The Motif support (the XmIm* functions) is preferred when available.
332 The xlib XIM support does not work quite as well. The XIM support has 328 The xlib XIM support works reasonably well so long as the X11 libraries
333 been known to cause crashes due to bugs in X11, so it defaults to `no' 329 are recent enough. It has been fairly well tested on Linux with glibc
334 except on Solaris, where it is known to be stable. 330 2.0.5 and 2.0.6 and Kinput2 as an XIM server. In this configuration
331 X11 must be recompiled with X_LOCALE defined because glibc is lacking
332 localization for Japanese. The XIM support defaults to `no' except
333 when Motif is detected where it is stable with OSF libraries. The XIM
334 support in Lesstif (a Free Motif replacement) does not work as of
335 v0.82. If you enable this option, you will probably wish to install
336 the `locale' package which contains localized Splash screens and
337 Menubars.
338
339 The `--with-xfs' option enables use of a multilingual Menubar. At the
340 present time, only Japanese and French locales are supported. In
341 order to use a multilingual Menubar you must have the `locale' package
342 installed. The `locale' package does not have to be installed when
343 building XEmacs.
335 344
336 The `--with-canna' option enables the use of the Canna Japanese input 345 The `--with-canna' option enables the use of the Canna Japanese input
337 method. 346 method. This is stable code and fairly well tested. In order to use
338 347 it, you will have to have the Canna server installed and running.
339 The `--with-wnn' and `--with-wnn6' options are for compiling with the 348 Canna versions 3.2pl2 and 3.5b2 are known to work. Version 3.2pl2 is
340 Wnn multi-language input method. `--with-wnn' is for compiling with 349 considered most stable than version 3.5b2. If Canna is already
341 Wnn-4.2, the free version of WNN. This is beta level code. 350 installed, configure will autodetect it, so you never need to
342 `--with-wnn6' is for compiling against WNN6, the commercial version 351 explicitly use this option unless your Canna libraries are somewhere
343 of WNN. This is alpha level code and very lightly tested at present. 352 strange. Canna run time support is currently bundled with the
353 `mule-base' package so there is nothing additional to install in order
354 to use it.
355
356 The `--with-wnn' and `--with-wnn6' options are for compiling with the Wnn
357 multi-language input method. `--with-wnn' is for compiling with Wnn-4.2,
358 the Free version of WNN. `--with-wnn6' is for compiling against WNN6,
359 the commercial version of WNN available from OMRON Corporation. This is
360 stable code and fairly well tested. In order to build with this
361 option, you will need to have the `egg-its' lisp package already
362 installed.
363
364 Please note that it is safe to build with as many of the options
365 `--with-xim', `--with-canna' and `--with-wnn' as your system
366 supports.
344 367
345 `configure' doesn't do any compilation or installation itself. It 368 `configure' doesn't do any compilation or installation itself. It
346 just creates the files that influence those things: `./src/config.h', 369 just creates the files that influence those things: `./src/config.h',
347 and all the Makefile's in the build tree. 370 and all the Makefile's in the build tree.
348 371
446 469
447 `/usr/local/lib/xemacs-VERSION/CONFIGURATION-NAME' contains executable 470 `/usr/local/lib/xemacs-VERSION/CONFIGURATION-NAME' contains executable
448 programs used by XEmacs that users are not expected to 471 programs used by XEmacs that users are not expected to
449 run themselves, and the DOC file. `VERSION' is the 472 run themselves, and the DOC file. `VERSION' is the
450 number of the XEmacs version you are installing, and 473 number of the XEmacs version you are installing, and
451 `CONFIGURATION-NAME' is the argument you gave to the 474 `CONFIGURATION-NAME' is the host type of your system.
452 `configure' program to identify the architecture and 475 Since these files are specific to the version of
453 operating system of your machine, like 476 XEmacs, operating system, and architecture in use,
454 `mips-dec-ultrix' or `sparc-sun-sunos'. Since these 477 including the configuration name in the path allows
455 files are specific to the version of XEmacs, operating 478 you to have several versions of XEmacs for any mix of
456 system, and architecture in use, including the 479 machines and operating systems installed at the same
457 configuration name in the path allows you to have 480 time; this is useful for sites at which different
458 several versions of XEmacs for any mix of machines and 481 kinds of machines share the file system XEmacs is
459 operating systems installed at the same time; this is 482 installed on.
460 useful for sites at which different kinds of machines
461 share the file system XEmacs is installed on.
462 483
463 `/usr/local/lib/xemacs-VERSION/info' holds the on-line documentation 484 `/usr/local/lib/xemacs-VERSION/info' holds the on-line documentation
464 for XEmacs, known as "info files". 485 for XEmacs, known as "info files".
465 486
466 `/usr/local/man/man1' holds the man pages for the programs installed 487 `/usr/local/man/man1' holds the man pages for the programs installed
476 then you might need to make the movemail program setuid or setgid 497 then you might need to make the movemail program setuid or setgid
477 to enable it to write the lock files. We believe this is safe. 498 to enable it to write the lock files. We believe this is safe.
478 The setuid/setgid bits need not be set on any other XEmacs-related 499 The setuid/setgid bits need not be set on any other XEmacs-related
479 executables. 500 executables.
480 501
481 9) You are done! You can remove executables and object files from 502 9) You are done with the hard part! You can remove executables and
482 the build directory by typing `make clean'. To also remove the files 503 object files from the build directory by typing `make clean'. To also
483 that `configure' created (so you can compile XEmacs for a different 504 remove the files that `configure' created (so you can compile XEmacs
484 configuration), type `make distclean'. 505 for a different configuration), type `make distclean'.
485 506
507 10) You should now go to the XEmacs web page at http://www.xemacs.org/
508 and decide what additional Lisp support you wish to have.
486 509
487 MAKE VARIABLES 510 MAKE VARIABLES
488 511
489 You can change where the build process installs XEmacs and its data 512 You can change where the build process installs XEmacs and its data
490 files by specifying values for `make' variables as part of the `make' 513 files by specifying values for `make' variables as part of the `make'
529 We create the following subdirectories under `libdir': 552 We create the following subdirectories under `libdir':
530 - `xemacs-VERSION/CONFIGURATION-NAME', containing executable 553 - `xemacs-VERSION/CONFIGURATION-NAME', containing executable
531 programs used by XEmacs that users are not expected to run 554 programs used by XEmacs that users are not expected to run
532 themselves and the DOC file. 555 themselves and the DOC file.
533 `VERSION' is the number of the XEmacs version you are installing, 556 `VERSION' is the number of the XEmacs version you are installing,
534 and `CONFIGURATION-NAME' is the argument you gave to the 557 and `CONFIGURATION-NAME' is the host type of your system.
535 `configure' program to identify the architecture and operating 558 Since these files are specific to the version of XEmacs,
536 system of your machine, like `mips-dec-ultrix' or 559 operating system, and architecture in use, including the
537 `sparc-sun-sunos'. Since these files are specific to the version 560 configuration name in the path allows you to have several
538 of XEmacs, operating system, and architecture in use, including 561 versions of XEmacs for any mix of machines and operating
539 the configuration name in the path allows you to have several 562 systems installed at the same time; this is useful for sites
540 versions of XEmacs for any mix of machines and operating systems 563 at which different kinds of machines share the file system
541 installed at the same time; this is useful for sites at which 564 XEmacs is installed on.
542 different kinds of machines share the file system XEmacs is
543 installed on.
544 565
545 `infodir' indicates where to put the info files distributed with 566 `infodir' indicates where to put the info files distributed with
546 XEmacs; it defaults to `/usr/local/lib/xemacs-VERSION/info'. 567 XEmacs; it defaults to `/usr/local/lib/xemacs-VERSION/info'.
547 568
548 `mandir' indicates where to put the man pages for XEmacs and its 569 `mandir' indicates where to put the man pages for XEmacs and its