Last active
October 10, 2016 19:05
-
-
Save ryanbartley/0fb50d7abb619438ec4a633e859d9c14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check whether --with-coretext was given. | |
if test "${with_coretext+set}" = set; then : | |
withval=$with_coretext; | |
else | |
with_coretext=no | |
fi | |
have_coretext=false | |
if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then | |
ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h> | |
" | |
if test "x$ac_cv_type_CTFontRef" = xyes; then : | |
have_coretext=true | |
fi | |
if $have_coretext; then | |
CORETEXT_CFLAGS= | |
CORETEXT_LIBS="-framework ApplicationServices" | |
else | |
# On iOS CoreText and CoreGraphics are stand-alone frameworks | |
if test "x$have_coretext" != "xtrue"; then | |
ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <CoreText/CoreText.h> | |
" | |
if test "x$ac_cv_type_CTFontRef" = xyes; then : | |
have_coretext=true | |
fi | |
fi | |
if $have_coretext; then | |
CORETEXT_CFLAGS= | |
CORETEXT_LIBS="-framework CoreText -framework CoreGraphics" | |
fi | |
fi | |
fi | |
if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then | |
as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5 | |
fi | |
if $have_coretext; then | |
$as_echo "#define HAVE_CORETEXT 1" >>confdefs.h | |
fi | |
if $have_coretext; then | |
HAVE_CORETEXT_TRUE= | |
HAVE_CORETEXT_FALSE='#' | |
else | |
HAVE_CORETEXT_TRUE='#' | |
HAVE_CORETEXT_FALSE= | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment