* 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.
2012-06-12 Glenn Morris <rgm@gnu.org>
+ * configure.in (NO_TERMIO, BROKEN_SIGIO): Move here from src/s.
+
* configure.in: Anticipate platforms with no src/s file.
2012-06-12 Chong Yidong <cyd@gnu.org>
dnl AC_DEFINE(HAVE_TCATTR, 1, [Define to 1 if you have tcgetattr and tcsetattr.])
dnl fi
+case $opsys in
+ darwin | gnu | hpux* | *bsd )
+ AC_DEFINE(NO_TERMIO, 1, [Define if termio.h should not be included.])
+ ;;
+esac
+
+dnl SIGIO exists, but the feature doesn't work in the way Emacs needs.
+dnl See eg <http://article.gmane.org/gmane.os.openbsd.ports/46831>.
+case $opsys in
+ hpux* | irix6-5 | openbsd | sol2* | unixware )
+ AC_DEFINE(BROKEN_SIGIO, 1, [Define if SIGIO should not be used.])
+ ;;
+esac
+
# Set up the CFLAGS for real compilation, so we can substitute it.
CFLAGS="$REAL_CFLAGS"
CPPFLAGS="$REAL_CPPFLAGS"
+2012-06-12 Glenn Morris <rgm@gnu.org>
+
+ * s/hpux10-20.h, s/openbsd.h, s/usg5-4-common.h:
+ Move BROKEN_SIGIO to configure.
+
+ * s/bsd-common.h, s/darwin.h, s/gnu-kfreebsd.h, s/hpux10-20.h:
+ Move NO_TERMIO to configure.
+
2012-06-12 Chong Yidong <cyd@gnu.org>
* image.c (imagemagick_load_image): Use MagickFlattenImage if
#define TABDLY OXTABS
#define TAB3 OXTABS
-#define NO_TERMIO
-
/* If the system's imake configuration file defines `NeedWidePrototypes'
as `NO', we must define NARROWPROTO manually. Such a define is
generated in the Makefile generated by `xmkmf'. If we don't
if system supports pty's. 'a' means it is /dev/ptya0 */
#define FIRST_PTY_LETTER 'p'
-#define NO_TERMIO
-
/* Define HAVE_PTYS if the system supports pty devices.
Note: PTYs are broken on darwin <6. Use at your own risk. */
#define HAVE_PTYS
#include "gnu-linux.h"
-#define NO_TERMIO /* use only <termios.h> */
if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */
#define FIRST_PTY_LETTER 'p'
-#define NO_TERMIO
-
/* Define HAVE_PTYS if the system supports pty devices. */
#define HAVE_PTYS
/* Special hacks needed to make Emacs run on this system. */
-/* In hpux, the symbol SIGIO is defined, but the feature
- doesn't work in the way Emacs needs it to. */
-#define BROKEN_SIGIO
-
/* Some additional system facilities exist. */
#define HAVE_PERROR /* Delete this line for version 6. */
/* Nearly the same as NetBSD. Note there are differences in configure. */
#include "netbsd.h"
-/* The symbol SIGIO is defined, but the feature doesn't work in the
- way Emacs needs it to. See
- <http://article.gmane.org/gmane.os.openbsd.ports/46831>. */
-#define BROKEN_SIGIO
#define HAVE_SYSV_SIGPAUSE
/* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars.
- But get <termio.h> first to make sure ttold.h doesn't interfere.
- And don't try to use SIGIO yet. */
+ But get <termio.h> first to make sure ttold.h doesn't interfere. */
#include <sys/wait.h>
#ifdef emacs
#include <sys/stream.h>
#include <sys/stropts.h>
#include <sys/termios.h>
-#define BROKEN_SIGIO
#endif
/* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments;