diff --git a/configure b/configure index f247ccbef..b7ae81973 100755 --- a/configure +++ b/configure @@ -21775,6 +21775,10 @@ $as_echo_n "checking for Metal framework... " >&6; } #import #import + #if TARGET_CPU_X86 + #error Metal doesn't work on this configuration + #endif + int main () { diff --git a/configure.ac b/configure.ac index 74817611d..5ba9d053f 100644 --- a/configure.ac +++ b/configure.ac @@ -2156,6 +2156,10 @@ AS_HELP_STRING([--enable-render-metal], [enable the Metal render driver [[defaul #import #import #import + + #if TARGET_CPU_X86 + #error Metal doesn't work on this configuration + #endif ],[ ],[ have_metal=yes