• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

Revisiondc6b3cce1db130758b29526e57564a56e049326c (tree)
Time2002-11-09 13:48:13
AuthorJohn Harper <jsh@unfa...>
CommiterJohn Harper

Log Message

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)

Change Summary

Incremental Difference

--- a/ChangeLog
+++ b/ChangeLog
@@ -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+
17 2002-11-03 John Harper <jsh@unfactored.org>
28
39 * po/sawfish.pot: rebuilt
--- a/Makedefs.in
+++ b/Makedefs.in
@@ -52,7 +52,7 @@ LDFLAGS=@LDFLAGS@
5252 LIBS=@LIBS@
5353 #LIBOBJS=@LIBOBJS@
5454 LIBOBJS=
55-X11_CFLAGS=@X_CFLAGS@
55+X11_CFLAGS=@X_CFLAGS@ @XFT_CFLAGS@
5656 X11_LIBS=@X_PRE_LIBS@ -lX11 @X_LIBS@ @X_EXTRA_LIBS@
5757 EXTRA_X11_LIBS=@XINERAMA_LIBS@ @XFT_LIBS@ -lXext
5858 IMLIB_CFLAGS=@IMLIB_CFLAGS@
--- a/configure.in
+++ b/configure.in
@@ -91,19 +91,28 @@ CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
9191
9292 AC_CHECK_HEADERS(X11/SM/SMlib.h X11/extensions/Xdbe.h)
9393
94+dnl Checks for X extensions/libraries
9495 XINERAMA_LIBS=""
96+XFT_LIBS=""
97+XFT_CFLAGS=""
98+
9599 AC_SUBST(XINERAMA_LIBS)
100+AC_SUBST(XFT_LIBS)
101+AC_SUBST(XFT_CFLAGS)
102+
96103 AC_CHECK_LIB(Xinerama, XineramaQueryScreens,
97104 [XINERAMA_LIBS="-lXinerama"
98105 AC_CHECK_HEADERS(X11/extensions/Xinerama.h)],
99106 [],[$X_LIBS -lX11 -lXext])
100107
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])])
107116
108117 CPPFLAGS="${_cppflags}"
109118