Fix configure on iOS
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 11 Oct 2016 20:45:22 +0000 (13:45 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 11 Oct 2016 20:48:23 +0000 (13:48 -0700)
Fixes https://github.com/behdad/harfbuzz/issues/342

configure.ac

index 235afe7..14c86b7 100644 (file)
@@ -414,7 +414,8 @@ if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
        else
                # On iOS CoreText and CoreGraphics are stand-alone frameworks
                if test "x$have_coretext" != "xtrue"; then
-                       AC_CHECK_TYPE(CTFontRef, have_coretext=true,, [#include <CoreText/CoreText.h>])
+                       # Check for a different symbol to avoid getting cached result.
+                       AC_CHECK_TYPE(CTRunRef, have_coretext=true,, [#include <CoreText/CoreText.h>])
                fi
 
                if $have_coretext; then