]> Dogcows Code - chaz/openbox/commitdiff
make xft support default on
authorDana Jansens <danakj@orodu.net>
Fri, 2 Aug 2002 08:08:06 +0000 (08:08 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 2 Aug 2002 08:08:06 +0000 (08:08 +0000)
configure.in

index f13ba2a941d45860feb444134f09e9851384ccee..fa285cf5b684d3686503734cce2af084d01bab98 100644 (file)
@@ -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 <X11/Xlib.h>
 #include <X11/Xft/Xft.h>
 , 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
This page took 0.028018 seconds and 4 git commands to generate.