From: <mir...@us...> - 2006-09-27 18:27:42
|
Revision: 701 http://svn.sourceforge.net/conky/?rev=701&view=rev Author: mirrorbox Date: 2006-09-27 11:27:27 -0700 (Wed, 27 Sep 2006) Log Message: ----------- Use pkg-config instead of xft-config for detecting Xft. This should fix xft support on modern distros like FC 5. However, it works with the old ones as well. Modified Paths: -------------- trunk/conky1/configure.ac Modified: trunk/conky1/configure.ac =================================================================== --- trunk/conky1/configure.ac 2006-09-01 17:14:05 UTC (rev 700) +++ trunk/conky1/configure.ac 2006-09-27 18:27:27 UTC (rev 701) @@ -3,7 +3,7 @@ AM_INIT_AUTOMAKE(conky, 1.4.2) AM_CONFIG_HEADER(src/config.h) dnl -dnl C Compiler +nl C Compiler dnl AC_PROG_CC @@ -459,22 +459,13 @@ dnl if test x$want_xft && test x$want_x11; then - AC_PATH_PROG(XFTCONFIG, xft-config) - if test x$XFTCONFIG != x; then - dnl TODO: needs more checks - -dnl This won't work for some reason -dnl AC_CHECK_HEADERS([X11/Xft/Xft.h], [], [XFT_MISSING=yes]) - if test "x$XFT_MISSING" = xyes; then - AC_MSG_ERROR([something went wrong when checking for Xft, you're probably missing headers or it's not installed]) - fi - - AC_DEFINE(XFT, 1, [Define if you are using Xft]) - CFLAGS="$CFLAGS `$XFTCONFIG --cflags`" - XFT_LIBS=`$XFTCONFIG --libs` - else - want_xft=no - fi + PKG_CHECK_MODULES(XFT, [xft], + [ + AC_DEFINE(XFT, 1, [Define if you are using Xft]) + CFLAGS="$CFLAGS $XFT_CFLAGS" + AC_SUBST(XFT_LIBS) + ], + [want_xft=no]) fi dnl @@ -609,7 +600,6 @@ AC_SUBST(CFLAGS) AC_SUBST(X11_LIBS) -AC_SUBST(XFT_LIBS) AC_OUTPUT This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |