Mercurial > octave-nkf
diff configure.ac @ 15831:1cdca9bf7b7e stable
USe pkg-config for freetype2 configure check.
* configure.ac: Use PKG_CHECK_MODULES to check for freetype2 instead
of AC_CHECK_FT2.
* acinclude.m4 (AC_CHECK_FT2): Delete macro definition.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 04 Dec 2012 13:52:51 -0500 |
parents | 2e8eb9ac43a5 |
children | f366e9948259 858cbf6fc2ec |
line wrap: on
line diff
--- a/configure.ac Thu Jun 07 11:08:30 2012 -0700 +++ b/configure.ac Tue Dec 04 13:52:51 2012 -0500 @@ -857,9 +857,19 @@ ## freetype 2 - AC_CHECK_FT2([9.0.3], [AC_DEFINE(HAVE_FREETYPE, 1, [Define to 1 if you have Freetype library.]) - XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS"], - [warn_freetype="FreeType library not found. Native graphics will be disabled."]) + PKG_CHECK_MODULES([FT2], [freetype2], [ + min_ft2_version=9.03 + AC_MSG_CHECKING([for FreeType -- version >= $min_ft2_version]) + $PKG_CONFIG freetype2 --atleast-version=$min_ft2_version + ac_status=$? + if test $ac_status = 0; then + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_FREETYPE, 1, [Define to 1 if you have Freetype library.]) + XTRA_CXXFLAGS="$XTRA_CXXFLAGS $FT2_CFLAGS" + else + AC_MSG_RESULT(no) + warn_freetype="FreeType library not found. Native graphics will be disabled." + fi]) ## fontconfig library