diff options
author | Kenichi Handa <handa@m17n.org> | 2007-05-01 05:10:26 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2007-05-01 05:10:26 +0000 |
commit | a40d6d51dbf47c7cf7cb73e04269180c10c6033b (patch) | |
tree | 23d844aa242df360a7054c86f5829fd565504383 /configure.in | |
parent | 79cec53536936fba491cf3ab9b35a22a7075a6db (diff) | |
download | emacs-a40d6d51dbf47c7cf7cb73e04269180c10c6033b.tar.gz |
Don't define HAVE_LIBOTF if OTF_get_features is
not available.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 46d574171e0..b1f3d84d7c8 100644 --- a/configure.in +++ b/configure.in @@ -2455,10 +2455,13 @@ if test "${HAVE_FREETYPE}" = "yes"; then [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) |