X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fjm-winsz2.m4;h=fe46e15123273e99ad571f59443ba0a88be3af2b;hb=9f60473985e5f20c3efabadf2c1756b5ff560458;hp=f3c47092464f5d3fb65eb5c71fc6c73869721eac;hpb=c281d94c469bec6e34b0ccf74f02f0d3c0c6f7e2;p=gnulib.git diff --git a/m4/jm-winsz2.m4 b/m4/jm-winsz2.m4 index f3c470924..fe46e1512 100644 --- a/m4/jm-winsz2.m4 +++ b/m4/jm-winsz2.m4 @@ -1,23 +1,29 @@ -#serial 3 +# serial 7 -AC_DEFUN(jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL, -[AC_REQUIRE([jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H]) +# Copyright (C) 1996, 1999, 2001, 2004, 2009-2011 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 + gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h, + [gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no - if test $jm_cv_sys_tiocgwinsz_needs_termios_h = no; then + if test $gl_cv_sys_tiocgwinsz_needs_termios_h = no; then AC_EGREP_CPP([yes], [#include # include # ifdef TIOCGWINSZ yes # endif - ], jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes) + ], gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes) fi ]) - if test $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then - AC_DEFINE(GWINSZ_IN_SYS_IOCTL, 1, + if test $gl_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then + AC_DEFINE([GWINSZ_IN_SYS_IOCTL], [1], [Define if your system defines TIOCGWINSZ in sys/ioctl.h.]) fi ])