--- configure.in.~1.511~ 2008-02-21 13:48:06.000000000 +0100 +++ configure.in 2008-02-21 13:51:00.000000000 +0100 @@ -2025,9 +2025,11 @@ fi -HAVE_FREETYPE=no +PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= 2.2.0, HAVE_FC=yes, HAVE_FC=no) +if test "${HAVE_FC}" = "no"; then + HAVE_FREETYPE=no ### Use -lfreetype if available, unless `--with-freetype=no'. -if test "${HAVE_XFT}" = "yes"; then +elif test "${HAVE_XFT}" = "yes"; then dnl As we use Xft, we anyway use freetype. dnl In this case, there's no need of additional CFLAGS and LIBS. HAVE_FREETYPE=yes @@ -2038,13 +2040,6 @@ fi PKG_CHECK_MODULES(FREETYPE, freetype2, HAVE_FREETYPE=yes, HAVE_FREETYPE=no) - if test "${HAVE_FREETYPE}" = "yes"; then - PKG_CHECK_MODULES(FONTCONFIG, fontconfig, HAVE_FC=yes, HAVE_FC=no) - if test "${HAVE_FC}" = "no"; then - dnl Witout fontconfig, we can't use freetype at the moment. - HAVE_FREETYPE=no - fi - fi fi HAVE_LIBOTF=no Diffs between working revision and workfile end here.