1eb31d1e3bb39d5ee47bfada81f6c02b371f764f
[gnulib.git] / m4 / termios.m4
1 dnl From Jim Meyering.
2
3 # serial 1
4
5 AC_DEFUN(AM_SYS_POSIX_TERMIOS,
6 [AC_CACHE_CHECK([POSIX termios], am_cv_sys_posix_termios,
7   [AC_TRY_LINK([#include <sys/types.h>
8 #include <unistd.h>
9 #include <termios.h>],
10   [/* SunOS 4.0.3 has termios.h but not the library calls.  */
11    tcgetattr(0, 0);],
12   am_cv_sys_posix_termios=yes,
13   am_cv_sys_posix_termios=no)])
14 ])