diff options
| author | Glenn Morris | 2011-03-05 17:42:13 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-03-05 17:42:13 -0800 |
| commit | 870d9cf691f11eb8ee47d245dd22cbee273c8cde (patch) | |
| tree | 8307a92208a5b32111868cde01ba3967aa6589ef | |
| parent | 845fc5e555e73449596ba475060fd2674f3b51e9 (diff) | |
| download | emacs-870d9cf691f11eb8ee47d245dd22cbee273c8cde.tar.gz emacs-870d9cf691f11eb8ee47d245dd22cbee273c8cde.zip | |
* configure.in (FREETYPE_LIBS): Actually set it to something.
This was needed for linking a lucid toolkit build on a recent
Debian testing system. Without this, it failed with:
ftfont.o: undefined reference to symbol 'FT_New_Face'
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.in | 18 |
2 files changed, 17 insertions, 5 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-03-06 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.in (FREETYPE_LIBS): Actually set it to something. | ||
| 4 | |||
| 1 | 2011-03-02 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2011-03-02 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | Work around some portability problems with symlinks. | 7 | Work around some portability problems with symlinks. |
diff --git a/configure.in b/configure.in index 1f6213211da..69d1a1e5bd3 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -2244,15 +2244,23 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 2244 | fi # "$HAVE_XFT" != no | 2244 | fi # "$HAVE_XFT" != no |
| 2245 | fi # "x${with_xft}" != "xno" | 2245 | fi # "x${with_xft}" != "xno" |
| 2246 | 2246 | ||
| 2247 | dnl For the "Does Emacs use" message at the end. | 2247 | ## We used to allow building with FreeType and without Xft. |
| 2248 | ## However, the ftx font backend driver is not in good shape. | ||
| 2248 | if test "$HAVE_XFT" != "yes"; then | 2249 | if test "$HAVE_XFT" != "yes"; then |
| 2250 | dnl For the "Does Emacs use" message at the end. | ||
| 2249 | HAVE_XFT=no | 2251 | HAVE_XFT=no |
| 2252 | HAVE_FREETYPE=no | ||
| 2253 | else | ||
| 2254 | dnl Strict linkers fail with | ||
| 2255 | dnl ftfont.o: undefined reference to symbol 'FT_New_Face' | ||
| 2256 | dnl if -lfreetype is not specified. | ||
| 2257 | dnl The following is needed to set FREETYPE_LIBS. | ||
| 2258 | PKG_CHECK_MODULES(FREETYPE, freetype2, HAVE_FREETYPE=yes, | ||
| 2259 | HAVE_FREETYPE=no) | ||
| 2260 | |||
| 2261 | test "$HAVE_FREETYPE" = "no" && AC_MSG_ERROR(libxft requires libfreetype) | ||
| 2250 | fi | 2262 | fi |
| 2251 | 2263 | ||
| 2252 | ## We used to allow building with FreeType and without Xft. | ||
| 2253 | ## However, the ftx font backend driver is not in good shape. | ||
| 2254 | HAVE_FREETYPE=$HAVE_XFT | ||
| 2255 | |||
| 2256 | HAVE_LIBOTF=no | 2264 | HAVE_LIBOTF=no |
| 2257 | if test "${HAVE_FREETYPE}" = "yes"; then | 2265 | if test "${HAVE_FREETYPE}" = "yes"; then |
| 2258 | AC_DEFINE(HAVE_FREETYPE, 1, | 2266 | AC_DEFINE(HAVE_FREETYPE, 1, |