make xft support default on
This commit is contained in:
parent
79916c273d
commit
76451a1346
1 changed files with 14 additions and 15 deletions
29
configure.in
29
configure.in
|
@ -116,28 +116,27 @@ dnl Check for Xft extension support and proper library files.
|
||||||
XFT=""
|
XFT=""
|
||||||
AC_MSG_CHECKING([whether to build support for the Xft extension])
|
AC_MSG_CHECKING([whether to build support for the Xft extension])
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
xft, [ --enable-xft enable support of the Xft extension [default=no]],
|
xft, [ --enable-xft enable support of the Xft extension [default=yes]])
|
||||||
if test x$enableval = "xyes"; then
|
: ${enableval="yes"}
|
||||||
AC_MSG_RESULT([yes])
|
if test x$enableval = "xyes"; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
|
||||||
AC_CHECK_LIB(Xft, XftFontOpenXlfd,
|
AC_CHECK_LIB(Xft, XftFontOpenXlfd,
|
||||||
AC_MSG_CHECKING([for X11/Xft/Xft.h])
|
AC_MSG_CHECKING([for X11/Xft/Xft.h])
|
||||||
AC_TRY_LINK(
|
AC_TRY_LINK(
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xft/Xft.h>
|
#include <X11/Xft/Xft.h>
|
||||||
, XftFont foo,
|
, XftFont foo,
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
XFT="yes"
|
XFT="yes"
|
||||||
LIBS="$LIBS -lXft",
|
LIBS="$LIBS -lXft",
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
fi,
|
|
||||||
AC_MSG_RESULT([no])
|
AC_MSG_RESULT([no])
|
||||||
)
|
fi
|
||||||
if test x$XFT = "xyes"; then
|
if test x$XFT = "xyes"; then
|
||||||
AC_DEFINE(XFT,1,Enable support of the Xft extension)
|
AC_DEFINE(XFT,1,Enable support of the Xft extension)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue