]> git.eshelyaron.com Git - emacs.git/commitdiff
Move darwin.h's SYSTEM_PURESIZE_EXTRA setting to configure
authorGlenn Morris <rgm@gnu.org>
Fri, 13 Jul 2012 00:00:23 +0000 (20:00 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 13 Jul 2012 00:00:23 +0000 (20:00 -0400)
* 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.

ChangeLog
configure.ac
src/ChangeLog
src/s/darwin.h

index 850eb040376e4ded34764ae0e958bab593db0e33..59f9981bc3fdfb63f3eba8af88d5cf204536c378 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 
index 1a37f04429514eb2ed016af03922f7b5068e1f18..24ad6b59f571e15794a1726374366efd7e1dbfb8 100644 (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.  */
index 8383cf17b034cde711aa289b4a32be6c6612ff4c..7e75fd0ae7093ec8616ebef738557e6dd1099161 100644 (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.
index 48f6f583d1efd9a99d259f792f560005b6833e27..9245a1b76d6c0f3b55ad182a63813116e2432fa1 100644 (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