dnl Check for Xft extension support and proper library files.
XFT=""
XFT2=""
-OLDLIBS=${LIBS}
dnl XFT_UTF8=""
AC_MSG_CHECKING([whether to build support for the Xft extension])
AC_ARG_ENABLE(
dnl if test "$XFT_UTF8" = "yes"; then
dnl AC_DEFINE(XFT_UTF8,1,[Support for Utf8 text in the Xft extension])
dnl fi
-else
- LIBS=${OLDLIBS}
fi
-
+AM_CONDITIONAL(XFT, test "$XFT" = "yes")
+AM_CONDITIONAL(XFT2, test "$XFT2" = "yes");
+
dnl Check for ordered 8bpp dithering
ORDEREDPSEUDO=""
AC_MSG_CHECKING([whether to include Pseudocolor ordered dithering code])
CPPFLAGS= @CPPFLAGS@ @DEBUG@
-SUBDIRS = epist
+SUBDIRS = epist
bin_SCRIPTS = bsetbg
-bin_PROGRAMS = bsetroot xftlsfonts
+
+if XFT
+if XFT2
+else
+TMP_PROGS = xftlsfonts
+endif
+endif
+
+bin_PROGRAMS = bsetroot $(TMP_PROGS)
bsetroot_SOURCES = bsetroot.cc
bsetroot_LDADD = ../src/BaseDisplay.o ../src/Color.o ../src/GCCache.o ../src/Texture.o ../src/Timer.o ../src/Image.o ../src/ImageControl.o ../src/i18n.o ../src/Util.o
-xftlsfonts_SOURCES = xftlsfonts.cc
-
MAINTAINERCLEANFILES = Makefile.in
distclean-local:
#include "../config.h"
#endif // HAVE_CONFIG_H
-#ifndef XFT
-#include <iostream>
-using std::cout;
-using std::endl;
-
-int main(int, char **) {
- cout << NAME << " version " << VERSION << endl;
- cout << "Copyright (c) 2002, Ben Jansens <ben@orodu.net>" << endl;
- cout << endl;
- cout << "Openbox was built without support for Xft fonts. This utility must"
- << endl;
- cout << "must be built with Xft support in order to function." << endl;
-}
-#else // XFT
extern "C" {
#include <X11/Xlib.h>
#include <X11/Xft/Xft.h>
XCloseDisplay(display);
return 0;
}
-#endif // XFT
-