diff options
| author | Kenichi Handa | 2008-10-30 07:11:41 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-10-30 07:11:41 +0000 |
| commit | 28f3a9d1fe4afc26604ccd85ac3fb74b514950e6 (patch) | |
| tree | 93c16a64cdffcf123c392026c38687a0b182fe57 | |
| parent | 35f0040952d79218e213c2e1d224c2b46fe2e0dc (diff) | |
| download | emacs-28f3a9d1fe4afc26604ccd85ac3fb74b514950e6.tar.gz emacs-28f3a9d1fe4afc26604ccd85ac3fb74b514950e6.zip | |
Check fontconfig always.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.in | 11 |
2 files changed, 8 insertions, 7 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-10-30 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> | ||
| 2 | |||
| 3 | * configure.in: Check fontconfig always. | ||
| 4 | |||
| 1 | 2008-10-30 Dan Nicolaescu <dann@ics.uci.edu> | 5 | 2008-10-30 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 6 | ||
| 3 | * configure (*-solaris2.[7-9]*): Fix typo. | 7 | * configure (*-solaris2.[7-9]*): Fix typo. |
diff --git a/configure.in b/configure.in index 3ec853bfba2..e40203bb38c 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1825,6 +1825,8 @@ either XPointer or XPointer*.])dnl | |||
| 1825 | fi | 1825 | fi |
| 1826 | 1826 | ||
| 1827 | ### Start of font-backend section. | 1827 | ### Start of font-backend section. |
| 1828 | PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= 2.2.0, HAVE_FC=yes, HAVE_FC=no) | ||
| 1829 | test "${HAVE_FC}" = "no" && with_freetype=no | ||
| 1828 | 1830 | ||
| 1829 | ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'. | 1831 | ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'. |
| 1830 | HAVE_XFT=maybe | 1832 | HAVE_XFT=maybe |
| @@ -1868,16 +1870,11 @@ if test "${HAVE_XFT}" = "yes"; then | |||
| 1868 | dnl As we use Xft, we anyway use freetype. | 1870 | dnl As we use Xft, we anyway use freetype. |
| 1869 | dnl In this case, there's no need of additional CFLAGS and LIBS. | 1871 | dnl In this case, there's no need of additional CFLAGS and LIBS. |
| 1870 | HAVE_FREETYPE=yes | 1872 | HAVE_FREETYPE=yes |
| 1873 | FONTCONFIG_CFLAGS= | ||
| 1874 | FONTCONFIG_LIBS= | ||
| 1871 | elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then | 1875 | elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then |
| 1872 | 1876 | ||
| 1873 | PKG_CHECK_MODULES(FREETYPE, freetype2, HAVE_FREETYPE=yes, HAVE_FREETYPE=no) | 1877 | PKG_CHECK_MODULES(FREETYPE, freetype2, HAVE_FREETYPE=yes, HAVE_FREETYPE=no) |
| 1874 | if test "${HAVE_FREETYPE}" = "yes"; then | ||
| 1875 | PKG_CHECK_MODULES(FONTCONFIG, fontconfig, HAVE_FC=yes, HAVE_FC=no) | ||
| 1876 | if test "${HAVE_FC}" = "no"; then | ||
| 1877 | dnl Without fontconfig, we can't use freetype at the moment. | ||
| 1878 | HAVE_FREETYPE=no | ||
| 1879 | fi | ||
| 1880 | fi | ||
| 1881 | fi | 1878 | fi |
| 1882 | 1879 | ||
| 1883 | HAVE_LIBOTF=no | 1880 | HAVE_LIBOTF=no |