From: Todd C. Miller Date: Sat, 15 Dec 2001 15:57:03 +0000 (+0000) Subject: use AC_SYS_POSIX_TERMIOS instead of rolling our own X-Git-Tag: SUDO_1_6_4~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=313bbae1d3ad872390cd19e22ef183ca9cd71c4e;p=sudo use AC_SYS_POSIX_TERMIOS instead of rolling our own --- diff --git a/config.h.in b/config.h.in index 17d724f48..83e5d5a3b 100644 --- a/config.h.in +++ b/config.h.in @@ -333,9 +333,7 @@ #undef HAVE_TERMIO_H /* Define if you have the header file and tcgetattr(3). */ -#ifdef HAVE_TCGETATTR #undef HAVE_TERMIOS_H -#endif /* HAVE_TCGETATTR */ /* Define if you have the header file. */ #undef HAVE_SYS_SOCKIO_H diff --git a/configure.in b/configure.in index 6e21f55d0..b257404a9 100644 --- a/configure.in +++ b/configure.in @@ -1516,8 +1516,12 @@ AC_HEADER_DIRENT AC_CHECK_HEADERS(malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h) dnl ultrix termio/termios are broken if test "$OS" != "ultrix"; then - AC_CHECK_HEADERS(termio.h) - AC_CHECK_HEADERS(termios.h, AC_CHECK_FUNCS(tcgetattr)) + AC_SYS_POSIX_TERMIOS + if test "$ac_cv_sys_posix_termios" = "yes"; then + AC_DEFINE(HAVE_TERMIOS_H) + else + AC_CHECK_HEADERS(termio.h) + fi fi if test "$with_logincap" = "yes"; then AC_CHECK_HEADERS(login_cap.h)