diff options
author | fluxgen <fluxgen> | 2002-10-15 09:47:43 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-10-15 09:47:43 (GMT) |
commit | 8c96955e6b4dae4a2227fb579f73bbdf9c8528a3 (patch) | |
tree | f36163fd9b6980f3c021cb56c137df63aedc49e3 | |
parent | 9a479c94b7ec7eebc354292b4924822d96e00232 (diff) | |
download | fluxbox_lack-8c96955e6b4dae4a2227fb579f73bbdf9c8528a3.zip fluxbox_lack-8c96955e6b4dae4a2227fb579f73bbdf9c8528a3.tar.bz2 |
better configure support for XFT
-rw-r--r-- | configure.in | 15 |
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) | |||
10 | dnl AC_AIX | 10 | dnl AC_AIX |
11 | dnl AC_ISC_POSIX | 11 | dnl AC_ISC_POSIX |
12 | 12 | ||
13 | dnl TODO: do this | 13 | AC_LANG_CPLUSPLUS |
14 | dnl AC_LANG_CPLUSPLUS | ||
15 | 14 | ||
16 | dnl Locate required external software | 15 | dnl Locate required external software |
17 | AC_PROG_CC | 16 | AC_PROG_CC |
@@ -228,19 +227,27 @@ AC_ARG_ENABLE( | |||
228 | AC_MSG_RESULT([no]) | 227 | AC_MSG_RESULT([no]) |
229 | ) | 228 | ) |
230 | 229 | ||
230 | |||
231 | AC_MSG_CHECKING([whether to have Xft support]) | 231 | AC_MSG_CHECKING([whether to have Xft support]) |
232 | AC_ARG_ENABLE( | 232 | AC_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 | ||
245 | dnl Check for Xinerama support | 252 | dnl Check for Xinerama support |
246 | 253 | ||