X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fjm-winsz2.m4;h=66c50409254ea83f94d83700b4fe93e4ee9bbe40;hb=50129386b48ab0a7d8267ea6a0f5d515a090df6c;hp=642e1ff1459c73076791367ebe399fe174c578a0;hpb=409d8f2d902cc6e12e40b08200f5dac27d0e98cb;p=gnulib.git diff --git a/m4/jm-winsz2.m4 b/m4/jm-winsz2.m4 index 642e1ff14..66c504092 100644 --- a/m4/jm-winsz2.m4 +++ b/m4/jm-winsz2.m4 @@ -1,7 +1,12 @@ -#serial 2 +#serial 6 -AC_DEFUN(jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL, -[AC_REQUIRE([jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H]) +# Copyright (C) 1996, 1999, 2001, 2004 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL], +[AC_REQUIRE([gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H]) AC_CACHE_CHECK([whether use of TIOCGWINSZ requires sys/ioctl.h], jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h, [jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no @@ -17,6 +22,7 @@ AC_DEFUN(jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL, fi ]) if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then - AC_DEFINE(GWINSZ_IN_SYS_IOCTL) + AC_DEFINE(GWINSZ_IN_SYS_IOCTL, 1, + [Define if your system defines TIOCGWINSZ in sys/ioctl.h.]) fi ])