70N/AFrom 284532c0884893728b75ca37f5d2a9a33f7bc8db Mon Sep 17 00:00:00 2001
70N/AFrom: Julien Cristau <jcristau@debian.org>
70N/ADate: Sat, 22 Oct 2011 17:14:46 +0200
70N/ASubject: [PATCH:xdm] greeter: link against -lXrender if xft is enabled
70N/AXmuCvtStringToXftColor uses XRenderParseColor, so require xrender for
70N/Athe xft option, and link against it.
70N/ASigned-off-by: Julien Cristau <jcristau@debian.org>
70N/AReviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
70N/A 2 files changed, 6 insertions(+), 2 deletions(-)
70N/Aindex b123a1f..2d95000 100644
70N/A@@ -311,10 +311,10 @@ AC_ARG_WITH(xft,
70N/A AC_HELP_STRING([--with-xft],
70N/A [Use Xft to draw text (default is YES if installed)]),
70N/A [USE_XFT="$withval"],
70N/A- PKG_CHECK_EXISTS(xft, [USE_XFT="yes"], [USE_XFT="no"]))
70N/A+ PKG_CHECK_EXISTS(xft xrender, [USE_XFT="yes"], [USE_XFT="no"]))
70N/A if test "x$USE_XFT" = "xyes" ; then
70N/A- PKG_CHECK_MODULES(XFT, xft)
70N/A+ PKG_CHECK_MODULES(XFT, xft xrender)
70N/A GREETER_CFLAGS="$GREETER_CFLAGS $XFT_CFLAGS"
70N/A GREETER_LIBS="$GREETER_LIBS $XFT_LIBS"
70N/A AC_DEFINE([USE_XFT], 1,
70N/Aindex 4903ea2..2fec5f4 100644
493N/A@@ -91,6 +91,10 @@ from The Open Group.
70N/A # define XDM_ASSERT(a) /* do nothing */