comparison configure.in @ 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 e6fdae9180d4
children 31beec9ee600
comparison
equal deleted inserted replaced
90831:04525a3725c7 90832:f8d5b7c904d2
2453 if test "${HAVE_FREETYPE}" = "yes"; then 2453 if test "${HAVE_FREETYPE}" = "yes"; then
2454 AC_DEFINE(HAVE_FREETYPE, 1, 2454 AC_DEFINE(HAVE_FREETYPE, 1,
2455 [Define to 1 if you have freetype and fontconfig libraries.]) 2455 [Define to 1 if you have freetype and fontconfig libraries.])
2456 AC_CHECK_PROG(HAVE_LIBOTF, libotf-config, yes, no) 2456 AC_CHECK_PROG(HAVE_LIBOTF, libotf-config, yes, no)
2457 if test "${HAVE_LIBOTF}" = "yes"; then 2457 if test "${HAVE_LIBOTF}" = "yes"; then
2458 AC_DEFINE(HAVE_LIBOTF, 1, 2458 AC_CHECK_LIB(otf, OTF_get_features, , HAVE_LIBOTF=no)
2459 [Define to 1 if you have libotf library.]) 2459 if test "${HAVE_LIBOTF}" = "yes"; then
2460 LIBOTF_CFLAGS=`libotf-config --cflags` 2460 AC_DEFINE(HAVE_LIBOTF, 1,
2461 LIBOTF_LIBS=`libotf-config --libs` 2461 [Define to 1 if you have libotf library.])
2462 LIBOTF_CFLAGS=`libotf-config --cflags`
2463 LIBOTF_LIBS=`libotf-config --libs`
2464 fi
2462 fi 2465 fi
2463 fi 2466 fi
2464 AC_SUBST(FREETYPE_CFLAGS) 2467 AC_SUBST(FREETYPE_CFLAGS)
2465 AC_SUBST(FREETYPE_LIBS) 2468 AC_SUBST(FREETYPE_LIBS)
2466 AC_SUBST(FONTCONFIG_CFLAGS) 2469 AC_SUBST(FONTCONFIG_CFLAGS)