Ignore:
Timestamp:
Oct 7, 2010, 11:38:43 PM (10 years ago)
Author:
Sam Hocevar
Message:

Remove the build dependency on the getopt implementation and use libcaca
instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • toilet/trunk/configure.ac

    r4355 r4681  
    2525fi
    2626
    27 AC_CHECK_HEADERS(getopt.h sys/ioctl.h)
    28 
    29 ac_cv_have_getopt_long="no"
    30 AC_CHECK_FUNCS(getopt_long,
    31  [ac_cv_have_getopt_long="yes"],
    32  [AC_CHECK_LIB(gnugetopt, getopt_long,
    33    [ac_cv_have_getopt_long="yes"
    34     GETOPT_LIBS="${GETOPT_LIBS} -lgnugetopt"])])
    35 if test "$ac_cv_have_getopt_long" != "no"; then
    36   AC_DEFINE(HAVE_GETOPT_LONG, 1, Define to 1 if you have the ‘getopt_long’ function.)
    37 fi
    38 AM_CONDITIONAL(NEED_GETOPT_LONG, test "$ac_cv_have_getopt_long" = "no")
    39 AC_SUBST(GETOPT_LIBS)
     27AC_CHECK_HEADERS(sys/ioctl.h)
    4028
    4129AC_CACHE_CHECK([for TIOCGWINSZ],
     
    5240
    5341CUCUL="no"
    54 PKG_CHECK_MODULES(CACA, caca >= 0.99.beta17,
     42PKG_CHECK_MODULES(CACA, caca >= 0.99.beta18,
    5543 [CUCUL="yes"],
    5644 [AC_MSG_RESULT(no)
    57   AC_MSG_ERROR([you need libcaca version 0.99.beta17 or later])])
     45  AC_MSG_ERROR([you need libcaca version 0.99.beta18 or later])])
    5846
    5947AC_MSG_CHECKING([for release date])
Note: See TracChangeset for help on using the changeset viewer.