From 66f9492b69fdaaffc5f21a84fc01b71b632b4e4b Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 11 Feb 2018 17:25:51 -0800 Subject: [PATCH] Fixed bug 4075 - configury adds Metal.framework to linkage even if it is not available Ozkan Sezer Configury adds Metal.framework to linkage even if it is not available. My solution is setting enable_render_metal to no when Metal.framework is not found --- configure | 2 ++ configure.in | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configure b/configure index 533d68d0c..1c7f87eb0 100755 --- a/configure +++ b/configure @@ -21314,6 +21314,8 @@ $as_echo "#define SDL_VIDEO_RENDER_METAL 1" >>confdefs.h SOURCES="$SOURCES $srcdir/src/render/metal/*.m" SUMMARY_video="${SUMMARY_video} metal" + else + enable_render_metal=no fi fi } diff --git a/configure.in b/configure.in index 53d74495d..13ab2f591 100644 --- a/configure.in +++ b/configure.in @@ -2093,6 +2093,8 @@ AC_HELP_STRING([--enable-render-metal], [enable the Metal render driver [[defaul AC_DEFINE(SDL_VIDEO_RENDER_METAL, 1, [ ]) SOURCES="$SOURCES $srcdir/src/render/metal/*.m" SUMMARY_video="${SUMMARY_video} metal" + else + enable_render_metal=no fi fi }