diff options
| author | Glenn Morris | 2012-06-12 13:43:09 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-06-12 13:43:09 -0400 |
| commit | 45fa9c0fbf53ff12f78991698ec996737072d66e (patch) | |
| tree | 36504687d23b4442c44c667a7420b8c079f21b87 | |
| parent | 03043c1b27476919e6327e3c18d6e6c2b6c70631 (diff) | |
| download | emacs-45fa9c0fbf53ff12f78991698ec996737072d66e.tar.gz emacs-45fa9c0fbf53ff12f78991698ec996737072d66e.zip | |
Move NO_TERMIO, BROKEN_SIGIO from src/s to configure
* configure.in (NO_TERMIO, BROKEN_SIGIO): New AC_DEFINEs.
* src/s/bsd-common.h, src/s/darwin.h, src/s/gnu-kfreebsd.h, src/s/hpux10-20.h:
Remove NO_TERMIO.
* src/s/hpux10-20.h, src/s/openbsd.h, src/s/usg5-4-common.h:
Remove BROKEN_SIGIO.
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | configure.in | 14 | ||||
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/s/bsd-common.h | 2 | ||||
| -rw-r--r-- | src/s/darwin.h | 2 | ||||
| -rw-r--r-- | src/s/gnu-kfreebsd.h | 1 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 6 | ||||
| -rw-r--r-- | src/s/openbsd.h | 4 | ||||
| -rw-r--r-- | src/s/usg5-4-common.h | 4 |
9 files changed, 25 insertions, 18 deletions
| @@ -6,6 +6,8 @@ | |||
| 6 | 6 | ||
| 7 | 2012-06-12 Glenn Morris <rgm@gnu.org> | 7 | 2012-06-12 Glenn Morris <rgm@gnu.org> |
| 8 | 8 | ||
| 9 | * configure.in (NO_TERMIO, BROKEN_SIGIO): Move here from src/s. | ||
| 10 | |||
| 9 | * configure.in: Anticipate platforms with no src/s file. | 11 | * configure.in: Anticipate platforms with no src/s file. |
| 10 | 12 | ||
| 11 | 2012-06-12 Chong Yidong <cyd@gnu.org> | 13 | 2012-06-12 Chong Yidong <cyd@gnu.org> |
diff --git a/configure.in b/configure.in index 3ba3e184579..2750ccdcd54 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3111,6 +3111,20 @@ dnl and macros for terminal control.]) | |||
| 3111 | dnl AC_DEFINE(HAVE_TCATTR, 1, [Define to 1 if you have tcgetattr and tcsetattr.]) | 3111 | dnl AC_DEFINE(HAVE_TCATTR, 1, [Define to 1 if you have tcgetattr and tcsetattr.]) |
| 3112 | dnl fi | 3112 | dnl fi |
| 3113 | 3113 | ||
| 3114 | case $opsys in | ||
| 3115 | darwin | gnu | hpux* | *bsd ) | ||
| 3116 | AC_DEFINE(NO_TERMIO, 1, [Define if termio.h should not be included.]) | ||
| 3117 | ;; | ||
| 3118 | esac | ||
| 3119 | |||
| 3120 | dnl SIGIO exists, but the feature doesn't work in the way Emacs needs. | ||
| 3121 | dnl See eg <http://article.gmane.org/gmane.os.openbsd.ports/46831>. | ||
| 3122 | case $opsys in | ||
| 3123 | hpux* | irix6-5 | openbsd | sol2* | unixware ) | ||
| 3124 | AC_DEFINE(BROKEN_SIGIO, 1, [Define if SIGIO should not be used.]) | ||
| 3125 | ;; | ||
| 3126 | esac | ||
| 3127 | |||
| 3114 | # Set up the CFLAGS for real compilation, so we can substitute it. | 3128 | # Set up the CFLAGS for real compilation, so we can substitute it. |
| 3115 | CFLAGS="$REAL_CFLAGS" | 3129 | CFLAGS="$REAL_CFLAGS" |
| 3116 | CPPFLAGS="$REAL_CPPFLAGS" | 3130 | CPPFLAGS="$REAL_CPPFLAGS" |
diff --git a/src/ChangeLog b/src/ChangeLog index 3a011fc7432..2c5bf632bdb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2012-06-12 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * s/hpux10-20.h, s/openbsd.h, s/usg5-4-common.h: | ||
| 4 | Move BROKEN_SIGIO to configure. | ||
| 5 | |||
| 6 | * s/bsd-common.h, s/darwin.h, s/gnu-kfreebsd.h, s/hpux10-20.h: | ||
| 7 | Move NO_TERMIO to configure. | ||
| 8 | |||
| 1 | 2012-06-12 Chong Yidong <cyd@gnu.org> | 9 | 2012-06-12 Chong Yidong <cyd@gnu.org> |
| 2 | 10 | ||
| 3 | * image.c (imagemagick_load_image): Use MagickFlattenImage if | 11 | * image.c (imagemagick_load_image): Use MagickFlattenImage if |
diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h index ce3d63bb49f..ce67dd7b9af 100644 --- a/src/s/bsd-common.h +++ b/src/s/bsd-common.h | |||
| @@ -37,8 +37,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 37 | #define TABDLY OXTABS | 37 | #define TABDLY OXTABS |
| 38 | #define TAB3 OXTABS | 38 | #define TAB3 OXTABS |
| 39 | 39 | ||
| 40 | #define NO_TERMIO | ||
| 41 | |||
| 42 | /* If the system's imake configuration file defines `NeedWidePrototypes' | 40 | /* If the system's imake configuration file defines `NeedWidePrototypes' |
| 43 | as `NO', we must define NARROWPROTO manually. Such a define is | 41 | as `NO', we must define NARROWPROTO manually. Such a define is |
| 44 | generated in the Makefile generated by `xmkmf'. If we don't | 42 | generated in the Makefile generated by `xmkmf'. If we don't |
diff --git a/src/s/darwin.h b/src/s/darwin.h index 5033f91813d..ce86bc5f578 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -58,8 +58,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 58 | if system supports pty's. 'a' means it is /dev/ptya0 */ | 58 | if system supports pty's. 'a' means it is /dev/ptya0 */ |
| 59 | #define FIRST_PTY_LETTER 'p' | 59 | #define FIRST_PTY_LETTER 'p' |
| 60 | 60 | ||
| 61 | #define NO_TERMIO | ||
| 62 | |||
| 63 | /* Define HAVE_PTYS if the system supports pty devices. | 61 | /* Define HAVE_PTYS if the system supports pty devices. |
| 64 | Note: PTYs are broken on darwin <6. Use at your own risk. */ | 62 | Note: PTYs are broken on darwin <6. Use at your own risk. */ |
| 65 | #define HAVE_PTYS | 63 | #define HAVE_PTYS |
diff --git a/src/s/gnu-kfreebsd.h b/src/s/gnu-kfreebsd.h index f32e6faccd2..c1e5de5c7a7 100644 --- a/src/s/gnu-kfreebsd.h +++ b/src/s/gnu-kfreebsd.h | |||
| @@ -1,3 +1,2 @@ | |||
| 1 | #include "gnu-linux.h" | 1 | #include "gnu-linux.h" |
| 2 | 2 | ||
| 3 | #define NO_TERMIO /* use only <termios.h> */ | ||
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index 36227b6ba7b..683837891f4 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h | |||
| @@ -30,8 +30,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 30 | if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */ | 30 | if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */ |
| 31 | #define FIRST_PTY_LETTER 'p' | 31 | #define FIRST_PTY_LETTER 'p' |
| 32 | 32 | ||
| 33 | #define NO_TERMIO | ||
| 34 | |||
| 35 | /* Define HAVE_PTYS if the system supports pty devices. */ | 33 | /* Define HAVE_PTYS if the system supports pty devices. */ |
| 36 | #define HAVE_PTYS | 34 | #define HAVE_PTYS |
| 37 | 35 | ||
| @@ -45,10 +43,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 45 | 43 | ||
| 46 | /* Special hacks needed to make Emacs run on this system. */ | 44 | /* Special hacks needed to make Emacs run on this system. */ |
| 47 | 45 | ||
| 48 | /* In hpux, the symbol SIGIO is defined, but the feature | ||
| 49 | doesn't work in the way Emacs needs it to. */ | ||
| 50 | #define BROKEN_SIGIO | ||
| 51 | |||
| 52 | /* Some additional system facilities exist. */ | 46 | /* Some additional system facilities exist. */ |
| 53 | #define HAVE_PERROR /* Delete this line for version 6. */ | 47 | #define HAVE_PERROR /* Delete this line for version 6. */ |
| 54 | 48 | ||
diff --git a/src/s/openbsd.h b/src/s/openbsd.h index 0a8bab2290f..8c44cf65cc6 100644 --- a/src/s/openbsd.h +++ b/src/s/openbsd.h | |||
| @@ -3,7 +3,3 @@ | |||
| 3 | /* Nearly the same as NetBSD. Note there are differences in configure. */ | 3 | /* Nearly the same as NetBSD. Note there are differences in configure. */ |
| 4 | #include "netbsd.h" | 4 | #include "netbsd.h" |
| 5 | 5 | ||
| 6 | /* The symbol SIGIO is defined, but the feature doesn't work in the | ||
| 7 | way Emacs needs it to. See | ||
| 8 | <http://article.gmane.org/gmane.os.openbsd.ports/46831>. */ | ||
| 9 | #define BROKEN_SIGIO | ||
diff --git a/src/s/usg5-4-common.h b/src/s/usg5-4-common.h index d2f3b5d77f5..02c43814678 100644 --- a/src/s/usg5-4-common.h +++ b/src/s/usg5-4-common.h | |||
| @@ -35,8 +35,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 35 | #define HAVE_SYSV_SIGPAUSE | 35 | #define HAVE_SYSV_SIGPAUSE |
| 36 | 36 | ||
| 37 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. | 37 | /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. |
| 38 | But get <termio.h> first to make sure ttold.h doesn't interfere. | 38 | But get <termio.h> first to make sure ttold.h doesn't interfere. */ |
| 39 | And don't try to use SIGIO yet. */ | ||
| 40 | #include <sys/wait.h> | 39 | #include <sys/wait.h> |
| 41 | 40 | ||
| 42 | #ifdef emacs | 41 | #ifdef emacs |
| @@ -47,7 +46,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 47 | #include <sys/stream.h> | 46 | #include <sys/stream.h> |
| 48 | #include <sys/stropts.h> | 47 | #include <sys/stropts.h> |
| 49 | #include <sys/termios.h> | 48 | #include <sys/termios.h> |
| 50 | #define BROKEN_SIGIO | ||
| 51 | #endif | 49 | #endif |
| 52 | 50 | ||
| 53 | /* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments; | 51 | /* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments; |