Use am_cv_func_working_getline, not `jm_'-prefixed version.
[gnulib.git] / m4 / jm-winsz1.m4
1 dnl From Jim Meyering.
2 #serial 1
3 AC_DEFUN(jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
4 [AC_REQUIRE([AM_SYS_POSIX_TERMIOS])
5  AC_CACHE_CHECK([whether use of TIOCGWINSZ requires termios.h],
6                 jm_cv_sys_tiocgwinsz_needs_termios_h,
7   [jm_cv_sys_tiocgwinsz_needs_termios_h=no
8
9    if test $am_cv_sys_posix_termios = yes; then
10      AC_EGREP_CPP([yes],
11      [#include <sys/types.h>
12 #      include <termios.h>
13 #      ifdef TIOCGWINSZ
14          yes
15 #      endif
16      ], jm_cv_sys_tiocgwinsz_needs_termios_h=yes)
17    fi
18   ])
19 ])