Ignore:
Timestamp:
Sep 27, 2006, 9:18:20 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Implemented figlet's -t (adapt to terminal's width).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • toilet/trunk/configure.ac

    r1087 r1116  
    2626fi
    2727
    28 AC_CHECK_HEADERS(getopt.h)
     28AC_CHECK_HEADERS(getopt.h sys/ioctl.h)
     29
    2930AC_CHECK_FUNCS(getopt_long,
    3031 [AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the `getopt_long' function.)],
     
    3334    GETOPT_LIBS="${GETOPT_LIBS} -lgnugetopt"])])
    3435AC_SUBST(GETOPT_LIBS)
     36
     37AC_CACHE_CHECK([for TIOCGWINSZ],
     38  [ac_cv_have_tiocgwinsz],
     39  [AC_TRY_COMPILE(
     40    [#include <sys/ioctl.h>],
     41    [struct winsize ws;
     42     ioctl(1, TIOCGWINSZ, &ws);],
     43    ac_cv_have_tiocgwinsz=yes,
     44    ac_cv_have_tiocgwinsz=no)])
     45if test "${ac_cv_have_tiocgwinsz}" = "yes"; then
     46  AC_DEFINE(HAVE_TIOCGWINSZ, 1, [Define if you have TIOCGWINSZ])
     47fi
    3548
    3649CUCUL="no"
Note: See TracChangeset for help on using the changeset viewer.