diff options
| author | Dan Nicolaescu | 2010-06-03 15:16:02 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-06-03 15:16:02 -0700 |
| commit | eb697db59773f60b5db4ad30a8011221385b90c5 (patch) | |
| tree | cd93a7cd9de2ed6eb0952dd00b04d18ed627b644 /src | |
| parent | aa3830c49727fa443a11eaab9dedb404349c95e1 (diff) | |
| download | emacs-eb697db59773f60b5db4ad30a8011221385b90c5.tar.gz emacs-eb697db59773f60b5db4ad30a8011221385b90c5.zip | |
Move UNEXEC definition to autoconf.
* configure.in (unxec): Do not define and substitute.
(UNEXEC_OBJ): New output variable, replaces cpp UNEXEC.
* msdos/sed1v2.inp (UNEXEC_OBJ): Use UNEXEC_OBJ instead of unexec.
* src/s/usg5-4.h (UNEXEC): Remove, move to configure.in.
* src/s/sol2-10.h (UNEXEC):
* src/s/irix6-5.h (UNEXEC):
* src/s/hpux10-20.h (UNEXEC):
* src/s/gnu-linux.h (UNEXEC):
* src/s/darwin.h (UNEXEC):
* src/s/cygwin.h (UNEXEC):
* src/s/bsd-common.h (UNEXEC):
* src/s/aix4-2.h (UNEXEC):
* src/m/alpha.h (UNEXEC): Likewise.
* src/Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 15 | ||||
| -rw-r--r-- | src/Makefile.in | 2 | ||||
| -rw-r--r-- | src/m/alpha.h | 5 | ||||
| -rw-r--r-- | src/s/aix4-2.h | 2 | ||||
| -rw-r--r-- | src/s/bsd-common.h | 2 | ||||
| -rw-r--r-- | src/s/cygwin.h | 1 | ||||
| -rw-r--r-- | src/s/darwin.h | 3 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 2 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 2 | ||||
| -rw-r--r-- | src/s/irix6-5.h | 2 | ||||
| -rw-r--r-- | src/s/sol2-10.h | 14 | ||||
| -rw-r--r-- | src/s/usg5-4.h | 3 |
12 files changed, 16 insertions, 37 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index bb430266367..728a442e86b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2010-06-03 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | Move UNEXEC definition to autoconf. | ||
| 4 | * s/usg5-4.h (UNEXEC): Remove, move to configure.in. | ||
| 5 | * s/sol2-10.h (UNEXEC): | ||
| 6 | * s/irix6-5.h (UNEXEC): | ||
| 7 | * s/hpux10-20.h (UNEXEC): | ||
| 8 | * s/gnu-linux.h (UNEXEC): | ||
| 9 | * s/darwin.h (UNEXEC): | ||
| 10 | * s/cygwin.h (UNEXEC): | ||
| 11 | * s/bsd-common.h (UNEXEC): | ||
| 12 | * s/aix4-2.h (UNEXEC): | ||
| 13 | * m/alpha.h (UNEXEC): Likewise. | ||
| 14 | * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@. | ||
| 15 | |||
| 1 | 2010-06-03 Juanma Barranquero <lekktu@gmail.com> | 16 | 2010-06-03 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 17 | ||
| 3 | Remove obsolete pre-unicode2 macros. | 18 | Remove obsolete pre-unicode2 macros. |
diff --git a/src/Makefile.in b/src/Makefile.in index 336980f4285..ceef8c3bf67 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -281,7 +281,7 @@ RUN_TEMACS = `/bin/pwd`/temacs | |||
| 281 | 281 | ||
| 282 | START_FILES = @START_FILES@ | 282 | START_FILES = @START_FILES@ |
| 283 | 283 | ||
| 284 | UNEXEC_OBJ = @unexec@ | 284 | UNEXEC_OBJ = @UNEXEC_OBJ@ |
| 285 | 285 | ||
| 286 | CANNOT_DUMP=@cannot_dump@ | 286 | CANNOT_DUMP=@cannot_dump@ |
| 287 | 287 | ||
diff --git a/src/m/alpha.h b/src/m/alpha.h index 04ad9eaaf8f..c57fd0d9821 100644 --- a/src/m/alpha.h +++ b/src/m/alpha.h | |||
| @@ -62,8 +62,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 62 | 62 | ||
| 63 | #ifdef __ELF__ | 63 | #ifdef __ELF__ |
| 64 | 64 | ||
| 65 | #undef UNEXEC | ||
| 66 | #define UNEXEC unexelf.o | ||
| 67 | #if !defined(GNU_LINUX) && !defined(__NetBSD__) | 65 | #if !defined(GNU_LINUX) && !defined(__NetBSD__) |
| 68 | #define DATA_START 0x140000000 | 66 | #define DATA_START 0x140000000 |
| 69 | #endif | 67 | #endif |
| @@ -78,9 +76,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 78 | #define TEXT_START 0x120000000 | 76 | #define TEXT_START 0x120000000 |
| 79 | #define DATA_START 0x140000000 | 77 | #define DATA_START 0x140000000 |
| 80 | 78 | ||
| 81 | /* The program to be used for unexec. */ | ||
| 82 | #define UNEXEC unexalpha.o | ||
| 83 | |||
| 84 | #endif /* __ELF__ */ | 79 | #endif /* __ELF__ */ |
| 85 | 80 | ||
| 86 | /* On the Alpha it's best to avoid including TERMIO since struct | 81 | /* On the Alpha it's best to avoid including TERMIO since struct |
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 5212c432843..32c29675012 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -104,7 +104,5 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 104 | to avoid a crash just use the Emacs implementation for that function. */ | 104 | to avoid a crash just use the Emacs implementation for that function. */ |
| 105 | #define BROKEN_GET_CURRENT_DIR_NAME 1 | 105 | #define BROKEN_GET_CURRENT_DIR_NAME 1 |
| 106 | 106 | ||
| 107 | #define UNEXEC unexaix.o | ||
| 108 | |||
| 109 | /* arch-tag: 38fe75ea-6aef-42bd-8449-bc34d921a562 | 107 | /* arch-tag: 38fe75ea-6aef-42bd-8449-bc34d921a562 |
| 110 | (do not change this comment) */ | 108 | (do not change this comment) */ |
diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h index 2a8934d7f50..1d7ebbace13 100644 --- a/src/s/bsd-common.h +++ b/src/s/bsd-common.h | |||
| @@ -47,8 +47,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 47 | 47 | ||
| 48 | #define SYSV_SYSTEM_DIR | 48 | #define SYSV_SYSTEM_DIR |
| 49 | 49 | ||
| 50 | #define UNEXEC unexelf.o | ||
| 51 | |||
| 52 | /* If the system's imake configuration file defines `NeedWidePrototypes' | 50 | /* If the system's imake configuration file defines `NeedWidePrototypes' |
| 53 | as `NO', we must define NARROWPROTO manually. Such a define is | 51 | as `NO', we must define NARROWPROTO manually. Such a define is |
| 54 | generated in the Makefile generated by `xmkmf'. If we don't | 52 | generated in the Makefile generated by `xmkmf'. If we don't |
diff --git a/src/s/cygwin.h b/src/s/cygwin.h index b6d0c7c88ff..6204cee392b 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h | |||
| @@ -93,7 +93,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 93 | 93 | ||
| 94 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 94 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
| 95 | #define SYSV_SYSTEM_DIR 1 | 95 | #define SYSV_SYSTEM_DIR 1 |
| 96 | #define UNEXEC unexcw.o | ||
| 97 | 96 | ||
| 98 | #define HAVE_SOCKETS | 97 | #define HAVE_SOCKETS |
| 99 | 98 | ||
diff --git a/src/s/darwin.h b/src/s/darwin.h index a30360576a8..399c3d325c1 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -123,9 +123,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 123 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | 123 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ |
| 124 | #define HAVE_SOCKETS | 124 | #define HAVE_SOCKETS |
| 125 | 125 | ||
| 126 | /* Definitions for how to dump. Copied from nextstep.h. */ | ||
| 127 | #define UNEXEC unexmacosx.o | ||
| 128 | |||
| 129 | /* start_of_text isn't actually used, so make it compile without error. */ | 126 | /* start_of_text isn't actually used, so make it compile without error. */ |
| 130 | #define TEXT_START (0) | 127 | #define TEXT_START (0) |
| 131 | 128 | ||
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index f1ec7d99a4b..8b63865d9f9 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -131,8 +131,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 131 | 131 | ||
| 132 | #define POSIX /* affects getpagesize.h and systty.h */ | 132 | #define POSIX /* affects getpagesize.h and systty.h */ |
| 133 | 133 | ||
| 134 | #define UNEXEC unexelf.o | ||
| 135 | |||
| 136 | /* This is to work around mysterious gcc failures in some system versions. | 134 | /* This is to work around mysterious gcc failures in some system versions. |
| 137 | It is unlikely that Emacs changes will work around this problem; | 135 | It is unlikely that Emacs changes will work around this problem; |
| 138 | therefore, this should remain permanently. */ | 136 | therefore, this should remain permanently. */ |
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index 91988ef6727..1a9c2056632 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h | |||
| @@ -68,8 +68,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 68 | /* Some additional system facilities exist. */ | 68 | /* Some additional system facilities exist. */ |
| 69 | #define HAVE_PERROR /* Delete this line for version 6. */ | 69 | #define HAVE_PERROR /* Delete this line for version 6. */ |
| 70 | 70 | ||
| 71 | #define UNEXEC unexhp9k800.o | ||
| 72 | |||
| 73 | /* This is how to get the device name of the tty end of a pty. */ | 71 | /* This is how to get the device name of the tty end of a pty. */ |
| 74 | #define PTY_TTY_NAME_SPRINTF \ | 72 | #define PTY_TTY_NAME_SPRINTF \ |
| 75 | sprintf (pty_name, "/dev/pty/tty%c%x", c, i); | 73 | sprintf (pty_name, "/dev/pty/tty%c%x", c, i); |
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h index e9e14f0cf35..1691daa6615 100644 --- a/src/s/irix6-5.h +++ b/src/s/irix6-5.h | |||
| @@ -83,8 +83,6 @@ char *_getpty(); | |||
| 83 | /* Tell process_send_signal to use VSUSP instead of VSWTCH. */ | 83 | /* Tell process_send_signal to use VSUSP instead of VSWTCH. */ |
| 84 | #define PREFER_VSUSP | 84 | #define PREFER_VSUSP |
| 85 | 85 | ||
| 86 | #define UNEXEC unexelf.o | ||
| 87 | |||
| 88 | #define NARROWPROTO 1 | 86 | #define NARROWPROTO 1 |
| 89 | 87 | ||
| 90 | #define USE_MMAP_FOR_BUFFERS 1 | 88 | #define USE_MMAP_FOR_BUFFERS 1 |
diff --git a/src/s/sol2-10.h b/src/s/sol2-10.h index afd2d89ae0d..7441eaa0210 100644 --- a/src/s/sol2-10.h +++ b/src/s/sol2-10.h | |||
| @@ -4,20 +4,6 @@ | |||
| 4 | 4 | ||
| 5 | #define SYSTEM_MALLOC | 5 | #define SYSTEM_MALLOC |
| 6 | 6 | ||
| 7 | /* Use the Solaris dldump() function, called from unexsol.c, to dump | ||
| 8 | emacs, instead of the generic ELF dump code found in unexelf.c. | ||
| 9 | The resulting binary has a complete symbol table, and is better | ||
| 10 | for debugging and other observability tools (debuggers, pstack, etc). | ||
| 11 | |||
| 12 | If you encounter a problem using dldump(), please consider sending | ||
| 13 | a message to the OpenSolaris tools-linking mailing list: | ||
| 14 | http://mail.opensolaris.org/mailman/listinfo/tools-linking | ||
| 15 | |||
| 16 | It is likely that dldump() works with older Solaris too, but this has | ||
| 17 | not been tested, so for now this change is for Solaris 10 or newer. */ | ||
| 18 | #undef UNEXEC | ||
| 19 | #define UNEXEC unexsol.o | ||
| 20 | |||
| 21 | /* This is used in list_system_processes. */ | 7 | /* This is used in list_system_processes. */ |
| 22 | #define HAVE_PROCFS 1 | 8 | #define HAVE_PROCFS 1 |
| 23 | 9 | ||
diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h index 864ace33d50..9810ab3e67f 100644 --- a/src/s/usg5-4.h +++ b/src/s/usg5-4.h | |||
| @@ -69,11 +69,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 69 | /* On USG systems signal handlers return void. */ | 69 | /* On USG systems signal handlers return void. */ |
| 70 | #define SIGTYPE void | 70 | #define SIGTYPE void |
| 71 | 71 | ||
| 72 | /* Undump with ELF. */ | ||
| 73 | #undef COFF | 72 | #undef COFF |
| 74 | 73 | ||
| 75 | #define UNEXEC unexelf.o | ||
| 76 | |||
| 77 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. | 74 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. |
| 78 | But get <termio.h> first to make sure ttold.h doesn't interfere. | 75 | But get <termio.h> first to make sure ttold.h doesn't interfere. |
| 79 | And don't try to use SIGIO yet. */ | 76 | And don't try to use SIGIO yet. */ |