From 53c9db2406057e3641253e14737131de3cd4407f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 17 Feb 2004 11:36:17 +0000 Subject: 19428: Fix test for #include'ing STREAMS headers --- configure.ac | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 71d2fcb99..76fdab2a2 100644 --- a/configure.ac +++ b/configure.ac @@ -562,8 +562,17 @@ if test $zsh_cv_header_termios_h_tiocgwinsz = no; then fi AH_TEMPLATE([WINSIZE_IN_PTEM], -[Define if your system defines `struct winsize' in sys/ptem.h.]) -AC_CHECK_HEADER([sys/ptem.h], AC_DEFINE(WINSIZE_IN_PTEM)) +[Define if your should include sys/stream.h and sys/ptem.h.]) +AC_CACHE_CHECK(for streams headers including struct winsize, +ac_cv_winsize_in_ptem, +[AC_TRY_COMPILE([#include +#include ], +[struct winsize wsz], +ac_cv_winsize_in_ptem=yes, +ac_cv_winsize_in_ptem=no)]) +if test $ac_cv_winsize_in_ptem = yes; then + AC_DEFINE(WINSIZE_IN_PTEM) +fi dnl ------------------- dnl CHECK FOR LIBRARIES -- cgit 1.4.1