From eb63e786f37468867c81707504128cf8a4016e5b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 27 May 2013 19:29:09 -0400 Subject: [PATCH] Add --with-coretext Defaults to no. --- configure.ac | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7d6a750..bf213df 100644 --- a/configure.ac +++ b/configure.ac @@ -296,7 +296,17 @@ AM_CONDITIONAL(HAVE_UNISCRIBE, $have_uniscribe) dnl =========================================================================== -AC_CHECK_TYPE(CTFontRef, have_coretext=true, have_coretext=false, [#include ]) +AC_ARG_WITH(coretext, + [AS_HELP_STRING([--with-coretext=@<:@yes/no/auto@:>@], + [Use CoreText @<:@default=no@:>@])],, + [with_coretext=no]) +have_coretext=false +if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then + AC_CHECK_TYPE(CTFontRef, have_coretext=true,, [#include ]) +fi +if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then + AC_MSG_ERROR([CoreText support requested but libcoretext not found]) +fi if $have_coretext; then CORETEXT_CFLAGS= CORETEXT_LIBS="-framework ApplicationServices" -- 2.7.4