diff options
| author | Glenn Morris | 2012-07-12 20:00:23 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-07-12 20:00:23 -0400 |
| commit | 4fae5a7a911b82e4d1c49810650fb6b488cb5a9e (patch) | |
| tree | 5f6ff2e913939dae99951032a007cf50917d0f33 | |
| parent | b82da769e5bd9aab6ee2102d4c98ed7e1c6541bb (diff) | |
| download | emacs-4fae5a7a911b82e4d1c49810650fb6b488cb5a9e.tar.gz emacs-4fae5a7a911b82e4d1c49810650fb6b488cb5a9e.zip | |
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.
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | configure.ac | 13 | ||||
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/s/darwin.h | 4 |
4 files changed, 11 insertions, 10 deletions
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-07-12 Glenn Morris <rgm@gnu.org> | 1 | 2012-07-12 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * configure.ac (AH_BOTTOM) [DARWIN_OS]: Move SYSTEM_PURESIZE_EXTRA | ||
| 4 | setting here from src/s/darwin.h. | ||
| 5 | |||
| 3 | * configure.ac (NO_MATHERR): Unconditionally define for Darwin; | 6 | * configure.ac (NO_MATHERR): Unconditionally define for Darwin; |
| 4 | as src/s/darwin.h used to. | 7 | as src/s/darwin.h used to. |
| 5 | 8 | ||
diff --git a/configure.ac b/configure.ac index 1a37f044295..24ad6b59f57 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -4029,13 +4029,14 @@ AH_BOTTOM([ | |||
| 4029 | # include config_opsysfile | 4029 | # include config_opsysfile |
| 4030 | #endif | 4030 | #endif |
| 4031 | 4031 | ||
| 4032 | /* GNUstep needs a bit more pure memory. Of the existing knobs, | 4032 | /* Mac OS X / GNUstep need a bit more pure memory. Of the existing knobs, |
| 4033 | SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. | 4033 | SYSTEM_PURESIZE_EXTRA seems like the least likely to cause problems. */ |
| 4034 | (There is probably a better place to do this, but right now the | 4034 | #ifdef HAVE_NS |
| 4035 | Cocoa side does this in s/darwin.h and we cannot parallel this | 4035 | #if defined NS_IMPL_GNUSTEP |
| 4036 | exactly since GNUstep is multi-OS. */ | ||
| 4037 | #if defined HAVE_NS && defined NS_IMPL_GNUSTEP | ||
| 4038 | # define SYSTEM_PURESIZE_EXTRA 30000 | 4036 | # define SYSTEM_PURESIZE_EXTRA 30000 |
| 4037 | #elif defined DARWIN_OS | ||
| 4038 | # define SYSTEM_PURESIZE_EXTRA 200000 | ||
| 4039 | #endif | ||
| 4039 | #endif | 4040 | #endif |
| 4040 | 4041 | ||
| 4041 | #ifdef emacs /* Don't do this for lib-src. */ | 4042 | #ifdef emacs /* Don't do this for lib-src. */ |
diff --git a/src/ChangeLog b/src/ChangeLog index 8383cf17b03..7e75fd0ae70 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | 2012-07-12 Glenn Morris <rgm@gnu.org> | 1 | 2012-07-12 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Move to configure. | ||
| 3 | 4 | ||
| 4 | * process.c (init_process_emacs): Rename from init_process. | 5 | * process.c (init_process_emacs): Rename from init_process. |
| 5 | The old name is also the name of a Mach system call. | 6 | The old name is also the name of a Mach system call. |
diff --git a/src/s/darwin.h b/src/s/darwin.h index 48f6f583d1e..9245a1b76d6 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -35,10 +35,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 35 | #define MIN_PTY_KERNEL_VERSION '7' | 35 | #define MIN_PTY_KERNEL_VERSION '7' |
| 36 | 36 | ||
| 37 | /* Definitions for how to compile & link. */ | 37 | /* Definitions for how to compile & link. */ |
| 38 | #ifdef HAVE_NS | ||
| 39 | #define SYSTEM_PURESIZE_EXTRA 200000 | ||
| 40 | #endif | ||
| 41 | |||
| 42 | #ifdef emacs | 38 | #ifdef emacs |
| 43 | #define malloc unexec_malloc | 39 | #define malloc unexec_malloc |
| 44 | #define realloc unexec_realloc | 40 | #define realloc unexec_realloc |