aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-10-15 09:47:43 (GMT)
committerfluxgen <fluxgen>2002-10-15 09:47:43 (GMT)
commit8c96955e6b4dae4a2227fb579f73bbdf9c8528a3 (patch)
treef36163fd9b6980f3c021cb56c137df63aedc49e3 /configure.in
parent9a479c94b7ec7eebc354292b4924822d96e00232 (diff)
downloadfluxbox-8c96955e6b4dae4a2227fb579f73bbdf9c8528a3.zip
fluxbox-8c96955e6b4dae4a2227fb579f73bbdf9c8528a3.tar.bz2
better configure support for XFT
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index c2a716c..d874ca4 100644
--- a/configure.in
+++ b/configure.in
@@ -10,8 +10,7 @@ dnl Check for various flavors of UNIX(r)
10dnl AC_AIX 10dnl AC_AIX
11dnl AC_ISC_POSIX 11dnl AC_ISC_POSIX
12 12
13dnl TODO: do this 13AC_LANG_CPLUSPLUS
14dnl AC_LANG_CPLUSPLUS
15 14
16dnl Locate required external software 15dnl Locate required external software
17AC_PROG_CC 16AC_PROG_CC
@@ -228,19 +227,27 @@ AC_ARG_ENABLE(
228 AC_MSG_RESULT([no]) 227 AC_MSG_RESULT([no])
229) 228)
230 229
230
231AC_MSG_CHECKING([whether to have Xft support]) 231AC_MSG_CHECKING([whether to have Xft support])
232AC_ARG_ENABLE( 232AC_ARG_ENABLE(
233 xft, 233 xft,
234[ --enable-xft Xft (antialias) support [default=no]], 234[ --enable-xft Xft (antialias) support [default=no]],
235 if test x$enableval = "xyes"; then 235 if test x$enableval = "xyes"; then
236 AC_MSG_RESULT([yes]) 236 AC_MSG_RESULT([yes])
237 AC_DEFINE(USE_XFT, 1, "antialias support") 237 AC_CHECK_LIB(Xft, XftFontOpen,
238 LIBS="$LIBS -lXft" 238 LIBS="$LIBS -lXft"
239 XFT=true
240 AC_DEFINE(USE_XFT, 1, "antialias support"),
241 AC_MSG_ERROR([Could not find XftFontOpen in -lXft.])
242 )
239 else 243 else
240 AC_MSG_RESULT([no]) 244 AC_MSG_RESULT([no])
245 XFT=false
241 fi, 246 fi,
242 AC_MSG_RESULT([no]) 247 AC_MSG_RESULT([no])
248 XFT=false
243) 249)
250 AM_CONDITIONAL(XFT, test x$XFT = xtrue)
244 251
245dnl Check for Xinerama support 252dnl Check for Xinerama support
246 253