Japanese translation of message catalog for Sawfish Window-Manager
Revision | dc6b3cce1db130758b29526e57564a56e049326c (tree) |
---|---|
Time | 2002-11-09 13:48:13 |
Author | John Harper <jsh@unfa...> |
Commiter | John Harper |
use pkg-config to look for xft.pc before searching by hand. This is
2002-11-08 John Harper <jsh@unfactored.org>
* configure.in, Makedefs.in: use pkg-config to look for xft.pc
before searching by hand. This is because Xft2 (which has the
xft.pc may not be recognized by the hand-crafted tests)
@@ -1,3 +1,9 @@ | ||
1 | +2002-11-08 John Harper <jsh@unfactored.org> | |
2 | + | |
3 | + * configure.in, Makedefs.in: use pkg-config to look for xft.pc | |
4 | + before searching by hand. This is because Xft2 (which has the | |
5 | + xft.pc may not be recognized by the hand-crafted tests) | |
6 | + | |
1 | 7 | 2002-11-03 John Harper <jsh@unfactored.org> |
2 | 8 | |
3 | 9 | * po/sawfish.pot: rebuilt |
@@ -52,7 +52,7 @@ LDFLAGS=@LDFLAGS@ | ||
52 | 52 | LIBS=@LIBS@ |
53 | 53 | #LIBOBJS=@LIBOBJS@ |
54 | 54 | LIBOBJS= |
55 | -X11_CFLAGS=@X_CFLAGS@ | |
55 | +X11_CFLAGS=@X_CFLAGS@ @XFT_CFLAGS@ | |
56 | 56 | X11_LIBS=@X_PRE_LIBS@ -lX11 @X_LIBS@ @X_EXTRA_LIBS@ |
57 | 57 | EXTRA_X11_LIBS=@XINERAMA_LIBS@ @XFT_LIBS@ -lXext |
58 | 58 | IMLIB_CFLAGS=@IMLIB_CFLAGS@ |
@@ -91,19 +91,28 @@ CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}" | ||
91 | 91 | |
92 | 92 | AC_CHECK_HEADERS(X11/SM/SMlib.h X11/extensions/Xdbe.h) |
93 | 93 | |
94 | +dnl Checks for X extensions/libraries | |
94 | 95 | XINERAMA_LIBS="" |
96 | +XFT_LIBS="" | |
97 | +XFT_CFLAGS="" | |
98 | + | |
95 | 99 | AC_SUBST(XINERAMA_LIBS) |
100 | +AC_SUBST(XFT_LIBS) | |
101 | +AC_SUBST(XFT_CFLAGS) | |
102 | + | |
96 | 103 | AC_CHECK_LIB(Xinerama, XineramaQueryScreens, |
97 | 104 | [XINERAMA_LIBS="-lXinerama" |
98 | 105 | AC_CHECK_HEADERS(X11/extensions/Xinerama.h)], |
99 | 106 | [],[$X_LIBS -lX11 -lXext]) |
100 | 107 | |
101 | -XFT_LIBS="" | |
102 | -AC_SUBST(XFT_LIBS) | |
103 | -AC_CHECK_LIB(Xft, XftDrawCreate, | |
104 | - [XFT_LIBS="-lXft -lXrender" | |
105 | - AC_CHECK_HEADERS(X11/Xft/Xft.h)], | |
106 | - [], [$X_LIBS -lX11 -lXext]) | |
108 | +dnl Try using pkg-config first, since it looks like Xft2 may fail our | |
109 | +dnl hand-crafted tests | |
110 | +PKG_CHECK_MODULES(XFT, xft >= 1.0, | |
111 | + [AC_CHECK_HEADERS(X11/Xft/Xft.h)], | |
112 | + [AC_CHECK_LIB(Xft, XftDrawCreate, | |
113 | + [XFT_LIBS="-lXft -lXrender" | |
114 | + AC_CHECK_HEADERS(X11/Xft/Xft.h)], | |
115 | + [], [$X_LIBS -lX11 -lXext])]) | |
107 | 116 | |
108 | 117 | CPPFLAGS="${_cppflags}" |
109 | 118 |