X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=configure.in;h=fa285cf5b684d3686503734cce2af084d01bab98;hb=0e9e17a27e6dc01b8445ceb5cd496afd45fb0de1;hp=f13ba2a941d45860feb444134f09e9851384ccee;hpb=462ccd7c4d173e66a8b18e33ba719ff9361f17b1;p=chaz%2Fopenbox diff --git a/configure.in b/configure.in index f13ba2a9..fa285cf5 100644 --- a/configure.in +++ b/configure.in @@ -116,28 +116,27 @@ dnl Check for Xft extension support and proper library files. XFT="" AC_MSG_CHECKING([whether to build support for the Xft extension]) AC_ARG_ENABLE( - xft, [ --enable-xft enable support of the Xft extension [default=no]], - if test x$enableval = "xyes"; then - AC_MSG_RESULT([yes]) + xft, [ --enable-xft enable support of the Xft extension [default=yes]]) +: ${enableval="yes"} +if test x$enableval = "xyes"; then + AC_MSG_RESULT([yes]) - AC_CHECK_LIB(Xft, XftFontOpenXlfd, - AC_MSG_CHECKING([for X11/Xft/Xft.h]) - AC_TRY_LINK( + AC_CHECK_LIB(Xft, XftFontOpenXlfd, + AC_MSG_CHECKING([for X11/Xft/Xft.h]) + AC_TRY_LINK( #include #include , XftFont foo, - AC_MSG_RESULT([yes]) - XFT="yes" - LIBS="$LIBS -lXft", - AC_MSG_RESULT([no]) - ) + AC_MSG_RESULT([yes]) + XFT="yes" + LIBS="$LIBS -lXft", + AC_MSG_RESULT([no]) ) + ) - else - AC_MSG_RESULT([no]) - fi, +else AC_MSG_RESULT([no]) -) +fi if test x$XFT = "xyes"; then AC_DEFINE(XFT,1,Enable support of the Xft extension) fi