SDL_ttf: autotools: link to CoreText, CoreGraphics and CoreFoundation frameworks for all Apple targets (9c4a8)

From 9c4a80b45f9dcfd7fda23d6cd2d80481b0381756 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 5 Jul 2026 05:01:02 +0300
Subject: [PATCH] autotools: link to CoreText, CoreGraphics and CoreFoundation
 frameworks for all Apple targets

(cherry picked from commit e74edbc52ccae38ef5d60e2ea97a9b1e366f93eb)
---
 configure    | 8 +-------
 configure.ac | 8 +-------
 2 files changed, 2 insertions(+), 14 deletions(-)

diff --git a/configure b/configure
index b60ecfc1..c1f159aa 100755
--- a/configure
+++ b/configure
@@ -20004,14 +20004,8 @@ printf "%s\n" "#define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__" >>con
 			TTF_LIBS="$TTF_LIBS -lusp10 -lgdi32 -lrpcrt4"
 			PC_LIBS="$PC_LIBS -lusp10 -lgdi32 -lrpcrt4"
 		  ;;
-		  *-*-darwin*)
+		  *-*-darwin*|*-ios-*))
 			# for coretext support:
-			TTF_LIBS="$TTF_LIBS -framework ApplicationServices"
-			PC_LIBS="$PC_LIBS -framework ApplicationServices"
-		  ;;
-		  *-ios-*)
-			# for coretext support:
-			# On iOS CoreText and CoreGraphics are stand-alone frameworks
 			TTF_LIBS="$TTF_LIBS -framework CoreText -framework CoreGraphics -framework CoreFoundation"
 			PC_LIBS="$PC_LIBS -framework CoreText -framework CoreGraphics -framework CoreFoundation"
 		  ;;
diff --git a/configure.ac b/configure.ac
index 56000105..5b9f9aec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -248,14 +248,8 @@ if test x$enable_harfbuzz = xyes; then
 			TTF_LIBS="$TTF_LIBS -lusp10 -lgdi32 -lrpcrt4"
 			PC_LIBS="$PC_LIBS -lusp10 -lgdi32 -lrpcrt4"
 		  ;;
-		  *-*-darwin*)
+		  *-*-darwin*|*-ios-*))
 			# for coretext support:
-			TTF_LIBS="$TTF_LIBS -framework ApplicationServices"
-			PC_LIBS="$PC_LIBS -framework ApplicationServices"
-		  ;;
-		  *-ios-*)
-			# for coretext support:
-			# On iOS CoreText and CoreGraphics are stand-alone frameworks
 			TTF_LIBS="$TTF_LIBS -framework CoreText -framework CoreGraphics -framework CoreFoundation"
 			PC_LIBS="$PC_LIBS -framework CoreText -framework CoreGraphics -framework CoreFoundation"
 		  ;;