diff options
author | Evangelos Foutras <evangelos@foutrelis.com> | 2018-06-10 22:48:13 +0300 |
---|---|---|
committer | Ali Abdallah <ali@xfce.org> | 2018-09-02 08:38:53 +0200 |
commit | d462f3b951dfc4f066938e9ffe3ec769b4ca9038 (patch) | |
tree | 5e50a72933a24b2eb8a1f53432d94de291244a86 /acinclude.m4 | |
parent | 69cd925bc865a1b9794029956c9af517c9fecd51 (diff) | |
download | tumbler-d462f3b951dfc4f066938e9ffe3ec769b4ca9038.tar.gz |
Use pkg-config to find FreeType
Starting with FreeType 2.9.1, freetype-config might not be available.
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 546e2fe..596917b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -52,23 +52,7 @@ if test x"$ac_tumbler_font_thumbnailer" = x"yes"; then PKG_CHECK_MODULES([GDK_PIXBUF], [gdk-pixbuf-2.0 >= 2.14], [ dnl Check for FreeType 2.x - FREETYPE_LIBS="" - FREETYPE_CFLAGS="" - AC_PATH_PROG([FREETYPE_CONFIG], [freetype-config], [no]) - if test x"$FREETYPE_CONFIG" != x"no"; then - AC_MSG_CHECKING([FREETYPE_CFLAGS]) - FREETYPE_CFLAGS="`$FREETYPE_CONFIG --cflags`" - AC_MSG_RESULT([$FREETYPE_CFLAGS]) - - AC_MSG_CHECKING([FREETYPE_LIBS]) - FREETYPE_LIBS="`$FREETYPE_CONFIG --libs`" - AC_MSG_RESULT([$FREETYPE_LIBS]) - else - dnl We can only build the font thumbnailer if FreeType 2.x is available - ac_tumbler_font_thumbnailer=no - fi - AC_SUBST([FREETYPE_CFLAGS]) - AC_SUBST([FREETYPE_LIBS]) + PKG_CHECK_MODULES([FREETYPE], [freetype2], [], [ac_tumbler_font_thumbnailer=no]) ], [ac_tumbler_font_thumbnailer=no]) fi |