From 81eafe297773904d0a532328d27d658dde29be99 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 6 Jun 2011 21:16:37 -0700 Subject: [PATCH] [ChangeLog] * configure.in: Add --with-wide-int. * INSTALL: Mention this. [etc/ChangeLog] * NEWS: Mention new configure option --with-wide-int. --- ChangeLog | 5 +++++ INSTALL | 4 ++++ configure.in | 5 +++++ etc/ChangeLog | 4 ++++ etc/NEWS | 3 +++ 5 files changed, 21 insertions(+) diff --git a/ChangeLog b/ChangeLog index 020991e4677..55d89f537f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-06-07 Paul Eggert + + * configure.in: Add --with-wide-int. + * INSTALL: Mention this. + 2011-06-06 Paul Eggert Merge from gnulib. diff --git a/INSTALL b/INSTALL index 0c69b522785..03682d19b10 100644 --- a/INSTALL +++ b/INSTALL @@ -309,6 +309,10 @@ systems which support that. Use --without-sound to disable sound support. +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. + The `--prefix=PREFIXDIR' option specifies where the installation process should put emacs and its data files. This defaults to `/usr/local'. - Emacs (and the other utilities users run) go in PREFIXDIR/bin diff --git a/configure.in b/configure.in index 06880ea154b..3d507789f22 100644 --- a/configure.in +++ b/configure.in @@ -144,6 +144,11 @@ this option's value should be `yes', `no', `lucid', `athena', `motif', `gtk' or with_x_toolkit=$val ]) +OPTION_DEFAULT_OFF([wide-int], [prefer wide Emacs integers (typically 62-bit)]) +if test "$with_wide_int" = yes; then + AC_DEFINE([WIDE_EMACS_INT], 1, [Use long long for EMACS_INT if available.]) +fi + dnl _ON results in a '--without' option in the --help output, so dnl the help text should refer to "don't compile", etc. OPTION_DEFAULT_ON([xpm],[don't compile with XPM image support]) diff --git a/etc/ChangeLog b/etc/ChangeLog index 4586628e296..0dba10468f1 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog @@ -1,3 +1,7 @@ +2011-06-07 Paul Eggert + + * NEWS: Mention new configure option --with-wide-int. + 2011-05-24 Leo Liu * NEWS: Mention the new primitive sha1 and the removal of sha1.el. diff --git a/etc/NEWS b/etc/NEWS index e657b791505..4a56915798c 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -47,6 +47,9 @@ also depend on Gtk+. You can disable them with --without-rsvg and This is only useful for Emacs developers to debug certain types of bugs. This is not a new feature; only the configure flag is new. +** There is a new configure option --with-wide-int. +With it, Emacs integers typically have 62 bits, even on 32-bit machines. + --- ** New translation of the Emacs Tutorial in Hebrew is available. Type `C-u C-h t' to choose it in case your language setup doesn't -- 2.39.2