diff options
| author | Glenn Morris | 2010-06-29 19:48:54 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-06-29 19:48:54 -0700 |
| commit | 6259c2ec7ae4b60f59d5101c8c544d15a90540a3 (patch) | |
| tree | e0680ee34ce375d77f41226081a616a3f1f762e1 | |
| parent | a2f043d3d72cbbc0ad64fb271a9f0545791100ec (diff) | |
| download | emacs-6259c2ec7ae4b60f59d5101c8c544d15a90540a3.tar.gz emacs-6259c2ec7ae4b60f59d5101c8c544d15a90540a3.zip | |
Remove some cpp that is internal to configure.in.
* configure.in (C_OPTIMIZE_SWITCH, CANNOT_DUMP, SYSTEM_MALLOC):
(USE_MMAP_FOR_BUFFERS, C_WARNING_SWITCH): Set with shell, not cpp.
(LIBX): Remove, just use -lX11 in the one place this was used.
(cannot_dump): Replace with CANNOT_DUMP.
* src/Makefile.in (CANNOT_DUMP): Update for configure name change.
* src/s/freebsd.h (USE_MMAP_FOR_BUFFERS):
* src/s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
* src/s/darwin.h (SYSTEM_MALLOC):
* src/s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
* src/m/alpha.h: Remove old comment.
* src/s/aix4-2.h: Update comment.
* src/s/template.h: Remove USE_MMAP_FOR_BUFFERS.
* msdos/sed1v2.inp (CANNOT_DUMP): Update for configure name change.
* admin/CPP-DEFINES: Remove USE_MMAP_FOR_BUFFERS, CANNOT_DUMP.
* etc/DEBUG: Update SYSTEM_MALLOC and CANNOT_DUMP references.
Some re-filling.
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | admin/CPP-DEFINES | 2 | ||||
| -rw-r--r-- | configure.in | 83 | ||||
| -rw-r--r-- | etc/DEBUG | 29 | ||||
| -rw-r--r-- | msdos/ChangeLog | 4 | ||||
| -rw-r--r-- | msdos/sed1v2.inp | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/Makefile.in | 2 | ||||
| -rw-r--r-- | src/m/alpha.h | 13 | ||||
| -rw-r--r-- | src/m/template.h | 5 | ||||
| -rw-r--r-- | src/s/aix4-2.h | 4 | ||||
| -rw-r--r-- | src/s/darwin.h | 3 | ||||
| -rw-r--r-- | src/s/freebsd.h | 4 | ||||
| -rw-r--r-- | src/s/irix6-5.h | 2 | ||||
| -rw-r--r-- | src/s/sol2-10.h | 2 | ||||
| -rw-r--r-- | src/s/template.h | 3 |
16 files changed, 70 insertions, 104 deletions
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-06-30 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.in (C_OPTIMIZE_SWITCH, CANNOT_DUMP, SYSTEM_MALLOC): | ||
| 4 | (USE_MMAP_FOR_BUFFERS, C_WARNING_SWITCH): Set with shell, not cpp. | ||
| 5 | (LIBX): Remove, just use -lX11 in the one place this was used. | ||
| 6 | (cannot_dump): Replace with CANNOT_DUMP. | ||
| 7 | |||
| 1 | 2010-06-28 Jan Djärv <jan.h.d@swipnet.se> | 8 | 2010-06-28 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 9 | ||
| 3 | * configure.in: Add --with-x-toolkit=gtk3. Remove HAVE_GTK_MULTIDISPLAY, | 10 | * configure.in: Add --with-x-toolkit=gtk3. Remove HAVE_GTK_MULTIDISPLAY, |
diff --git a/admin/CPP-DEFINES b/admin/CPP-DEFINES index 4425b79edeb..db96443ad48 100644 --- a/admin/CPP-DEFINES +++ b/admin/CPP-DEFINES | |||
| @@ -60,10 +60,8 @@ NARROWPROTO | |||
| 60 | SEPCHAR | 60 | SEPCHAR |
| 61 | SIGTYPE | 61 | SIGTYPE |
| 62 | SYSTEM_TYPE | 62 | SYSTEM_TYPE |
| 63 | USE_MMAP_FOR_BUFFERS | ||
| 64 | 63 | ||
| 65 | ** Machine specific macros, decribed in detail in src/m/template.h | 64 | ** Machine specific macros, decribed in detail in src/m/template.h |
| 66 | CANNOT_DUMP | ||
| 67 | EXPLICIT_SIGN_EXTEND | 65 | EXPLICIT_SIGN_EXTEND |
| 68 | LOAD_AVE_CVT | 66 | LOAD_AVE_CVT |
| 69 | LOAD_AVE_TYPE | 67 | LOAD_AVE_TYPE |
diff --git a/configure.in b/configure.in index d941bbc17d8..6fcea08bb63 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -710,14 +710,13 @@ then | |||
| 710 | CC="$NON_GNU_CC" | 710 | CC="$NON_GNU_CC" |
| 711 | fi | 711 | fi |
| 712 | 712 | ||
| 713 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | 713 | if test x$GCC = xyes; then |
| 714 | then | 714 | C_OPTIMIZE_SWITCH=-O2 |
| 715 | CC="$CC $GCC_TEST_OPTIONS" | 715 | test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS" |
| 716 | fi | 716 | else |
| 717 | 717 | dnl FIXME? unused. | |
| 718 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | 718 | C_OPTIMIZE_SWITCH=-O |
| 719 | then | 719 | test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS" |
| 720 | CC="$CC $NON_GCC_TEST_OPTIONS" | ||
| 721 | fi | 720 | fi |
| 722 | 721 | ||
| 723 | dnl checks for Unix variants | 722 | dnl checks for Unix variants |
| @@ -863,43 +862,11 @@ echo ' | |||
| 863 | #include "'${srcdir}'/src/'${opsysfile}'" | 862 | #include "'${srcdir}'/src/'${opsysfile}'" |
| 864 | #include "'${srcdir}'/src/'${machfile}'" | 863 | #include "'${srcdir}'/src/'${machfile}'" |
| 865 | 864 | ||
| 866 | configure___ LIBX=-lX11 | ||
| 867 | |||
| 868 | #ifdef CANNOT_DUMP | ||
| 869 | configure___ cannot_dump=yes | ||
| 870 | #else | ||
| 871 | configure___ cannot_dump=no | ||
| 872 | #endif | ||
| 873 | |||
| 874 | #ifdef SYSTEM_MALLOC | ||
| 875 | configure___ system_malloc=yes | ||
| 876 | #else | ||
| 877 | configure___ system_malloc=no | ||
| 878 | #endif | ||
| 879 | |||
| 880 | #ifdef USE_MMAP_FOR_BUFFERS | ||
| 881 | configure___ use_mmap_for_buffers=yes | ||
| 882 | #else | ||
| 883 | configure___ use_mmap_for_buffers=no | ||
| 884 | #endif | ||
| 885 | |||
| 886 | #ifndef C_OPTIMIZE_SWITCH | ||
| 887 | #ifdef __GNUC__ | ||
| 888 | #define C_OPTIMIZE_SWITCH -O2 | ||
| 889 | #else | ||
| 890 | #define C_OPTIMIZE_SWITCH -O | ||
| 891 | #endif | ||
| 892 | #endif | ||
| 893 | |||
| 894 | #ifndef C_WARNINGS_SWITCH | ||
| 895 | #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH} | ||
| 896 | #endif | ||
| 897 | |||
| 898 | #ifdef THIS_IS_CONFIGURE | 865 | #ifdef THIS_IS_CONFIGURE |
| 899 | 866 | ||
| 900 | /* Get the CFLAGS for tests in configure. */ | 867 | /* Get the CFLAGS for tests in configure. */ |
| 901 | #ifdef __GNUC__ | 868 | #ifdef __GNUC__ |
| 902 | configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | 869 | configure___ CFLAGS=-g ${C_OPTIMIZE_SWITCH} '${SPECIFIED_CFLAGS}' |
| 903 | #else | 870 | #else |
| 904 | configure___ CFLAGS='${SPECIFIED_CFLAGS}' | 871 | configure___ CFLAGS='${SPECIFIED_CFLAGS}' |
| 905 | #endif | 872 | #endif |
| @@ -908,7 +875,7 @@ configure___ CFLAGS='${SPECIFIED_CFLAGS}' | |||
| 908 | 875 | ||
| 909 | /* Get the CFLAGS for real compilation. */ | 876 | /* Get the CFLAGS for real compilation. */ |
| 910 | #ifdef __GNUC__ | 877 | #ifdef __GNUC__ |
| 911 | configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}' | 878 | configure___ REAL_CFLAGS=-g ${C_OPTIMIZE_SWITCH} ${C_WARNINGS_SWITCH} ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}' |
| 912 | #else | 879 | #else |
| 913 | configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}' | 880 | configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}' |
| 914 | #endif | 881 | #endif |
| @@ -932,7 +899,18 @@ fi] | |||
| 932 | rm ${tempcname} | 899 | rm ${tempcname} |
| 933 | 900 | ||
| 934 | 901 | ||
| 935 | AC_SUBST(cannot_dump) | 902 | dnl Not used by any currently supported platform. |
| 903 | dnl The function dump-emacs will not be defined and temacs will do | ||
| 904 | dnl (load "loadup") automatically unless told otherwise. | ||
| 905 | CANNOT_DUMP=no | ||
| 906 | case "$opsys" in | ||
| 907 | your-opsys-here) | ||
| 908 | CANNOT_DUMP=yes | ||
| 909 | AC_DEFINE(CANNOT_DUMP, 1, [Define if Emacs cannot be dumped on your system.]) | ||
| 910 | ;; | ||
| 911 | esac | ||
| 912 | AC_SUBST(CANNOT_DUMP) | ||
| 913 | |||
| 936 | 914 | ||
| 937 | UNEXEC_OBJ=unexelf.o | 915 | UNEXEC_OBJ=unexelf.o |
| 938 | case "$opsys" in | 916 | case "$opsys" in |
| @@ -1647,7 +1625,16 @@ if test $emacs_cv_var___after_morecore_hook = no; then | |||
| 1647 | doug_lea_malloc=no | 1625 | doug_lea_malloc=no |
| 1648 | fi | 1626 | fi |
| 1649 | 1627 | ||
| 1628 | |||
| 1629 | dnl See comments in aix4-2.h about maybe using system malloc there. | ||
| 1630 | system_malloc=no | ||
| 1631 | case "$opsys" in | ||
| 1632 | ## darwin ld insists on the use of malloc routines in the System framework. | ||
| 1633 | darwin|sol2-10) system_malloc=yes ;; | ||
| 1634 | esac | ||
| 1635 | |||
| 1650 | if test "${system_malloc}" = "yes"; then | 1636 | if test "${system_malloc}" = "yes"; then |
| 1637 | AC_DEFINE(SYSTEM_MALLOC, 1, [Define to use system malloc.]) | ||
| 1651 | GNU_MALLOC=no | 1638 | GNU_MALLOC=no |
| 1652 | GNU_MALLOC_reason=" | 1639 | GNU_MALLOC_reason=" |
| 1653 | (The GNU allocators don't work with this system configuration.)" | 1640 | (The GNU allocators don't work with this system configuration.)" |
| @@ -1681,12 +1668,14 @@ if test x"${REL_ALLOC}" = x; then | |||
| 1681 | REL_ALLOC=${GNU_MALLOC} | 1668 | REL_ALLOC=${GNU_MALLOC} |
| 1682 | fi | 1669 | fi |
| 1683 | 1670 | ||
| 1684 | dnl For now, need to use an explicit `#define USE_MMAP_FOR_BUFFERS 1' | 1671 | use_mmap_for_buffers=no |
| 1685 | dnl the system configuration file (s/*.h) to turn the use of mmap | 1672 | case "$opsys" in |
| 1686 | dnl in the relocating allocator on. | 1673 | freebsd|irix6-5) use_mmap_for_buffers=yes ;; |
| 1674 | esac | ||
| 1687 | 1675 | ||
| 1688 | AC_FUNC_MMAP | 1676 | AC_FUNC_MMAP |
| 1689 | if test $use_mmap_for_buffers = yes; then | 1677 | if test $use_mmap_for_buffers = yes; then |
| 1678 | AC_DEFINE(USE_MMAP_FOR_BUFFERS, 1, [Define to use mmap to allocate buffer text.]) | ||
| 1690 | REL_ALLOC=no | 1679 | REL_ALLOC=no |
| 1691 | fi | 1680 | fi |
| 1692 | 1681 | ||
| @@ -1741,7 +1730,7 @@ REAL_CPPFLAGS="$CPPFLAGS" | |||
| 1741 | if test "${HAVE_X11}" = "yes"; then | 1730 | if test "${HAVE_X11}" = "yes"; then |
| 1742 | DEFS="$C_SWITCH_X_SITE $DEFS" | 1731 | DEFS="$C_SWITCH_X_SITE $DEFS" |
| 1743 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | 1732 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" |
| 1744 | LIBS="$LIBX $LIBS" | 1733 | LIBS="-lX11 $LIBS" |
| 1745 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | 1734 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" |
| 1746 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | 1735 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
| 1747 | 1736 | ||
| @@ -5,9 +5,8 @@ Copyright (C) 1985, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, | |||
| 5 | See the end of the file for license conditions. | 5 | See the end of the file for license conditions. |
| 6 | 6 | ||
| 7 | 7 | ||
| 8 | [People who debug Emacs on Windows using Microsoft debuggers | 8 | [People who debug Emacs on Windows using Microsoft debuggers should |
| 9 | should read the Windows-specific section near the end of this | 9 | read the Windows-specific section near the end of this document.] |
| 10 | document.] | ||
| 11 | 10 | ||
| 12 | ** When you debug Emacs with GDB, you should start it in the directory | 11 | ** When you debug Emacs with GDB, you should start it in the directory |
| 13 | where the executable was made. That directory has a .gdbinit file | 12 | where the executable was made. That directory has a .gdbinit file |
| @@ -50,8 +49,7 @@ On modern POSIX systems, you can override that with this command: | |||
| 50 | handle SIGINT stop nopass | 49 | handle SIGINT stop nopass |
| 51 | 50 | ||
| 52 | After this `handle' command, SIGINT will return control to GDB. If | 51 | After this `handle' command, SIGINT will return control to GDB. If |
| 53 | you want the C-g to cause a QUIT within Emacs as well, omit the | 52 | you want the C-g to cause a QUIT within Emacs as well, omit the `nopass'. |
| 54 | `nopass'. | ||
| 55 | 53 | ||
| 56 | A technique that can work when `handle SIGINT' does not is to store | 54 | A technique that can work when `handle SIGINT' does not is to store |
| 57 | the code for some character into the variable stop_character. Thus, | 55 | the code for some character into the variable stop_character. Thus, |
| @@ -443,10 +441,9 @@ It is necessary to refer to the file `nmout' to convert | |||
| 443 | numeric addresses into symbols and vice versa. | 441 | numeric addresses into symbols and vice versa. |
| 444 | 442 | ||
| 445 | It is useful to be running under a window system. | 443 | It is useful to be running under a window system. |
| 446 | Then, if Emacs becomes hopelessly wedged, you can create | 444 | Then, if Emacs becomes hopelessly wedged, you can create another |
| 447 | another window to do kill -9 in. kill -ILL is often | 445 | window to do kill -9 in. kill -ILL is often useful too, since that |
| 448 | useful too, since that may make Emacs dump core or return | 446 | may make Emacs dump core or return to adb. |
| 449 | to adb. | ||
| 450 | 447 | ||
| 451 | 448 | ||
| 452 | ** Debugging incorrect screen updating. | 449 | ** Debugging incorrect screen updating. |
| @@ -483,16 +480,14 @@ suitable for Unix and GNU systems, to build such a debugging version: | |||
| 483 | Building Emacs like that activates many assertions which scrutinize | 480 | Building Emacs like that activates many assertions which scrutinize |
| 484 | display code operation more than Emacs does normally. (To see the | 481 | display code operation more than Emacs does normally. (To see the |
| 485 | code which tests these assertions, look for calls to the `xassert' | 482 | code which tests these assertions, look for calls to the `xassert' |
| 486 | macros.) Any assertion that is reported to fail should be | 483 | macros.) Any assertion that is reported to fail should be investigated. |
| 487 | investigated. | ||
| 488 | 484 | ||
| 489 | Building with GLYPH_DEBUG defined also defines several helper | 485 | Building with GLYPH_DEBUG defined also defines several helper |
| 490 | functions which can help debugging display code. One such function is | 486 | functions which can help debugging display code. One such function is |
| 491 | `dump_glyph_matrix'. If you run Emacs under GDB, you can print the | 487 | `dump_glyph_matrix'. If you run Emacs under GDB, you can print the |
| 492 | contents of any glyph matrix by just calling that function with the | 488 | contents of any glyph matrix by just calling that function with the |
| 493 | matrix as its argument. For example, the following command will print | 489 | matrix as its argument. For example, the following command will print |
| 494 | the contents of the current matrix of the window whose pointer is in | 490 | the contents of the current matrix of the window whose pointer is in `w': |
| 495 | `w': | ||
| 496 | 491 | ||
| 497 | (gdb) p dump_glyph_matrix (w->current_matrix, 2) | 492 | (gdb) p dump_glyph_matrix (w->current_matrix, 2) |
| 498 | 493 | ||
| @@ -621,13 +616,9 @@ Emacs compiled with such packages might not run without some hacking, | |||
| 621 | because Emacs replaces the system's memory allocation functions with | 616 | because Emacs replaces the system's memory allocation functions with |
| 622 | its own versions, and because the dumping process might be | 617 | its own versions, and because the dumping process might be |
| 623 | incompatible with the way these packages use to track allocated | 618 | incompatible with the way these packages use to track allocated |
| 624 | memory. Here are some of the changes you might find necessary | 619 | memory. Here are some of the changes you might find necessary: |
| 625 | (SYSTEM-NAME and MACHINE-NAME are the names of your OS- and | ||
| 626 | CPU-specific headers in the subdirectories of `src'): | ||
| 627 | 620 | ||
| 628 | - In src/s/SYSTEM-NAME.h add "#define SYSTEM_MALLOC". | 621 | - Edit configure, to set system_malloc and CANNOT_DUMP to "yes". |
| 629 | |||
| 630 | - In src/m/MACHINE-NAME.h add "#define CANNOT_DUMP" | ||
| 631 | 622 | ||
| 632 | - Configure with a different --prefix= option. If you use GCC, | 623 | - Configure with a different --prefix= option. If you use GCC, |
| 633 | version 2.7.2 is preferred, as some malloc debugging packages | 624 | version 2.7.2 is preferred, as some malloc debugging packages |
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index 71d2acbc928..287f568438f 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-06-30 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * sed1v2.inp (CANNOT_DUMP): Update for configure name change. | ||
| 4 | |||
| 1 | 2010-06-26 Eli Zaretskii <eliz@gnu.org> | 5 | 2010-06-26 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * mainmake.v2 (version): Use emacs_version[] in src/emacs.c | 7 | * mainmake.v2 (version): Use emacs_version[] in src/emacs.c |
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp index 8f7c06cfd8c..eef9ea80b79 100644 --- a/msdos/sed1v2.inp +++ b/msdos/sed1v2.inp | |||
| @@ -116,7 +116,7 @@ s/\.h\.in/.h-in/ | |||
| 116 | /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/ | 116 | /^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/ |
| 117 | /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/ | 117 | /^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/ |
| 118 | /^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexec.o/ | 118 | /^UNEXEC_OBJ *=/s/@UNEXEC_OBJ@/unexec.o/ |
| 119 | /^CANNOT_DUMP *=/s/@cannot_dump@/no/ | 119 | /^CANNOT_DUMP *=/s/@CANNOT_DUMP@/no/ |
| 120 | /^DEPFLAGS *=/s/@DEPFLAGS@// | 120 | /^DEPFLAGS *=/s/@DEPFLAGS@// |
| 121 | /^MKDEPDIR *=/s/@MKDEPDIR@// | 121 | /^MKDEPDIR *=/s/@MKDEPDIR@// |
| 122 | /^version *=/s/@[^@\n]*@// | 122 | /^version *=/s/@[^@\n]*@// |
diff --git a/src/ChangeLog b/src/ChangeLog index 12af1e6908a..dc0dd35e632 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2010-06-30 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (CANNOT_DUMP): Update for configure name change. | ||
| 4 | |||
| 5 | * s/freebsd.h (USE_MMAP_FOR_BUFFERS): | ||
| 6 | * s/irix6-5.h (USE_MMAP_FOR_BUFFERS): | ||
| 7 | * s/darwin.h (SYSTEM_MALLOC): | ||
| 8 | * s/sol2-10.h (SYSTEM_MALLOC): Move to configure. | ||
| 9 | |||
| 1 | 2010-06-29 Jan Djärv <jan.h.d@swipnet.se> | 10 | 2010-06-29 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 11 | ||
| 3 | * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode. | 12 | * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode. |
diff --git a/src/Makefile.in b/src/Makefile.in index b2fec7eb085..0f8294fd030 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -283,7 +283,7 @@ START_FILES = @START_FILES@ | |||
| 283 | 283 | ||
| 284 | UNEXEC_OBJ = @UNEXEC_OBJ@ | 284 | UNEXEC_OBJ = @UNEXEC_OBJ@ |
| 285 | 285 | ||
| 286 | CANNOT_DUMP=@cannot_dump@ | 286 | CANNOT_DUMP=@CANNOT_DUMP@ |
| 287 | 287 | ||
| 288 | DEPDIR=deps | 288 | DEPDIR=deps |
| 289 | ## -MMD -MF ${DEPDIR}/$*.d if AUTO_DEPEND; else empty. | 289 | ## -MMD -MF ${DEPDIR}/$*.d if AUTO_DEPEND; else empty. |
diff --git a/src/m/alpha.h b/src/m/alpha.h index c57fd0d9821..a7e4fa6b07b 100644 --- a/src/m/alpha.h +++ b/src/m/alpha.h | |||
| @@ -47,19 +47,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 47 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | 47 | /* Convert that into an integer that is 100 for a load average of 1.0 */ |
| 48 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | 48 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) |
| 49 | 49 | ||
| 50 | /* GNU malloc and the relocating allocator do not work together | ||
| 51 | with X. [Who wrote that?] */ | ||
| 52 | |||
| 53 | /* May 1995: reportedly [Rainer Schoepf <schoepf@uni-mainz.de>] both the | ||
| 54 | system and the gnu malloc system work with "alpha-dec-osf3.0" and | ||
| 55 | "alpha-dec-osf3.2". */ | ||
| 56 | |||
| 57 | /* May 1995: it seems to me [Morten Welinder <terra@diku.dk>] that both | ||
| 58 | mallocs work with "alpha-dec-osf2.0", but I daren't break anything | ||
| 59 | right now. Feel free to play if you want. */ | ||
| 60 | |||
| 61 | /* #define SYSTEM_MALLOC */ | ||
| 62 | |||
| 63 | #ifdef __ELF__ | 50 | #ifdef __ELF__ |
| 64 | 51 | ||
| 65 | #if !defined(GNU_LINUX) && !defined(__NetBSD__) | 52 | #if !defined(GNU_LINUX) && !defined(__NetBSD__) |
diff --git a/src/m/template.h b/src/m/template.h index 3beac1a7808..0b149411a0a 100644 --- a/src/m/template.h +++ b/src/m/template.h | |||
| @@ -39,11 +39,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 39 | /* Convert that into an integer that is 100 for a load average of 1.0 */ | 39 | /* Convert that into an integer that is 100 for a load average of 1.0 */ |
| 40 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) | 40 | #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE) |
| 41 | 41 | ||
| 42 | /* Define CANNOT_DUMP on machines where unexec does not work. | ||
| 43 | Then the function dump-emacs will not be defined | ||
| 44 | and temacs will do (load "loadup") automatically unless told otherwise. */ | ||
| 45 | #define CANNOT_DUMP | ||
| 46 | |||
| 47 | /* Define VIRT_ADDR_VARIES if the virtual addresses of | 42 | /* Define VIRT_ADDR_VARIES if the virtual addresses of |
| 48 | pure and impure space as loaded can vary, and even their | 43 | pure and impure space as loaded can vary, and even their |
| 49 | relative order cannot be relied on. | 44 | relative order cannot be relied on. |
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 48f43126fd9..cf06f9befe0 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -89,8 +89,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 89 | memory use the libc malloc implementation. Calling xfree or | 89 | memory use the libc malloc implementation. Calling xfree or |
| 90 | xrealloc on the results of such functions results in a crash. | 90 | xrealloc on the results of such functions results in a crash. |
| 91 | 91 | ||
| 92 | One solution for this could be to define SYSTEM_MALLOC here, but | 92 | One solution for this could be to define SYSTEM_MALLOC in configure, |
| 93 | that does not currently work on this system. | 93 | but that does not currently work on this system. |
| 94 | 94 | ||
| 95 | It is possible to completely override the malloc implementation on | 95 | It is possible to completely override the malloc implementation on |
| 96 | AIX, but that involves putting the malloc functions in a shared | 96 | AIX, but that involves putting the malloc functions in a shared |
diff --git a/src/s/darwin.h b/src/s/darwin.h index 5c8db1242e1..cd1f9384833 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -114,9 +114,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 114 | /* System uses OXTABS instead of the expected TAB3. (Copied from bsd386.h.) */ | 114 | /* System uses OXTABS instead of the expected TAB3. (Copied from bsd386.h.) */ |
| 115 | #define TAB3 OXTABS | 115 | #define TAB3 OXTABS |
| 116 | 116 | ||
| 117 | /* Darwin ld insists on the use of malloc routines in the System framework. */ | ||
| 118 | #define SYSTEM_MALLOC | ||
| 119 | |||
| 120 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | 117 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ |
| 121 | #define HAVE_SOCKETS | 118 | #define HAVE_SOCKETS |
| 122 | 119 | ||
diff --git a/src/s/freebsd.h b/src/s/freebsd.h index f8d88342621..9082935db07 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h | |||
| @@ -67,9 +67,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 67 | /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the stack. */ | 67 | /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the stack. */ |
| 68 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS | 68 | #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS |
| 69 | 69 | ||
| 70 | /* Define USE_MMAP_FOR_BUFFERS to let Emacs use mmap(2) to allocate | ||
| 71 | buffer text. This overrides REL_ALLOC. */ | ||
| 72 | #define USE_MMAP_FOR_BUFFERS 1 | ||
| 73 | |||
| 74 | /* arch-tag: 426529ca-b7c4-448f-b10a-d4dcdc9c78eb | 70 | /* arch-tag: 426529ca-b7c4-448f-b10a-d4dcdc9c78eb |
| 75 | (do not change this comment) */ | 71 | (do not change this comment) */ |
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h index 1691daa6615..e2b18b2ec2b 100644 --- a/src/s/irix6-5.h +++ b/src/s/irix6-5.h | |||
| @@ -85,8 +85,6 @@ char *_getpty(); | |||
| 85 | 85 | ||
| 86 | #define NARROWPROTO 1 | 86 | #define NARROWPROTO 1 |
| 87 | 87 | ||
| 88 | #define USE_MMAP_FOR_BUFFERS 1 | ||
| 89 | |||
| 90 | #if _MIPS_SZLONG == 64 /* -mabi=64 (gcc) or -64 (MIPSpro) */ | 88 | #if _MIPS_SZLONG == 64 /* -mabi=64 (gcc) or -64 (MIPSpro) */ |
| 91 | #define _LP64 /* lisp.h takes care of the rest */ | 89 | #define _LP64 /* lisp.h takes care of the rest */ |
| 92 | #endif /* _MIPS_SZLONG */ | 90 | #endif /* _MIPS_SZLONG */ |
diff --git a/src/s/sol2-10.h b/src/s/sol2-10.h index 7441eaa0210..fd7f30021ea 100644 --- a/src/s/sol2-10.h +++ b/src/s/sol2-10.h | |||
| @@ -2,8 +2,6 @@ | |||
| 2 | 2 | ||
| 3 | #include "sol2-6.h" | 3 | #include "sol2-6.h" |
| 4 | 4 | ||
| 5 | #define SYSTEM_MALLOC | ||
| 6 | |||
| 7 | /* This is used in list_system_processes. */ | 5 | /* This is used in list_system_processes. */ |
| 8 | #define HAVE_PROCFS 1 | 6 | #define HAVE_PROCFS 1 |
| 9 | 7 | ||
diff --git a/src/s/template.h b/src/s/template.h index 694a1046566..67ed13e6180 100644 --- a/src/s/template.h +++ b/src/s/template.h | |||
| @@ -108,9 +108,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 108 | is not ':', #define this to be the appropriate character constant. */ | 108 | is not ':', #define this to be the appropriate character constant. */ |
| 109 | /* #define SEPCHAR ':' */ | 109 | /* #define SEPCHAR ':' */ |
| 110 | 110 | ||
| 111 | /* Define this if the system can use mmap for buffer text allocation. */ | ||
| 112 | /* #define USE_MMAP_FOR_BUFFERS 1 */ | ||
| 113 | |||
| 114 | /* ============================================================ */ | 111 | /* ============================================================ */ |
| 115 | 112 | ||
| 116 | /* Here, add any special hacks needed to make Emacs work on this | 113 | /* Here, add any special hacks needed to make Emacs work on this |