From: Sven Verdoolaege Date: Thu, 31 Dec 2009 17:10:53 +0000 (+0100) Subject: configure.in: check for sys/stropts.h header instead of grantpt function X-Git-Url: https://repo.or.cz/w/nvi.git/commitdiff_plain/3df0c7b81e570741a3f4406de92c75274dbf7852 configure.in: check for sys/stropts.h header instead of grantpt function Apparently, NetBSD has a grantpt function, but no sys/stropts.h header and so we shouldn't use System V pty calls on NetBSD. Problem reported by Peter Bex --- diff --git a/dist/configure.in b/dist/configure.in index f0f9e607..0033bb24 100644 --- a/dist/configure.in +++ b/dist/configure.in @@ -791,13 +791,13 @@ fi AC_MSG_RESULT($vi_cv_gettimeofday) dnl Check for which version of openpty to use, System V or Berkeley. -AC_MSG_CHECKING(for System V pty calls) AC_CACHE_VAL(vi_cv_sys5_pty, [dnl -AC_TRY_LINK(, [grantpt(0);], +AC_CHECK_HEADER(sys/stropts.h, [vi_cv_sys5_pty=yes], [vi_cv_sys5_pty=no])]) if test "$vi_cv_sys5_pty" = yes; then AC_DEFINE(HAVE_SYS5_PTY) fi +AC_MSG_CHECKING(for System V pty calls) AC_MSG_RESULT($vi_cv_sys5_pty) dnl Check for the revoke system call.