Fixed bug 4075 - configury adds Metal.framework to linkage even if it is not available
authorSam Lantinga <slouken@libsdl.org>
Sun, 11 Feb 2018 17:25:51 -0800
changeset 118642eff89e82b60
parent 11863 b3944d2ef793
child 11865 af91d564aa40
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
configure.in
     1.1 --- a/configure	Sun Feb 11 15:29:36 2018 -0800
     1.2 +++ b/configure	Sun Feb 11 17:25:51 2018 -0800
     1.3 @@ -21314,6 +21314,8 @@
     1.4  
     1.5              SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
     1.6              SUMMARY_video="${SUMMARY_video} metal"
     1.7 +        else
     1.8 +            enable_render_metal=no
     1.9          fi
    1.10      fi
    1.11  }
     2.1 --- a/configure.in	Sun Feb 11 15:29:36 2018 -0800
     2.2 +++ b/configure.in	Sun Feb 11 17:25:51 2018 -0800
     2.3 @@ -2093,6 +2093,8 @@
     2.4              AC_DEFINE(SDL_VIDEO_RENDER_METAL, 1, [ ])
     2.5              SOURCES="$SOURCES $srcdir/src/render/metal/*.m"
     2.6              SUMMARY_video="${SUMMARY_video} metal"
     2.7 +        else
     2.8 +            enable_render_metal=no
     2.9          fi
    2.10      fi
    2.11  }