Move darwin.h's SYSTEM_PURESIZE_EXTRA setting to configure

* configure.ac (AH_BOTTOM) [DARWIN_OS]: Move SYSTEM_PURESIZE_EXTRA
setting here from src/s/darwin.h.

* src/s/darwin.h (SYSTEM_PURESIZE_EXTRA): Move to configure.
This commit is contained in:
Glenn Morris 2012-07-12 20:00:23 -04:00
parent b82da769e5
commit 4fae5a7a91
4 changed files with 11 additions and 10 deletions

View file

@ -1,5 +1,8 @@
2012-07-12 Glenn Morris <rgm@gnu.org>
* configure.ac (AH_BOTTOM) [DARWIN_OS]: Move SYSTEM_PURESIZE_EXTRA
setting here from src/s/darwin.h.
* configure.ac (NO_MATHERR): Unconditionally define for Darwin;
as src/s/darwin.h used to.

View file

@ -4029,13 +4029,14 @@ AH_BOTTOM([
# include config_opsysfile
#endif
/* GNUstep needs a bit more pure memory. Of the existing knobs,
SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems.
(There is probably a better place to do this, but right now the
Cocoa side does this in s/darwin.h and we cannot parallel this
exactly since GNUstep is multi-OS. */
#if defined HAVE_NS && defined NS_IMPL_GNUSTEP
/* Mac OS X / GNUstep need a bit more pure memory. Of the existing knobs,
SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */
#ifdef HAVE_NS
#if defined NS_IMPL_GNUSTEP
# define SYSTEM_PURESIZE_EXTRA 30000
#elif defined DARWIN_OS
# define SYSTEM_PURESIZE_EXTRA 200000
#endif
#endif
#ifdef emacs /* Don't do this for lib-src. */

View file

@ -1,5 +1,6 @@
2012-07-12 Glenn Morris <rgm@gnu.org>
* s/darwin.h (SYSTEM_PURESIZE_EXTRA): Move to configure.
* process.c (init_process_emacs): Rename from init_process.
The old name is also the name of a Mach system call.

View file

@ -35,10 +35,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#define MIN_PTY_KERNEL_VERSION '7'
/* Definitions for how to compile & link. */
#ifdef HAVE_NS
#define SYSTEM_PURESIZE_EXTRA 200000
#endif
#ifdef emacs
#define malloc unexec_malloc
#define realloc unexec_realloc