NOTE: This patch has been committed.
2005-10-13 Ben Wing <ben(a)xemacs.org>
* configure.ac (XE_COMPLEX_ARG_ENABLE):
* configure.ac (TAB):
Rewrite optimization help to be accurate. Setting
`--with-cflags-optimization=""' will now unilaterally turn off
optimization; setting it to something non-null unilaterally turns it
build source patch:
Diff command: bash -ci "cvs-diff --show-c-function -no-changelog "
Files affected: configure.ac
RCS file: /pack/xemacscvs/XEmacs/xemacs/configure.ac,v
retrieving revision 1.13
diff -u -p -r1.13 configure.ac
--- configure.ac 2005/09/19 00:36:02 1.13
+++ configure.ac 2005/10/14 00:55:42
＠＠ -757,16 +757,16 ＠＠ AC_ARG_WITH([compiler],
- AC_HELP_STRING([--with-xemacs-compiler],[compiler to use to compile just the xemacs
executable and C modules.
+ [compiler to use to compile just the xemacs executable and C modules.
If you want to compile XEmacs as C++, use e.g.
`--with-xemacs-compiler=g++'. This turns on a lot of
- AC_HELP_STRING([--with-cflags],[Compiler flags (such as -O); setting this overrides
- all default compiler flags except those that control
+ [Compiler flags. These flags will be placed after any flags inserted for warnings,
debugging or optimization; setting this does not disable the insertion of those flags.
Use configure settings such as `--with-optimization=no' or `enable-debug=no' to
turn them off, or override them with `--with-cflags-optimization',
`--with-cflags-debugging', or `with-cflags-warning'.]),
＠＠ -777,7 +777,7 ＠＠ AC_ARG_WITH([cflags-warning],
- [Override compiler flags used to control optimization. Only has an effect when
optimization is enabled. Normally, don't set this, as XEmacs will already set the
maximum safe optimization flags appropriate for the compiler being invoked.]),
+ [Override compiler flags used to control optimization. If blank, forces no
optimization; if non-blank, forces optimization. Normally, don't set this; XEmacs
automatically sets the maximum safe optimization flags appropriate for the compiler being
invoked. If you just want to turn optimization on or off, use `with-optimization'
＠＠ -2074,7 +2074,15 ＠＠ dnl Calculate optimization flags. These
dnl versions and on in release versions.
if test -z "$with_optimization"; then
- if test -z "$emacs_is_beta" -o "$cflags_optimization_specified" =
+ # If user set --with-cflags-optimization, use it to unilaterally
+ # determine whether optimization should be enabled.
+ if test "$cflags_optimization_specified" = "yes" ; then
+ if -z "$with_cflags_optimization" ; then
+ elif test -z "$emacs_is_beta" ; then
Show replies by date