diff options
| author | Glenn Morris | 2012-07-11 00:28:27 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-07-11 00:28:27 -0700 |
| commit | 09f4e3b0149e10d6d6a3d4915cf5c0a9768ded46 (patch) | |
| tree | fe5a71ed4d8988810942b3847380ff2b14127e24 | |
| parent | 554fef512f2b7015d09a4921cc0eb3b966dbfabe (diff) | |
| download | emacs-09f4e3b0149e10d6d6a3d4915cf5c0a9768ded46.tar.gz emacs-09f4e3b0149e10d6d6a3d4915cf5c0a9768ded46.zip | |
Move SIGNALS_VIA_CHARACTERS from src/s to configure
* configure.ac (SIGNALS_VIA_CHARACTERS): Move here from src/s.
* src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/gnu-linux.h:
* src/s/irix6-5.h: Move SIGNALS_VIA_CHARACTERS to configure.
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | configure.ac | 29 | ||||
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/s/aix4-2.h | 3 | ||||
| -rw-r--r-- | src/s/bsd-common.h | 3 | ||||
| -rw-r--r-- | src/s/cygwin.h | 3 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 11 | ||||
| -rw-r--r-- | src/s/irix6-5.h | 4 |
8 files changed, 33 insertions, 25 deletions
| @@ -9,7 +9,7 @@ | |||
| 9 | * configure.ac (opsysfile): Use bsd-common on gnu systems. | 9 | * configure.ac (opsysfile): Use bsd-common on gnu systems. |
| 10 | 10 | ||
| 11 | * configure.ac (GNU_LIBRARY_PENDING_OUTPUT_COUNT): | 11 | * configure.ac (GNU_LIBRARY_PENDING_OUTPUT_COUNT): |
| 12 | Move here from src/s. | 12 | (SIGNALS_VIA_CHARACTERS): Move here from src/s. |
| 13 | 13 | ||
| 14 | 2012-07-11 Paul Eggert <eggert@cs.ucla.edu> | 14 | 2012-07-11 Paul Eggert <eggert@cs.ucla.edu> |
| 15 | 15 | ||
diff --git a/configure.ac b/configure.ac index e55c40fe77c..106b0a22481 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3171,6 +3171,35 @@ dnl Used in sound.c | |||
| 3171 | AC_DEFINE_UNQUOTED(DEFAULT_SOUND_DEVICE, "$sound_device", | 3171 | AC_DEFINE_UNQUOTED(DEFAULT_SOUND_DEVICE, "$sound_device", |
| 3172 | [Name of the default sound device.]) | 3172 | [Name of the default sound device.]) |
| 3173 | 3173 | ||
| 3174 | |||
| 3175 | AH_TEMPLATE(SIGNALS_VIA_CHARACTERS, [Make process_send_signal work by | ||
| 3176 | "typing" a signal character on the pty.]) | ||
| 3177 | |||
| 3178 | case $opsys in | ||
| 3179 | dnl Perry Smith <pedz@ddivt1.austin.ibm.com> says this is correct for AIX. | ||
| 3180 | dnl thomas@mathematik.uni-bremen.de says this is needed for IRIX. | ||
| 3181 | aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd ) | ||
| 3182 | AC_DEFINE(SIGNALS_VIA_CHARACTERS, 1) | ||
| 3183 | ;; | ||
| 3184 | |||
| 3185 | dnl 21 Jun 06: Eric Hanchrow <offby1@blarg.net> says this works. | ||
| 3186 | dnl FIXME Does gnu-kfreebsd have linux/version.h? It seems unlikely... | ||
| 3187 | gnu-linux | gnu-kfreebsd ) | ||
| 3188 | |||
| 3189 | AC_MSG_CHECKING([for signals via characters]) | ||
| 3190 | AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[ | ||
| 3191 | #include <linux/version.h> | ||
| 3192 | #if LINUX_VERSION_CODE < 0x20400 | ||
| 3193 | # error "Linux version too old" | ||
| 3194 | #endif | ||
| 3195 | ]], [[]])], emacs_signals_via_chars=yes, emacs_signals_via_chars=no) | ||
| 3196 | |||
| 3197 | AC_MSG_RESULT([$emacs_signals_via_chars]) | ||
| 3198 | test $emacs_signals_via_chars = yes && AC_DEFINE(SIGNALS_VIA_CHARACTERS, 1) | ||
| 3199 | ;; | ||
| 3200 | esac | ||
| 3201 | |||
| 3202 | |||
| 3174 | dnl Used in dispnew.c | 3203 | dnl Used in dispnew.c |
| 3175 | AH_TEMPLATE(PENDING_OUTPUT_COUNT, [Number of chars of output in the | 3204 | AH_TEMPLATE(PENDING_OUTPUT_COUNT, [Number of chars of output in the |
| 3176 | buffer of a stdio stream.]) | 3205 | buffer of a stdio stream.]) |
diff --git a/src/ChangeLog b/src/ChangeLog index b323a876334..5542d1db0f1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -14,6 +14,9 @@ | |||
| 14 | 14 | ||
| 15 | 2012-07-11 Glenn Morris <rgm@gnu.org> | 15 | 2012-07-11 Glenn Morris <rgm@gnu.org> |
| 16 | 16 | ||
| 17 | * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h: | ||
| 18 | * s/irix6-5.h: Move SIGNALS_VIA_CHARACTERS to configure. | ||
| 19 | |||
| 17 | * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/darwin.h: | 20 | * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/darwin.h: |
| 18 | * s/gnu-linux.h, s/hpux10-20.h, s/template.h, s/usg5-4-common.h: | 21 | * s/gnu-linux.h, s/hpux10-20.h, s/template.h, s/usg5-4-common.h: |
| 19 | Move CLASH_DETECTION to configure. | 22 | Move CLASH_DETECTION to configure. |
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 5741ef7c492..9fd7938f37c 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -41,9 +41,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 41 | /* Special items needed to make Emacs run on this system. */ | 41 | /* Special items needed to make Emacs run on this system. */ |
| 42 | 42 | ||
| 43 | /* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ | 43 | /* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ |
| 44 | #define SIGNALS_VIA_CHARACTERS | ||
| 45 | |||
| 46 | /* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ | ||
| 47 | #undef sigmask | 44 | #undef sigmask |
| 48 | 45 | ||
| 49 | #ifndef HAVE_LIBXMU | 46 | #ifndef HAVE_LIBXMU |
diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h index c9c531b70b6..184ba7d036b 100644 --- a/src/s/bsd-common.h +++ b/src/s/bsd-common.h | |||
| @@ -59,6 +59,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 59 | 59 | ||
| 60 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ | 60 | /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ |
| 61 | #define HAVE_SOCKETS | 61 | #define HAVE_SOCKETS |
| 62 | |||
| 63 | /* Send signals to subprocesses by "typing" special chars at them. */ | ||
| 64 | #define SIGNALS_VIA_CHARACTERS | ||
diff --git a/src/s/cygwin.h b/src/s/cygwin.h index 9faaea785d7..cf418135b8d 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h | |||
| @@ -76,6 +76,3 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 76 | As malloc is not the Cygwin malloc, the Cygwin memalign always | 76 | As malloc is not the Cygwin malloc, the Cygwin memalign always |
| 77 | returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */ | 77 | returns ENOSYS. A workaround is to set G_SLICE=always-malloc. */ |
| 78 | #define G_SLICE_ALWAYS_MALLOC | 78 | #define G_SLICE_ALWAYS_MALLOC |
| 79 | |||
| 80 | /* Send signals to subprocesses by "typing" special chars at them. */ | ||
| 81 | #define SIGNALS_VIA_CHARACTERS | ||
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index d61d3ae5621..463ad226ec1 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -25,17 +25,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 25 | #define USG | 25 | #define USG |
| 26 | #define GNU_LINUX | 26 | #define GNU_LINUX |
| 27 | 27 | ||
| 28 | #ifdef emacs | ||
| 29 | #ifdef HAVE_LINUX_VERSION_H | ||
| 30 | #include <linux/version.h> | ||
| 31 | |||
| 32 | #if LINUX_VERSION_CODE >= 0x20400 | ||
| 33 | /* 21 Jun 06: Eric Hanchrow <offby1@blarg.net> says this works. */ | ||
| 34 | #define SIGNALS_VIA_CHARACTERS | ||
| 35 | #endif /* LINUX_VERSION_CODE >= 0x20400 */ | ||
| 36 | #endif /* HAVE_LINUX_VERSION_H */ | ||
| 37 | #endif /* emacs */ | ||
| 38 | |||
| 39 | #if defined HAVE_GRANTPT | 28 | #if defined HAVE_GRANTPT |
| 40 | #define UNIX98_PTYS | 29 | #define UNIX98_PTYS |
| 41 | 30 | ||
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h index 1f50df600d9..506f2c6cd8f 100644 --- a/src/s/irix6-5.h +++ b/src/s/irix6-5.h | |||
| @@ -28,10 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | 28 | ||
| 29 | #undef SETUP_SLAVE_PTY | 29 | #undef SETUP_SLAVE_PTY |
| 30 | 30 | ||
| 31 | /* thomas@mathematik.uni-bremen.de says this is needed. */ | ||
| 32 | /* Make process_send_signal work by "typing" a signal character on the pty. */ | ||
| 33 | #define SIGNALS_VIA_CHARACTERS | ||
| 34 | |||
| 35 | /* Letter to use in finding device name of first pty, | 31 | /* Letter to use in finding device name of first pty, |
| 36 | if system supports pty's. 'a' means it is /dev/ptya0 */ | 32 | if system supports pty's. 'a' means it is /dev/ptya0 */ |
| 37 | #undef FIRST_PTY_LETTER | 33 | #undef FIRST_PTY_LETTER |