[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r109483: * configure.ac: New option -
From: |
Dmitry Antipov |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r109483: * configure.ac: New option --disable-features. |
Date: |
Tue, 07 Aug 2012 08:16:47 +0400 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 109483
committer: Dmitry Antipov <address@hidden>
branch nick: trunk
timestamp: Tue 2012-08-07 08:16:47 +0400
message:
* configure.ac: New option --disable-features.
(OPTION_DEFAULT_ON): Change to use enable_features.
* INSTALL: Explain --disable-features.
modified:
ChangeLog
INSTALL
configure.ac
=== modified file 'ChangeLog'
--- a/ChangeLog 2012-08-07 01:03:44 +0000
+++ b/ChangeLog 2012-08-07 04:16:47 +0000
@@ -1,3 +1,9 @@
+2012-08-07 Dmitry Antipov <address@hidden>
+
+ * configure.ac: New option --disable-features.
+ (OPTION_DEFAULT_ON): Change to use enable_features.
+ * INSTALL: Explain --disable-features.
+
2012-08-07 Glenn Morris <address@hidden>
* configure.ac: Require automake 1.11 (fairly arbitrarily).
=== modified file 'INSTALL'
--- a/INSTALL 2012-08-06 21:05:25 +0000
+++ b/INSTALL 2012-08-07 04:16:47 +0000
@@ -319,6 +319,20 @@
Use --without-sound to disable sound support.
+Use --disable-features if you want to build small executable with
+the minimal dependencies from an external libraries, at the cost
+of disabling most of the features which are enabled by default.
+Using --disable-features is equivalent to --without-sound --without-dbus
+--without-libotf --without-selinux --without-xft --without-gsettings
+--without-gnutls --without-rsvg --without-xml2 --without-gconf
+--without-imagemagick --without-m17n-flt --without-jpeg --without-tiff
+--without-gif --without-png --without-gpm. Note that --disable-features
+leaves X support enabled, and using GTK2 or GTK3 toolkit creates a lot
+of library dependencies. So if you want to build small executable with
+the very basic X support, use --disable-features --with-x-toolkit=no.
+For the smallest possible executable without X, use --disable-features
+--without-x.
+
Use --with-wide-int to implement Emacs values with the type 'long long',
even on hosts where a narrower type would do. With this option, on a
typical 32-bit host, Emacs integers have 62 bits instead of 30.
=== modified file 'configure.ac'
--- a/configure.ac 2012-08-07 01:03:44 +0000
+++ b/configure.ac 2012-08-07 04:16:47 +0000
@@ -48,6 +48,14 @@
docdir='${datadir}/emacs/${version}/etc'
gamedir='${localstatedir}/games/emacs'
+dnl Do not omit a lot of the nice features by default.
+AC_ARG_ENABLE(features,
+[AS_HELP_STRING([--disable-features],
+ [omit almost all features and build
+ small executable with minimal dependencies])],
+ enable_features=$enableval,
+ enable_features=yes)
+
dnl OPTION_DEFAULT_OFF(NAME, HELP-STRING)
dnl Create a new --with option that defaults to being disabled.
dnl NAME is the base name of the option. The shell variable with_NAME
@@ -63,8 +71,8 @@
])dnl
dnl OPTION_DEFAULT_ON(NAME, HELP-STRING)
-dnl Create a new --with option that defaults to being enabled. NAME
-dnl is the base name of the option. The shell variable with_NAME
+dnl Create a new --with option that defaults to $enable_features.
+dnl NAME is the base name of the option. The shell variable with_NAME
dnl will be set either to 'no' (for a plain --without-NAME) or to
dnl 'yes' (if the option is not specified). Note that the shell
dnl variable name is constructed as autoconf does, by replacing
@@ -72,7 +80,7 @@
dnl HELP-STRING is the help text for the option.
AC_DEFUN([OPTION_DEFAULT_ON], [dnl
AC_ARG_WITH([$1],[AS_HELP_STRING([--without-$1],[$2])],[],[dnl
- m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=yes])dnl
+ m4_bpatsubst([with_$1], [[^0-9a-z]], [_])=$enable_features])dnl
])dnl
OPTION_DEFAULT_ON([pop],[don't support POP mail retrieval with movemail])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r109483: * configure.ac: New option --disable-features.,
Dmitry Antipov <=