all repos — fluxbox @ 8c96955e6b4dae4a2227fb579f73bbdf9c8528a3

custom fork of the fluxbox windowmanager

better configure support for XFT
fluxgen fluxgen
commit

8c96955e6b4dae4a2227fb579f73bbdf9c8528a3

parent

9a479c94b7ec7eebc354292b4924822d96e00232

1 files changed, 11 insertions(+), 4 deletions(-)

jump to
M configure.inconfigure.in

@@ -10,8 +10,7 @@ dnl Check for various flavors of UNIX(r)

dnl AC_AIX dnl AC_ISC_POSIX -dnl TODO: do this -dnl AC_LANG_CPLUSPLUS +AC_LANG_CPLUSPLUS dnl Locate required external software AC_PROG_CC

@@ -228,19 +227,27 @@ fi,

AC_MSG_RESULT([no]) ) + AC_MSG_CHECKING([whether to have Xft support]) AC_ARG_ENABLE( xft, [ --enable-xft Xft (antialias) support [default=no]], if test x$enableval = "xyes"; then AC_MSG_RESULT([yes]) - AC_DEFINE(USE_XFT, 1, "antialias support") - LIBS="$LIBS -lXft" + AC_CHECK_LIB(Xft, XftFontOpen, + LIBS="$LIBS -lXft" + XFT=true + AC_DEFINE(USE_XFT, 1, "antialias support"), + AC_MSG_ERROR([Could not find XftFontOpen in -lXft.]) + ) else AC_MSG_RESULT([no]) + XFT=false fi, AC_MSG_RESULT([no]) + XFT=false ) + AM_CONDITIONAL(XFT, test x$XFT = xtrue) dnl Check for Xinerama support