]> git.eshelyaron.com Git - emacs.git/commitdiff
Move SIGNALS_VIA_CHARACTERS from src/s to configure
authorGlenn Morris <rgm@gnu.org>
Wed, 11 Jul 2012 07:28:27 +0000 (00:28 -0700)
committerGlenn Morris <rgm@gnu.org>
Wed, 11 Jul 2012 07:28:27 +0000 (00:28 -0700)
* 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.

ChangeLog
configure.ac
src/ChangeLog
src/s/aix4-2.h
src/s/bsd-common.h
src/s/cygwin.h
src/s/gnu-linux.h
src/s/irix6-5.h

index 1cb5ed3585fc98948da9e645ec967f665ff1755f..e84ed262adb73dcd1c01c01cea5b9ab324af8bb7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,7 +9,7 @@
        * configure.ac (opsysfile): Use bsd-common on gnu systems.
 
        * configure.ac (GNU_LIBRARY_PENDING_OUTPUT_COUNT):
-       Move here from src/s.
+       (SIGNALS_VIA_CHARACTERS): Move here from src/s.
 
 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
 
index e55c40fe77cdfc32e7d925dcb08f69ea19457c39..106b0a22481392eba7dcc8e986ccdca72a8e0f6f 100644 (file)
@@ -3171,6 +3171,35 @@ dnl Used in sound.c
 AC_DEFINE_UNQUOTED(DEFAULT_SOUND_DEVICE, "$sound_device",
   [Name of the default sound device.])
 
+
+AH_TEMPLATE(SIGNALS_VIA_CHARACTERS, [Make process_send_signal work by
+"typing" a signal character on the pty.])
+
+case $opsys in
+  dnl Perry Smith <pedz@ddivt1.austin.ibm.com> says this is correct for AIX.
+  dnl thomas@mathematik.uni-bremen.de says this is needed for IRIX.
+  aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd )
+    AC_DEFINE(SIGNALS_VIA_CHARACTERS, 1)
+    ;;
+
+  dnl 21 Jun 06: Eric Hanchrow <offby1@blarg.net> says this works. 
+  dnl FIXME Does gnu-kfreebsd have linux/version.h?  It seems unlikely...
+  gnu-linux | gnu-kfreebsd )
+
+    AC_MSG_CHECKING([for signals via characters])
+    AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[
+#include <linux/version.h>
+#if LINUX_VERSION_CODE < 0x20400
+# error "Linux version too old"
+#endif
+      ]], [[]])], emacs_signals_via_chars=yes, emacs_signals_via_chars=no)
+
+    AC_MSG_RESULT([$emacs_signals_via_chars])
+    test $emacs_signals_via_chars = yes && AC_DEFINE(SIGNALS_VIA_CHARACTERS, 1)
+    ;;
+esac
+
+
 dnl Used in dispnew.c
 AH_TEMPLATE(PENDING_OUTPUT_COUNT, [Number of chars of output in the
 buffer of a stdio stream.])
index b323a87633429eac9c121816bc5a9107b5a17f59..5542d1db0f1fade56b46fa7967066e2f4b6f159e 100644 (file)
@@ -14,6 +14,9 @@
 
 2012-07-11  Glenn Morris  <rgm@gnu.org>
 
+       * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h:
+       * s/irix6-5.h: Move SIGNALS_VIA_CHARACTERS to configure.
+
        * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/darwin.h:
        * s/gnu-linux.h, s/hpux10-20.h, s/template.h, s/usg5-4-common.h:
        Move CLASH_DETECTION to configure.
index 5741ef7c4926a63f1ae085a752c06d574631b81d..9fd7938f37c82a23837163767dbffe90620a30e9 100644 (file)
@@ -40,9 +40,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 \f
 /* Special items needed to make Emacs run on this system.  */
 
-/* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct.  */
-#define SIGNALS_VIA_CHARACTERS
-
 /* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct.  */
 #undef sigmask
 
index c9c531b70b68165f45be429819dc02e70c1dec70..184ba7d036bd3a239d94284992fa7f6389591d07 100644 (file)
@@ -59,6 +59,3 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets.  */
 #define HAVE_SOCKETS
-
-/* Send signals to subprocesses by "typing" special chars at them.  */
-#define SIGNALS_VIA_CHARACTERS
index 9faaea785d7fa0b8a93f6b5bc967d58db067ca8e..cf418135b8d170f87932372b0251b118fe9ce1e7 100644 (file)
@@ -76,6 +76,3 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    As malloc is not the Cygwin malloc, the Cygwin memalign always
    returns ENOSYS.  A workaround is to set G_SLICE=always-malloc. */
 #define G_SLICE_ALWAYS_MALLOC
-
-/* Send signals to subprocesses by "typing" special chars at them.  */
-#define SIGNALS_VIA_CHARACTERS
index d61d3ae5621259516bc284d1db7afa87e48bc313..463ad226ec1a6f296cd72ceb3ddcc34dd991ce84 100644 (file)
@@ -25,17 +25,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define USG
 #define GNU_LINUX
 
-#ifdef emacs
-#ifdef HAVE_LINUX_VERSION_H
-#include <linux/version.h>
-
-#if LINUX_VERSION_CODE >= 0x20400
-/* 21 Jun 06: Eric Hanchrow <offby1@blarg.net> says this works.  */
-#define SIGNALS_VIA_CHARACTERS
-#endif /* LINUX_VERSION_CODE >= 0x20400 */
-#endif /* HAVE_LINUX_VERSION_H */
-#endif /* emacs */
-
 #if defined HAVE_GRANTPT
 #define UNIX98_PTYS
 
index 1f50df600d93b67be130ed89eeaf1833a00a04ce..506f2c6cd8fb6c451e14657e9b1f1cece6e889c4 100644 (file)
@@ -28,10 +28,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #undef SETUP_SLAVE_PTY
 
-/* thomas@mathematik.uni-bremen.de says this is needed.  */
-/* Make process_send_signal work by "typing" a signal character on the pty.  */
-#define SIGNALS_VIA_CHARACTERS
-
 /* Letter to use in finding device name of first pty,
    if system supports pty's.  'a' means it is /dev/ptya0  */
 #undef FIRST_PTY_LETTER