Mercurial > emacs
changeset 90832:f8d5b7c904d2
Don't define HAVE_LIBOTF if OTF_get_features is
not available.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 01 May 2007 05:10:26 +0000 |
parents | 04525a3725c7 |
children | 3816faf8a124 |
files | configure.in |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in Sun Apr 29 16:04:01 2007 +0000 +++ b/configure.in Tue May 01 05:10:26 2007 +0000 @@ -2455,10 +2455,13 @@ [Define to 1 if you have freetype and fontconfig libraries.]) AC_CHECK_PROG(HAVE_LIBOTF, libotf-config, yes, no) if test "${HAVE_LIBOTF}" = "yes"; then - AC_DEFINE(HAVE_LIBOTF, 1, - [Define to 1 if you have libotf library.]) - LIBOTF_CFLAGS=`libotf-config --cflags` - LIBOTF_LIBS=`libotf-config --libs` + AC_CHECK_LIB(otf, OTF_get_features, , HAVE_LIBOTF=no) + if test "${HAVE_LIBOTF}" = "yes"; then + AC_DEFINE(HAVE_LIBOTF, 1, + [Define to 1 if you have libotf library.]) + LIBOTF_CFLAGS=`libotf-config --cflags` + LIBOTF_LIBS=`libotf-config --libs` + fi fi fi AC_SUBST(FREETYPE_CFLAGS)