aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2007-01-26 16:32:49 +0000
committerJan Djärv2007-01-26 16:32:49 +0000
commitaa4ff486d453328e8eee0a57c1f3307cf008bca5 (patch)
treedf7aaa894f1279f5ead8423bfd7b1581f8166f88
parentf2133d9e8f7d7a25462dd127d4a614bfb1cbbaae (diff)
downloademacs-aa4ff486d453328e8eee0a57c1f3307cf008bca5.tar.gz
emacs-aa4ff486d453328e8eee0a57c1f3307cf008bca5.zip
Add check for libXft.
-rw-r--r--configure.in31
-rw-r--r--src/ChangeLog4
2 files changed, 35 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index ceed242cd49..3c0dad5a561 100644
--- a/configure.in
+++ b/configure.in
@@ -2150,6 +2150,37 @@ if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
2150 fi 2150 fi
2151fi 2151fi
2152 2152
2153### Link with -lXft if available to work around a bug.
2154HAVE_XFT=maybe
2155if test "${HAVE_GTK}" = "yes"; then
2156 dnl Check if --with-pkg-config-prog has been given.
2157 if test "X${with_pkg_config_prog}" != X; then
2158 PKG_CONFIG="${with_pkg_config_prog}"
2159 fi
2160
2161 PKG_CHECK_MODULES(XFT, xft >= 0.13.0, , HAVE_XFT=no)
2162 if test "$HAVE_XFT" != no; then
2163 OLD_CFLAGS="$CPPFLAGS"
2164 OLD_CFLAGS="$CFLAGS"
2165 OLD_LIBS="$LIBS"
2166 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
2167 CFLAGS="$CFLAGS $XFT_CFLAGS"
2168 LIBS="$XFT_LIBS $LIBS"
2169 AC_CHECK_HEADER(X11/Xft/Xft.h,
2170 AC_CHECK_LIB(Xft, XftFontOpen, HAVE_XFT=yes, , $XFT_LIBS))
2171
2172 if test "${HAVE_XFT}" = "yes"; then
2173 AC_DEFINE(HAVE_XFT, 1, [Define to 1 if you have the Xft library.])
2174 AC_SUBST(XFT_LIBS)
2175 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
2176 else
2177 CFLAGS="$OLD_CPPFLAGS"
2178 CFLAGS="$OLD_CFLAGS"
2179 LIBS="$OLD_LIBS"
2180 fi
2181 fi
2182fi
2183
2153dnl Do not put whitespace before the #include statements below. 2184dnl Do not put whitespace before the #include statements below.
2154dnl Older compilers (eg sunos4 cc) choke on it. 2185dnl Older compilers (eg sunos4 cc) choke on it.
2155if test x"${USE_X_TOOLKIT}" = xmaybe; then 2186if test x"${USE_X_TOOLKIT}" = xmaybe; then
diff --git a/src/ChangeLog b/src/ChangeLog
index 3bf6763f6b7..3d7db34a057 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12007-01-26 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * Makefile.in: Use XFT_LIBS if defined.
4
12007-01-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 52007-01-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 6
3 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use 7 * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use