瀏覽代碼

No longer check for zlib, it's provided by libcaca.

pull/1/head
Sam Hocevar sam 15 年之前
父節點
當前提交
7436d1c74f
共有 2 個文件被更改,包括 2 次插入6 次删除
  1. +1
    -5
      configure.ac
  2. +1
    -1
      src/Makefile.am

+ 1
- 5
configure.ac 查看文件

@@ -24,7 +24,7 @@ if test "$build" != "$host" -a "${PKG_CONFIG_LIBDIR}" = ""; then
export PKG_CONFIG_LIBDIR=/dev/null
fi

AC_CHECK_HEADERS(getopt.h sys/ioctl.h zlib.h)
AC_CHECK_HEADERS(getopt.h sys/ioctl.h)

ac_cv_have_getopt_long="no"
AC_CHECK_FUNCS(getopt_long,
@@ -38,10 +38,6 @@ fi
AM_CONDITIONAL(NEED_GETOPT_LONG, test "$ac_cv_have_getopt_long" = "no")
AC_SUBST(GETOPT_LIBS)

AC_CHECK_LIB(z, gzopen,
[ZLIB_LIBS="${ZLIB_LIBS} -lz"])
AC_SUBST(ZLIB_LIBS)

AC_CACHE_CHECK([for TIOCGWINSZ],
[ac_cv_have_tiocgwinsz],
[AC_TRY_COMPILE(


+ 1
- 1
src/Makefile.am 查看文件

@@ -10,7 +10,7 @@ toilet_SOURCES = main.c toilet.h \

toilet_CPPFLAGS = -DFONTDIR=\"$(datadir)/figlet\"
toilet_CFLAGS = @CACA_CFLAGS@
toilet_LDADD = @CACA_LIBS@ @GETOPT_LIBS@ @ZLIB_LIBS@
toilet_LDADD = @CACA_LIBS@ @GETOPT_LIBS@

if NEED_GETOPT_LONG
GETOPT = mygetopt.c mygetopt.h


Loading…
取消
儲存