diff options
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | INSTALL | 28 | ||||
| -rw-r--r-- | configure.ac | 12 | ||||
| -rw-r--r-- | etc/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/NEWS | 6 |
5 files changed, 37 insertions, 19 deletions
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-08-07 Dmitry Antipov <dmantipov@yandex.ru> | 7 | 2012-08-07 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 8 | ||
| 3 | * configure.ac: New option --disable-features. | 9 | * configure.ac: New option --disable-features. |
| @@ -319,19 +319,21 @@ systems which support that. | |||
| 319 | 319 | ||
| 320 | Use --without-sound to disable sound support. | 320 | Use --without-sound to disable sound support. |
| 321 | 321 | ||
| 322 | Use --disable-features if you want to build a small executable with | 322 | Use --without-all if you want to build a small executable with the minimal |
| 323 | the minimal dependencies on external libraries, at the cost | 323 | dependencies on external libraries, at the cost of disabling most of the |
| 324 | of disabling most of the features that are normally enabled by default. | 324 | features that are normally enabled by default. Using --without-all is |
| 325 | Using --disable-features is equivalent to: --without-sound --without-dbus | 325 | equivalent 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 |
| 330 | leaves X support enabled, and using the GTK2 or GTK3 toolkit creates a lot | 330 | enabled, and using the GTK2 or GTK3 toolkit creates a lot of library |
| 331 | of library dependencies. So if you want to build a small executable with | 331 | dependencies. So if you want to build a small executable with very basic |
| 332 | very basic X support, use --disable-features --with-x-toolkit=no. | 332 | X support, use --without-all --with-x-toolkit=no. For the smallest possible |
| 333 | For the smallest possible executable without X, use --disable-features | 333 | executable without X, use --without-all --without-x. If you want to build |
| 334 | --without-x. | 334 | with just a few features enabled, you can combine --without-all with |
| 335 | --with-FEATURE. For example, you can use --without-all --with-dbus | ||
| 336 | to build with DBus support and nothing more. | ||
| 335 | 337 | ||
| 336 | Use --with-wide-int to implement Emacs values with the type 'long long', | 338 | Use --with-wide-int to implement Emacs values with the type 'long long', |
| 337 | even on hosts where a narrower type would do. With this option, on a | 339 | even 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}' | |||
| 48 | docdir='${datadir}/emacs/${version}/etc' | 48 | docdir='${datadir}/emacs/${version}/etc' |
| 49 | gamedir='${localstatedir}/games/emacs' | 49 | gamedir='${localstatedir}/games/emacs' |
| 50 | 50 | ||
| 51 | dnl Do not omit a lot of the nice features by default. | 51 | dnl Special option to disable the most of other options. |
| 52 | AC_ARG_ENABLE(features, | 52 | AC_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 | ||
| 59 | dnl OPTION_DEFAULT_OFF(NAME, HELP-STRING) | 59 | dnl OPTION_DEFAULT_OFF(NAME, HELP-STRING) |
| 60 | dnl Create a new --with option that defaults to being disabled. | 60 | dnl Create a new --with option that defaults to being disabled. |
| @@ -80,7 +80,7 @@ dnl non-alphanumeric characters with "_". | |||
| 80 | dnl HELP-STRING is the help text for the option. | 80 | dnl HELP-STRING is the help text for the option. |
| 81 | AC_DEFUN([OPTION_DEFAULT_ON], [dnl | 81 | AC_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 | ||
| 86 | OPTION_DEFAULT_ON([pop],[don't support POP mail retrieval with movemail]) | 86 | OPTION_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 @@ | |||
| 1 | 2012-08-08 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * NEWS: Mention --without-all and --enable-link-time-optimization. | ||
| 4 | |||
| 1 | 2012-07-31 Jan Djärv <jan.h.d@swipnet.se> | 5 | 2012-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. |
| @@ -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. | ||
| 27 | This disables most of the features that are normally enabled by default. | ||
| 28 | |||
| 29 | ** New configure option '--enable-link-time-optimization' to utilize | ||
| 30 | an 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. |
| 27 | If building with GCC, this enables compile-time checks that warn about | 33 | If building with GCC, this enables compile-time checks that warn about |
| 28 | possibly-questionable C code. On a recent GNU system there should be | 34 | possibly-questionable C code. On a recent GNU system there should be |