1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-04-17 00:35:55 +00:00

Base CENV_SYSF_BSDTTY purely on configure now.

This commit is contained in:
Olaf Seibert
2021-08-19 16:18:37 +02:00
parent 78549f162d
commit 6b892819c0
2 changed files with 26 additions and 2 deletions

View File

@@ -130,7 +130,7 @@ AC_CHECK_HEADERS([arpa/inet.h errno.h fcntl.h limits.h netinet/in.h sgtty.h \
sys/socket.h sys/time.h termios.h unistd.h net/if_tun.h \
linux/if_tun.h linux/if_packet.h net/if_tap.h sys/mtio.h \
net/nit.h sys/dlpi.h net/if_dl.h net/if_types.h \
sys/io.h libvdeplug.h])
sys/io.h libvdeplug.h, sys/ioctl_compat.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
@@ -152,6 +152,30 @@ AC_CHECK_FUNCS([alarm dup2 gettimeofday localtime_r memset socket strcasecmp \
gettimeofday getrusage setitimer tcsetattr mlockall \
setpriority])
# Check for BSD TTY stuff as fallback for termios.
AC_CHECK_MEMBER(struct tchars.t_intrc,
[AC_DEFINE(HAVE_STRUCT_TCHARS, [1], [struct tchars exists])],
[],
[
[#if HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
#if HAVE_SYS_IOCTL_COMPAT_H
#include <sys/ioctl_compat.h>
#endif]
])
AC_CHECK_MEMBER(struct ltchars.t_suspc,
[AC_DEFINE(HAVE_STRUCT_LTCHARS, [1], [struct ltchars exists])],
[],
[
[#if HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
#if HAVE_SYS_IOCTL_COMPAT_H
#include <sys/ioctl_compat.h>
#endif]
])
# Check for CPU.
# This requires install-sh, config.sub, config.guess from automake.
AC_CANONICAL_TARGET

View File

@@ -174,7 +174,7 @@
# define CENV_SYSF_TERMIOS (HAVE_TERMIOS_H && HAVE_TCSETATTR)
#endif
#ifndef CENV_SYSF_BSDTTY /* Has old BSD tty stuff */
# define CENV_SYSF_BSDTTY (!CENV_SYSF_TERMIOS && CENV_SYS_BSD)
# define CENV_SYSF_BSDTTY (!CENV_SYSF_TERMIOS && HAVE_STRUCT_TCHARS && HAVE_STRUCT_LTCHARS)
#endif
/* Large File Support (LFS)