From 42f1737418b0c1d7e2ceaaaf3ddbcb2db7ab614b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 16 Aug 2005 15:52:25 +0000 Subject: Fix render checks to check for both Xrender & Xft2, and to define XRENDER --- configure.ac | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index da8e4b4..414af00 100644 --- a/configure.ac +++ b/configure.ac @@ -40,10 +40,25 @@ if test "x$xaw_use_xprint" = "xyes" ; then XLOGO_LIBS="$XLOGO_LIBS $XPRINT_UTIL_LIBS" fi -PKG_CHECK_MODULES(XRENDER, xrender) +# Use render & xft2 to draw logo? -XLOGO_CFLAGS="$XLOGO_CFLAGS $XRENDER_CFLAGS" -XLOGO_LIBS="$XLOGO_LIBS $XRENDER_LIBS" +AC_ARG_WITH(render, + AC_HELP_STRING([--with-xrender], [Use Xrender & Xft2 to draw logo]), + USE_RENDER="$withval", USE_RENDER="try") + +if test "x$USE_RENDER" = "xtry" ; then + PKG_CHECK_EXISTS([xrender xft], USE_RENDER="yes", USE_RENDER="no") +fi + +if test "x$USE_RENDER" = "xyes" ; then + PKG_CHECK_MODULES(XRENDER, xrender) + PKG_CHECK_MODULES(XFT, xft) + + AC_DEFINE(XRENDER, 1, [Define to 1 to use Xrender & Xft2 to draw logo]) + + XLOGO_CFLAGS="$XLOGO_CFLAGS $XRENDER_CFLAGS $XFT_CFLAGS" + XLOGO_LIBS="$XLOGO_LIBS $XRENDER_LIBS $XFT_LIBS" +fi AC_SUBST(XLOGO_CFLAGS) AC_SUBST(XLOGO_LIBS) -- cgit v1.2.3