User: malcolmp
Date: 05/03/10 12:49:01
Modified: xemacs ChangeLog INSTALL PROBLEMS
Log:
Autoconf 2.5 documentation updates.
Revision Changes Path
1.441 +6 -0 XEmacs/xemacs/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/ChangeLog,v
retrieving revision 1.440
retrieving revision 1.441
diff -u -r1.440 -r1.441
--- ChangeLog 2005/03/02 17:55:25 1.440
+++ ChangeLog 2005/03/10 11:49:00 1.441
@@ -1,3 +1,9 @@
+2005-03-06 Malcolm Purvis <malcolmp(a)xemacs.org>
+
+ * INSTALL:
+ * PROBLEMS: Change configure arguments to the new autoconf 2.5
+ style configure.
+
2005-03-01 Aidan Kehoe <kehoea(a)parhasard.net>
* configure: Regenerated.
1.43 +94 -86 XEmacs/xemacs/INSTALL
Index: INSTALL
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/INSTALL,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- INSTALL 2004/12/07 12:52:31 1.42
+++ INSTALL 2005/03/10 11:49:00 1.43
@@ -36,7 +36,7 @@
Verify that your users have a high enough stack limit. On some systems
such as OpenBSD and OSF/Tru64 the default is 2MB which is too low. On
-MacOS/X (Darwin), it's 512kB. See 'PROBLEMS' for details.
+MacOS/X (Darwin) before 10.3, it's 512kB. See 'PROBLEMS' for details.
Building XEmacs requires about 100 Mb of disk space (including the
XEmacs sources). Once installed, XEmacs occupies between 20 and 100
@@ -93,19 +93,19 @@
each library does is available in the file
<
ftp://ftp.xemacs.org/pub/xemacs/aux/00README.txt>.
-Use the `--site-includes' and `--site-libraries' options when building
-XEmacs to allow configure to find the external software packages. For
-your convenience these can be set together by using the
-`--with-site-prefix' option. This will set these variables as needed
+Use the `--with-site-includes' and `--with-site-libraries' options when
+building XEmacs to allow configure to find the external software
+packages. For your convenience these can be set together by using the
+`--with-site-prefixes' option. This will set these variables as needed
assuming your libraries are organised as a typical /usr tree.
If you link dynamically with external libraries, usually denoted by
-".so" (Unix), ".dll" (Windows), or ".dylib" (MacOS) file
extensions,
-on some systems you may also need to add the library directories to
-the `--site-runtime-libraries' option. It is typically necessary only
+".so" (Unix), ".dll" (Windows), or ".dylib" (MacOS) file
extensions, on
+some systems you may also need to add the library directories to the
+`--with-site-runtime-libraries' option. It is typically necessary only
if you link with dynamic libraries that are installed in non-standard
-directories, or if you expect some of the libraries used to build
-XEmacs to be in a different directory at run time than at build time.
+directories, or if you expect some of the libraries used to build XEmacs
+to be in a different directory at run time than at build time.
NOTE: This option has unusual semantics. ONLY libraries found in the
directories specified in this option will be used at runtime. This
@@ -113,13 +113,13 @@
this option (perhaps excluding a very small number of standard system
library paths).
-Directories specified with `--site-libraries' are NOT automatically
-added. The rationale is that most users will not need this option,
-and this allows the builder to specify exactly the needed directories.
-Specifying unnecessary directories leads to obscure problems
-(typically startup delays) if those directories are mounted over a
-network, and the automounter configuration changes. Not all systems
-need this option; it's best to avoid using it if you can.
+Directories specified with `--with-site-libraries' are NOT automatically
+added. The rationale is that most users will not need this option, and
+this allows the builder to specify exactly the needed directories.
+Specifying unnecessary directories leads to obscure problems (typically
+startup delays) if those directories are mounted over a network, and the
+automounter configuration changes. Not all systems need this option;
+it's best to avoid using it if you can.
Dynamic linking has pros and cons. Dynamically linking 3rd party
libraries to XEmacs decreases the size of the binary, and means you
@@ -155,14 +155,14 @@
Specifying Location of Headers and Libraries
--------------------------------------------
-The `--site-includes=DIR' and `--site-libraries=DIR' options allow you
-to specify additional places the compiler should look for include
-files and object libraries. You may specify multiple DIR's by
+The `--with-site-includes=DIR' and `--with-site-libraries=DIR' options
+allow you to specify additional places the compiler should look for
+include files and object libraries. You may specify multiple DIR's by
enclosing the list in quotes. All the external libraries you want to
use with XEmacs (e.g. xpm, wnn, ...) described later should have their
include and library directories defined using these options.
-The `--site-runtime-libraries=DIR' option specifies directories to
+The `--with-site-runtime-libraries=DIR' option specifies directories to
search for shared libraries at run time. If you use this option, you
must specify ALL of the directories containing shared libraries at run
time, including system directories. Please read the information about
@@ -177,31 +177,42 @@
Configuring the Build Process
-----------------------------
-The `--with-gcc=PROGRAM' option specifies that the build process
-should compile XEmacs using GCC. The `--compiler' option allows you
-to specify some other compiler to be used to compile XEmacs. If
-neither option is specified, the environment variable CC is used
-instead. Otherwise the compiler will then default to 'cc'.
-
-The `--xemacs-compiler=PROGRAM' option specifies the compiler control
-program for the xemacs binary only. Other C code will be compiled
-according to the `--with-gcc' and `--compiler' options above. This is
-useful if you wish to compile XEmacs with a C++ compiler, because the
-utilities in ./lib-src cannot be compiled as C++. This option is
-primarily intended for use by the maintainers.
-
-The `--cflags=FLAGS' option specifies all of the CFLAGS the build process
-should use when compiling XEmacs, except for flags controlling warning
-generation. Otherwise the value of the environment variable CFLAGS is
-consulted. If that is also undefined, CFLAGS defaults to "-g -O" for
-gcc and "-g" for all other compilers.
+The `--with-gcc=PROGRAM' option specifies that the build process should
+compile XEmacs using GCC. The `--with-compiler' option allows you to
+specify some other compiler to be used to compile XEmacs. If neither
+option is specified, the environment variable CC is used instead.
+Otherwise the compiler will then default to 'cc'.
+
+The `--with-xemacs-compiler=PROGRAM' option specifies the compiler
+control program for the xemacs binary only. Other C code will be
+compiled according to the `--with-gcc' and `--with-compiler' options
+above. This is useful if you wish to compile XEmacs with a C++
+compiler, because the utilities in ./lib-src cannot be compiled as C++.
+This option is primarily intended for use by the maintainers.
+
+The `--with-cflags=FLAGS' option specifies all of the CFLAGS the build
+process should use when compiling XEmacs, except for flags controlling
+warning generation. Otherwise the value of the environment variable
+CFLAGS is consulted. If that is also undefined, CFLAGS defaults to "-g
+-O" for gcc and "-g" for all other compilers.
-The `--cflags_warning=FLAGS' option specifies the warnings to be
+The `--with-cflags-warning=FLAGS' option specifies the warnings to be
generated. There is normally no reason to use this flag, as XEmacs
turns on as many warnings as possible, and is still expected to build
with no, or at most a few warnings.
-The `--dynamic' option specifies that configure should try to link
+The `--with-cflags-optimization=FLAGS' option specifies the
+optimizations to be used. There is normally no reason to use this flag,
+as XEmacs will already set the maximum safe
+optimization flags appropriate for the compiler being invoked.
+
+The `--with-cflags-debugging=FLAGS' option specifies debugging
+information to be generated. There is normally no reason to use this
+flag, as XEmacs will include debugging information whenever possible
+(i.e. unless optimization is turned on and the compiler does not permit
+debugging and optimization simultaneously).
+
+The `--with-dynamic' option specifies that configure should try to link
emacs dynamically rather than statically.
You can build XEmacs for several different machine types from a single
@@ -257,28 +268,27 @@
The `--without-xmu' option can be used if your vendor doesn't ship
the Xmu library.
-The `--with-menubars=TYPE' option allows you to specify which X
+The `--enable-menubars=TYPE' option allows you to specify which X
toolkit you wish to use for the menubar. The valid options are
`lucid', `motif' and `no'. The default is `lucid' which is a
Motif-lookalike menubar. We highly recommend its usage over the real
Motif menubar. (In fact, the Motif menubar is currently broken.) If
`no' is specified then support for menubars will not be compiled in.
-The `--with-scrollbars=TYPE' option allows you to specify which X
+The `--enable-scrollbars=TYPE' option allows you to specify which X
toolkit you wish to use for the scrollbars. The valid options are
`lucid', `motif', `athena', `athena3d', and `no'. The default is
-`lucid' which is a Motif-lookalike scrollbar. If `no' is specified
-then support for scrollbars will not be compiled in.
+`lucid' which is a Motif-lookalike scrollbar. If `no' is specified then
+support for scrollbars will not be compiled in.
-The `--with-dialogs=TYPE' option allows you to specify which X toolkit
+The `--enable-dialogs=TYPE' option allows you to specify which X toolkit
you wish to use for the dialog boxes. The valid options are `athena',
`athena3d', `motif, and `no. The `lucid' option is accepted and will
result in the `athena' toolkit being used. If the Motif toolkit can be
found the default is `motif'. Otherwise, the default is `athena'. If
-`no' is specified then support for dialog boxes will not be compiled
-in.
+`no' is specified then support for dialog boxes will not be compiled in.
-The `--with-toolbars' option allows you to enable or disable toolbar
+The `--enable-toolbars' option allows you to enable or disable toolbar
support. The default is `yes' if support for a windowing system is
included.
@@ -290,11 +300,11 @@
X-Faces. `configure' will attempt to detect if you have the compface
library and define `--with-xface' for you.
-The `--with-database' option specifies that XEmacs should be built
+The `--enable-database' option specifies that XEmacs should be built
with simple database support. The valid options are `no' or a
comma-separated list of one or more of `dbm', `gnudbm' or `berkdb'.
`configure' will attempt to detect the necessary libraries and header
-files and define `--with-database' for you.
+files and define `--enable-database' for you.
The `--with-postgresql' option specifies that XEmacs should be built
with PostgreSQL support, linking with libpq. `configure' will attempt
@@ -309,23 +319,23 @@
The `--with-socks' option specifies that XEmacs should be built with
SOCKS support. This requires the libsocks library.
-The `--external-widget' option specifies that XEmacs should be built
-with support for being used as a widget by other X11 applications.
+The `--enable-external-widget' option specifies that XEmacs should be
+built with support for being used as a widget by other X11 applications.
This functionality should be considered beta.
-The `--with-sound=TYPE' option specifies that XEmacs should be built
-with sound support. Native (`--with-sound=native') sound support is
+The `--enable-sound=TYPE' option specifies that XEmacs should be built
+with sound support. Native (`--enable-sound=native') sound support is
currently available only on Sun SparcStations, SGI's, HP9000s, and
systems (such as Linux) with soundcard.h. Network Audio Support (NAS)
-(`--with-sound=nas' or `--with-sound=both') is an extension to X that
-you may or may not have for your system. For NAS, you will probably
-need to provide the paths to the nas include and library directories
-to configure. If `--with-sound' is not specified, `configure' will
-attempt to determine if your configuration supports native sound and
-define --with-sound for you. If your native sound library is not in a
-standard location you can specify it with the `--native-sound-lib=LIB'
-flag. For Linux, `/dev/audio' is required for SunAudio files and
-`/dev/dsp' is required for raw data and WAVE format files.
+(`--enable-sound=nas') is an extension to X that you may or may not have
+for your system. For NAS, you will probably need to provide the paths
+to the nas include and library directories to configure. If
+`--enable-sound' is not specified, `configure' will attempt to determine
+if your configuration supports native sound and define --enable-sound
+for you. If your native sound library is not in a standard location you
+can specify it with the `--with-native-sound-lib=LIB' flag. For Linux,
+`/dev/audio' is required for SunAudio files and `/dev/dsp' is required
+for raw data and WAVE format files.
The `--with-tooltalk' option specifies that XEmacs should be built
with ToolTalk support for interconnecting with other applications.
@@ -351,7 +361,7 @@
Internationalization Options
----------------------------
-The `--with-mule' option enables MUlti-Lingual Emacs (Mule) support,
+The `--enable-mule' option enables MUlti-Lingual Emacs (Mule) support,
needed to support non-Latin-1 (including Asian) languages. Mule
support is required for Asian language and Unicode (multibyte and wide
character) support. With the advent of the Euro and European
@@ -409,14 +419,14 @@
Options for Developers and Special Requirements
-----------------------------------------------
-The `--rel-alloc' option can be used to either enable or disable use
-of the relocating allocator. Turning on --rel-alloc will allow XEmacs
-to return unused memory to the operating system, thereby reducing its
-memory footprint. However, it may make XEmacs runs more slowly,
+The `--with-rel-alloc' option can be used to either enable or disable
+use of the relocating allocator. Turning on --with-rel-alloc will allow
+XEmacs to return unused memory to the operating system, thereby reducing
+its memory footprint. However, it may make XEmacs runs more slowly,
especially if your system's `mmap' implementation is missing or
-inefficient. Generally, it's best to go with the default
-configuration for your system. You can tweak this based on how you
-use XEmacs, and the memory and cpu resources available on your system.
+inefficient. Generally, it's best to go with the default configuration
+for your system. You can tweak this based on how you use XEmacs, and
+the memory and cpu resources available on your system.
The `--with-system-malloc' option can be used to either enable or
disable use of the system malloc. Generally, it's best to go with the
@@ -427,18 +437,16 @@
debugging version of malloc. Debug Malloc is not included with XEmacs
and is intended for use only by the developers. It may be obtained
from <
URL:http://www.letters.com/dmalloc/>.
+
+The `--enable-debug' and `--enable-error-checking' options are primarily
+useful to the developers. `--enable-debug' incorporates code for
+performing various tests, but does not impose a speed penalty.
+`--enable-error-checking' adds additional tests to many of the commonly
+used macros, and imposes a speed penalty. Using either or both of these
+options can make bug reports more useful to the developers.
-The `--debug' and `--error-checking' options are primarily useful to
-the developers. `--debug' incorporates code for performing various
-tests, but does not impose a speed penalty. `--error-checking' adds
-additional tests to many of the commonly used macros, and imposes a
-speed penalty. Using either or both of these options can make bug
-reports more useful to the developers.
-
-The `--verbose' and `--extra-verbose' options are useful only to the
-developers. `--verbose' causes the results of all configure tests to
-be displayed. `--extra-verbose' displays additional information,
-useful for debugging `configure'.
+The `--verbose' option is useful only to the developers. It displays
+additional information, useful for debugging `configure'.
MAIL LOCKING
============
@@ -450,9 +458,9 @@
utilities on your system, or you WILL lose mail.
Presently, XEmacs supports lockf, flock, and dot locking. Specify the
-locking method via the --mail-locking=METHOD option to configure.
-Valid values for METHOD are --mail-locking are `lockf', `flock', and
-`dot'.
+locking method via the --with-mail-locking=METHOD option to configure.
+Valid values for METHOD are --with-mail-locking are `lockf', `flock',
+and `dot'.
RUNNING CONFIGURE
=================
1.70 +35 -30 XEmacs/xemacs/PROBLEMS
Index: PROBLEMS
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/PROBLEMS,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- PROBLEMS 2005/01/31 20:01:49 1.69
+++ PROBLEMS 2005/03/10 11:49:00 1.70
@@ -47,7 +47,7 @@
*** How do I configure to get the buffer tabs/progress bars?
These features depend on support for "native widgets". Use the
---with-widgets option to configure. Configuration of widgets is
+--enable-widgets option to configure. Configuration of widgets is
automatic for "modern" toolkits (MS Windows, GTK, and Motif), but if
you are using Xt and the Athena widgets, you will probably want to
specify a "3d" widget set. See configure --usage, and don't forget to
@@ -278,7 +278,7 @@
Larry Auton <lda(a)control.att.com> writes:
Beware of not specifying
- --with-dialogs=athena
+ --enable-dialogs=athena
if it builds with the motif dialogs [boom!] you're a dead man.
@@ -301,7 +301,7 @@
defined in string.h - basically anything the compiler knows how to
inline.)
-*** On AIX 4.3, you must specify --with-dialogs=athena with configure
+*** On AIX 4.3, you must specify --enable-dialogs=athena with configure
*** The libXt shipped with AIX 4.3 up to 4.3.2 is broken. This causes
xemacs -nw to fail in various ways. The official APAR is this:
@@ -369,7 +369,7 @@
are caused by using GNU ld. There are several workarounds available:
In XEmacs 21.2 or later, configure using the new portable dumper
-(--pdump).
+(--enable-pdump).
Alternatively, you can link using the Sun version of ld, which is
normally held in /usr/ccs/bin. This can be done by one of:
@@ -536,9 +536,9 @@
passes the result to something that things foo_struct is a bit bigger,
trashing memory....
-Here's typical crash backtrace. With --pdump, this occurs usually at
-startup under X windows and xemacs -nw at least starts, while without
---pdump a similar crash is observed during build.
+Here's typical crash backtrace. With --enable-pdump, this occurs
+usually at startup under X windows and xemacs -nw at least starts, while
+without --pdump a similar crash is observed during build.
#0 0x0fa460b8 in kill () at regcomp.c:637
637 regcomp.c: No such file or directory.
@@ -559,7 +559,7 @@
The MIPSpro Compiler (at least version 7.2.1) can't seem to handle the
union type properly, and fails to compile src/glyphs.c. To avoid this
-problem, always build ---use-union-type=no (but that's the default, so
+problem, always build --enable-union-type=no (but that's the default, so
you should only see this problem if you're an XEmacs maintainer).
*** Linking with -rpath on IRIX.
@@ -569,9 +569,9 @@
1. The ld in IRIX 5.3 ignores all but the last -rpath
spec, so the patched configure spits out a warning
- if --x-libraries or --site-runtime-libraries are
+ if --x-libraries or --with-site-runtime-libraries are
specified under irix 5.x, and it only adds -rpath
- entries for the --site-runtime-libraries. This bug was
+ entries for the --with-site-runtime-libraries. This bug was
fixed sometime between 5.3 and 6.2.
2. IRIX gcc 2.7.2 doesn't accept -rpath directly, so
@@ -580,8 +580,8 @@
${CC-cc} $CFLAGS $LDFLAGS ...
rather than quoting $LDFLAGS with prefix-args, like
src/Makefile does. So if you specify --x-libraries
- or --site-runtime-libraries, you must use --use-gcc=no,
- or configure will fail.
+ or --with-site-runtime-libraries, you must use
+ --with--gcc=no, or configure will fail.
*** On Irix 6.3, the SGI ld quits with segmentation fault when linking temacs
@@ -686,16 +686,18 @@
configuration for COFF with:
/path_to_xemacs_source/configure --with-gcc=no \
- --site-includes=/usr/local/include --site-libraries=/usr/local/lib \
- --with-xpm --with-xface --with-sound=nas
+ --with-site-includes=/usr/local/include \
+ --with-site-libraries=/usr/local/lib \
+ --with-xpm --with-xface --enable-sound=nas
This version now supports ELF builds. I highly recommend this to
reduce the in-core footprint of XEmacs. This is now how I compile
all my test releases. Build it like this:
/path_to_XEmacs_source/configure --with-gcc=no \
- --site-includes=/usr/local/include --site-libraries=/usr/local/lib \
- --with-xpm --with-xface --with-sound=nas --dynamic
+ --with-site-includes=/usr/local/include
+ --with-site-libraries=/usr/local/lib \
+ --with-xpm --with-xface --enable-sound=nas --with-dynamic
The compiler known as icc [ supplied with the OpenServer 5 Development
System ] generates a working binary, but it takes forever to generate
@@ -706,8 +708,10 @@
The way I handle the build procedure is:
/path_to_XEmacs_source/configure --with-gcc=no \
- --site-includes=/usr/local/include --site-libraries=/usr/local/lib \
- --with-xpm --with-xface --with-sound=nas --dynamic --compiler="icc"
+ --with-site-includes=/usr/local/include \
+ --with-site-libraries=/usr/local/lib \
+ --with-xpm --with-xface --enable-sound=nas --with-dynamic \
+ --with-compiler="icc"
NOTE I have the xpm, xface, and audio libraries and includes in
/usr/local/lib, /usr/local/include. If you don't have these,
@@ -1361,8 +1365,8 @@
undefined symbols.
The only known case in which this happens is if you are using gcc, you
-configured with --error-checking=all and --with-modules, and you
-compiled with no optimization. If you encounter this problem in any
+configured with --enable-error-checking=all and --enable-modules, and
+you compiled with no optimization. If you encounter this problem in any
other situation, please inform xemacs-beta(a)xemacs.org.
This problem stems from a gcc bug. With no optimization, functions
@@ -1601,18 +1605,19 @@
make-frame(nil #<x-device on ":0.0" 0x2558>)
-somewhere near the top. The problem is due to an improvement in GNU
-ld that sorts the ELF reloc sections in the executable, giving
-dramatic speedups in startup for large executables. It also confuses
-the traditional unexec code in XEmacs, leading to the core dump. The
-solution is to use the --pdump or --ldflags='-z nocombreloc' options
-to configure. Recent 21.4 and 12.5 autodetect this in configure.
+somewhere near the top. The problem is due to an improvement in GNU ld
+that sorts the ELF reloc sections in the executable, giving dramatic
+speedups in startup for large executables. It also confuses the
+traditional unexec code in XEmacs, leading to the core dump. The
+solution is to use the --enable-pdump or --with-ldflags='-z nocombreloc'
+options to configure. Recent 21.4 and 12.5 autodetect this in
+configure.
Red Hat and SuSE (at least) distributed a prerelease version of ld
(versions around 2.11.90.x.y) where autodetection is impossible. The
recommended procedure is to upgrade to binutils >= 2.12 and rerun
-configure. Otherwise you must apply the flags by hand. --pdump is
-recommended.
+configure. Otherwise you must apply the flags by hand. --enable-pdump
+is recommended.
*** I want XEmacs to use the Alt key, not the XXX key, for Meta commands
@@ -1774,8 +1779,8 @@
SGI ships a really old Xpm library in /usr/lib which does not work at
all well with XEmacs. The solution is to install your own copy of the
-latest version of Xpm somewhere and then use the --site-includes and
---site-libraries flags to tell configure where to find it.
+latest version of Xpm somewhere and then use the --with-site-includes
+and --with-site-libraries flags to tell configure where to find it.
*** Trouble using ptys on IRIX, or running out of ptys.