Previous attempt to use hand-rolled wasn't working on platforms which
do have SIGWINCH and termios.h and sys/ioctl.h but TIOCGWINSZ wasn't
defined in sys/ioctl.h (e.g. Solaris).
Fortunately autoconf has "convenient" macro for checking for such
pesky ioctl command, all what's needed is to match the expectations
between autoconf and code.
Use AC_HEADER_TIOCGWINSZ to check for TIOCGWINSZ
Previous attempt to use hand-rolled wasn't working on platforms which
do have SIGWINCH and termios.h and sys/ioctl.h but TIOCGWINSZ wasn't
defined in sys/ioctl.h (e.g. Solaris).
Fortunately autoconf has "convenient" macro for checking for such
pesky ioctl command, all what's needed is to match the expectations
between autoconf and code.