configure.in
changeset 11730 ac6c607e065c
parent 11729 d1ce8396c356
child 11736 e54b6d8ffca8
     1.1 --- a/configure.in	Thu Apr 21 03:16:44 2016 -0400
     1.2 +++ b/configure.in	Thu Dec 07 16:08:09 2017 -0800
     1.3 @@ -2056,8 +2056,8 @@
     1.4  CheckMETAL()
     1.5  {
     1.6      AC_ARG_ENABLE(render-metal,
     1.7 -AC_HELP_STRING([--enable-render-metal], [enable the Metal render driver [[default=no]]]),
     1.8 -                                , enable_render_metal=no)
     1.9 +AC_HELP_STRING([--enable-render-metal], [enable the Metal render driver [[default=yes]]]),
    1.10 +                                , enable_render_metal=yes)
    1.11      if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
    1.12          dnl This should maybe make sure you have a supported SDK version.
    1.13          AC_DEFINE(SDL_VIDEO_RENDER_METAL, 1, [ ])
    1.14 @@ -3794,6 +3794,10 @@
    1.15          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
    1.16          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
    1.17          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
    1.18 +
    1.19 +        if test x$enable_render = xyes -a x$enable_render_metal = xyes; then
    1.20 +            EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-weak_framework,QuartzCore -Wl,-weak_framework,Metal"
    1.21 +        fi
    1.22          ;;
    1.23      *-nacl|*-pnacl)
    1.24          ARCH=nacl