From 578ef5f7bb79a8cbfbd7b89c2c8cff8b1de7294e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Thu, 14 Sep 2006 00:42:24 +0000 Subject: Update libcaca check to use the pkg-config file shipped with libcaca 0.99, and change --disable-caca to --without-caca (to conform with other external libraries). CVS patchset: 8238 CVS date: 2006/09/14 00:42:24 --- configure.ac | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index f5166d1f4..d2aab7cc1 100644 --- a/configure.ac +++ b/configure.ac @@ -844,16 +844,17 @@ dnl --------------------------------------------- dnl Checks for Color AsCii Art library dnl --------------------------------------------- -AC_ARG_ENABLE([caca], - AC_HELP_STRING([--disable-caca], [do not build CACA support]), - [with_caca=$enableval], [with_caca=yes]) +AC_ARG_WITH([caca], + AS_HELP_STRING([--without-caca], [Do not build CACA support])) -if test "x$with_caca" = "xyes"; then - AM_PATH_CACA(0.3,, AC_MSG_RESULT([*** All CACA-dependent parts will be disabled ***])) -else - no_caca=yes +if test "x$with_caca" != "xno"; then + PKG_CHECK_MODULES([CACA], [caca cucul], [have_caca="yes"], [have_caca="no"]) + if test "x$with_caca" = "xyes" && test "x$have_caca" = "xno"; then + AC_MSG_ERROR([CACA support requested, but libcaca 0.99 not found]) + fi fi -AM_CONDITIONAL(HAVE_CACA, test x$no_caca != "xyes") + +AM_CONDITIONAL([HAVE_CACA], [test "x$have_caca" = "xyes"]) dnl --------------------------------------------- dnl Check solaris framebuffer device support @@ -2690,7 +2691,7 @@ fi if test x$no_aalib != "xyes"; then echo " - aa (Ascii ART)" fi -if test x$no_caca != "xyes"; then +if test "x$have_caca" = "xyes"; then echo " - caca (Color AsCii Art)" fi if test x$have_fb = "xyes"; then -- cgit v1.2.3