aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Antipov2012-08-08 20:17:15 +0400
committerDmitry Antipov2012-08-08 20:17:15 +0400
commitda3d210583cd7a9a22ca6a2d07cac5bbf6fca7c1 (patch)
treeadcc9e05f2b84c5f48607025c67894fb0f9f38cd
parent128a5c0d89c37958171f09558a79440bdcd564b7 (diff)
downloademacs-da3d210583cd7a9a22ca6a2d07cac5bbf6fca7c1.tar.gz
emacs-da3d210583cd7a9a22ca6a2d07cac5bbf6fca7c1.zip
Fix and document recently introduced configuration options.
* configure.ac (--disable-features): Rename to --without-all. (OPTION_DEFAULT_ON): Change to use with_features. * INSTALL: Fix description. * etc/NEWS: Mention --without-all and --enable-link-time-optimization.
-rw-r--r--ChangeLog6
-rw-r--r--INSTALL28
-rw-r--r--configure.ac12
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/NEWS6
5 files changed, 37 insertions, 19 deletions
diff --git a/ChangeLog b/ChangeLog
index b44b0a95a90..994f3f4ff3f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
12012-08-08 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * configure.ac (--disable-features): Rename to --without-all.
4 (OPTION_DEFAULT_ON): Change to use with_features.
5 * INSTALL: Fix description.
6
12012-08-07 Dmitry Antipov <dmantipov@yandex.ru> 72012-08-07 Dmitry Antipov <dmantipov@yandex.ru>
2 8
3 * configure.ac: New option --disable-features. 9 * configure.ac: New option --disable-features.
diff --git a/INSTALL b/INSTALL
index 37c35cec2ce..f0cf5d68db0 100644
--- a/INSTALL
+++ b/INSTALL
@@ -319,19 +319,21 @@ systems which support that.
319 319
320Use --without-sound to disable sound support. 320Use --without-sound to disable sound support.
321 321
322Use --disable-features if you want to build a small executable with 322Use --without-all if you want to build a small executable with the minimal
323the minimal dependencies on external libraries, at the cost 323dependencies on external libraries, at the cost of disabling most of the
324of disabling most of the features that are normally enabled by default. 324features that are normally enabled by default. Using --without-all is
325Using --disable-features is equivalent to: --without-sound --without-dbus 325equivalent to --without-sound --without-dbus --without-libotf
326--without-libotf --without-selinux --without-xft --without-gsettings 326--without-selinux --without-xft --without-gsettings --without-gnutls
327--without-gnutls --without-rsvg --without-xml2 --without-gconf 327--without-rsvg --without-xml2 --without-gconf --without-imagemagick
328--without-imagemagick --without-m17n-flt --without-jpeg --without-tiff 328--without-m17n-flt --without-jpeg --without-tiff --without-gif
329--without-gif --without-png --without-gpm. Note that --disable-features 329--without-png --without-gpm. Note that --without-all leaves X support
330leaves X support enabled, and using the GTK2 or GTK3 toolkit creates a lot 330enabled, and using the GTK2 or GTK3 toolkit creates a lot of library
331of library dependencies. So if you want to build a small executable with 331dependencies. So if you want to build a small executable with very basic
332very basic X support, use --disable-features --with-x-toolkit=no. 332X support, use --without-all --with-x-toolkit=no. For the smallest possible
333For the smallest possible executable without X, use --disable-features 333executable without X, use --without-all --without-x. If you want to build
334--without-x. 334with just a few features enabled, you can combine --without-all with
335--with-FEATURE. For example, you can use --without-all --with-dbus
336to build with DBus support and nothing more.
335 337
336Use --with-wide-int to implement Emacs values with the type 'long long', 338Use --with-wide-int to implement Emacs values with the type 'long long',
337even on hosts where a narrower type would do. With this option, on a 339even on hosts where a narrower type would do. With this option, on a
diff --git a/configure.ac b/configure.ac
index 3fbea8c80ea..51dd8a375ca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,13 +48,13 @@ archlibdir='${libexecdir}/emacs/${version}/${configuration}'
48docdir='${datadir}/emacs/${version}/etc' 48docdir='${datadir}/emacs/${version}/etc'
49gamedir='${localstatedir}/games/emacs' 49gamedir='${localstatedir}/games/emacs'
50 50
51dnl Do not omit a lot of the nice features by default. 51dnl Special option to disable the most of other options.
52AC_ARG_ENABLE(features, 52AC_ARG_WITH(all,
53[AS_HELP_STRING([--disable-features], 53[AS_HELP_STRING([--without-all],
54 [omit almost all features and build 54 [omit almost all features and build
55 small executable with minimal dependencies])], 55 small executable with minimal dependencies])],
56 enable_features=$enableval, 56 with_features=$withval,
57 enable_features=yes) 57 with_features=yes)
58 58
59dnl OPTION_DEFAULT_OFF(NAME, HELP-STRING) 59dnl OPTION_DEFAULT_OFF(NAME, HELP-STRING)
60dnl Create a new --with option that defaults to being disabled. 60dnl Create a new --with option that defaults to being disabled.
@@ -80,7 +80,7 @@ dnl non-alphanumeric characters with "_".
80dnl HELP-STRING is the help text for the option. 80dnl HELP-STRING is the help text for the option.
81AC_DEFUN([OPTION_DEFAULT_ON], [dnl 81AC_DEFUN([OPTION_DEFAULT_ON], [dnl
82 AC_ARG_WITH([$1],[AS_HELP_STRING([--without-$1],[$2])],[],[dnl 82 AC_ARG_WITH([$1],[AS_HELP_STRING([--without-$1],[$2])],[],[dnl
83 m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=$enable_features])dnl 83 m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=$with_features])dnl
84])dnl 84])dnl
85 85
86OPTION_DEFAULT_ON([pop],[don't support POP mail retrieval with movemail]) 86OPTION_DEFAULT_ON([pop],[don't support POP mail retrieval with movemail])
diff --git a/etc/ChangeLog b/etc/ChangeLog
index 3d26c9a1351..40b1e086237 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,7 @@
12012-08-08 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * NEWS: Mention --without-all and --enable-link-time-optimization.
4
12012-07-31 Jan Djärv <jan.h.d@swipnet.se> 52012-07-31 Jan Djärv <jan.h.d@swipnet.se>
2 6
3 * TODO (NS port): Add text about event loop. 7 * TODO (NS port): Add text about event loop.
diff --git a/etc/NEWS b/etc/NEWS
index e9408ff45e0..e802340608e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -23,6 +23,12 @@ so we will look at it and add it to the manual.
23 23
24* Installation Changes in Emacs 24.2 24* Installation Changes in Emacs 24.2
25 25
26** New configure option '--without-all' to disable additonal features.
27This disables most of the features that are normally enabled by default.
28
29** New configure option '--enable-link-time-optimization' to utilize
30an appropriate feature provided by GCC since version 4.5.0.
31
26** New configure option '--enable-gcc-warnings', intended for developers. 32** New configure option '--enable-gcc-warnings', intended for developers.
27If building with GCC, this enables compile-time checks that warn about 33If building with GCC, this enables compile-time checks that warn about
28possibly-questionable C code. On a recent GNU system there should be 34possibly-questionable C code. On a recent GNU system there should be