1*ebfedea0SLionel Sambucdnl Id 2*ebfedea0SLionel Sambucdnl 3*ebfedea0SLionel Sambucdnl 4*ebfedea0SLionel Sambucdnl Search for struct winsize 5*ebfedea0SLionel Sambucdnl 6*ebfedea0SLionel Sambuc 7*ebfedea0SLionel SambucAC_DEFUN([AC_KRB_STRUCT_WINSIZE], [ 8*ebfedea0SLionel SambucAC_MSG_CHECKING(for struct winsize) 9*ebfedea0SLionel SambucAC_CACHE_VAL(ac_cv_struct_winsize, [ 10*ebfedea0SLionel Sambucac_cv_struct_winsize=no 11*ebfedea0SLionel Sambucfor i in sys/termios.h sys/ioctl.h; do 12*ebfedea0SLionel SambucAC_EGREP_HEADER( 13*ebfedea0SLionel Sambucstruct[[ ]]*winsize,dnl 14*ebfedea0SLionel Sambuc$i, ac_cv_struct_winsize=yes; break)dnl 15*ebfedea0SLionel Sambucdone 16*ebfedea0SLionel Sambuc]) 17*ebfedea0SLionel Sambucif test "$ac_cv_struct_winsize" = "yes"; then 18*ebfedea0SLionel Sambuc AC_DEFINE(HAVE_STRUCT_WINSIZE, 1, [define if struct winsize is declared in sys/termios.h]) 19*ebfedea0SLionel Sambucfi 20*ebfedea0SLionel SambucAC_MSG_RESULT($ac_cv_struct_winsize) 21*ebfedea0SLionel SambucAC_EGREP_HEADER(ws_xpixel, termios.h, 22*ebfedea0SLionel Sambuc AC_DEFINE(HAVE_WS_XPIXEL, 1, [define if struct winsize has ws_xpixel])) 23*ebfedea0SLionel SambucAC_EGREP_HEADER(ws_ypixel, termios.h, 24*ebfedea0SLionel Sambuc AC_DEFINE(HAVE_WS_YPIXEL, 1, [define if struct winsize has ws_ypixel])) 25*ebfedea0SLionel Sambuc]) 26