309 |
# -------------------- |
# -------------------- |
310 |
AC_DEFUN([AC_SYS_POSIX_TERMIOS], |
AC_DEFUN([AC_SYS_POSIX_TERMIOS], |
311 |
[AC_CACHE_CHECK([POSIX termios], ac_cv_sys_posix_termios, |
[AC_CACHE_CHECK([POSIX termios], ac_cv_sys_posix_termios, |
312 |
[AC_TRY_LINK([#include <sys/types.h> |
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> |
313 |
#include <unistd.h> |
#include <unistd.h> |
314 |
@%:@include <termios.h>], |
#include <termios.h> |
315 |
|
]], |
316 |
[/* SunOS 4.0.3 has termios.h but not the library calls. */ |
[/* SunOS 4.0.3 has termios.h but not the library calls. */ |
317 |
tcgetattr(0, 0);], |
tcgetattr(0, 0);])], |
318 |
ac_cv_sys_posix_termios=yes, |
ac_cv_sys_posix_termios=yes, |
319 |
ac_cv_sys_posix_termios=no)]) |
ac_cv_sys_posix_termios=no)]) |
320 |
])# AC_SYS_POSIX_TERMIOS |
])# AC_SYS_POSIX_TERMIOS |