Home | History | Annotate | Line # | Download | only in cf
      1  1.1.1.2  elric dnl Id
      2      1.1  elric dnl
      3      1.1  elric dnl
      4      1.1  elric dnl Search for struct winsize
      5      1.1  elric dnl
      6      1.1  elric 
      7      1.1  elric AC_DEFUN([AC_KRB_STRUCT_WINSIZE], [
      8      1.1  elric AC_MSG_CHECKING(for struct winsize)
      9      1.1  elric AC_CACHE_VAL(ac_cv_struct_winsize, [
     10      1.1  elric ac_cv_struct_winsize=no
     11      1.1  elric for i in sys/termios.h sys/ioctl.h; do
     12      1.1  elric AC_EGREP_HEADER(
     13      1.1  elric struct[[ 	]]*winsize,dnl
     14      1.1  elric $i, ac_cv_struct_winsize=yes; break)dnl
     15      1.1  elric done
     16      1.1  elric ])
     17      1.1  elric if test "$ac_cv_struct_winsize" = "yes"; then
     18      1.1  elric   AC_DEFINE(HAVE_STRUCT_WINSIZE, 1, [define if struct winsize is declared in sys/termios.h])
     19      1.1  elric fi
     20      1.1  elric AC_MSG_RESULT($ac_cv_struct_winsize)
     21      1.1  elric AC_EGREP_HEADER(ws_xpixel, termios.h, 
     22      1.1  elric 	AC_DEFINE(HAVE_WS_XPIXEL, 1, [define if struct winsize has ws_xpixel]))
     23      1.1  elric AC_EGREP_HEADER(ws_ypixel, termios.h, 
     24      1.1  elric 	AC_DEFINE(HAVE_WS_YPIXEL, 1, [define if struct winsize has ws_ypixel]))
     25      1.1  elric ])
     26