title: Problem installing/rebuilding Xdebug under Apple Silicon M1
body: <p>Failing to install XDebug under the new Apple Silicon M1 under Big Sur - After using <code>pecl install xdebug</code> and running <code>php --ini</code> I am getting the following error:</p>
  <pre><code>PHP Warning:  Failed loading Zend extension 'xdebug.so' (tried: /opt/homebrew/lib/php/pecl/20190902/xdebug.so (dlopen(/opt/homebrew/lib/php/pecl/20190902/xdebug.so, 9): no suitable image found.  Did find:
          /opt/homebrew/lib/php/pecl/20190902/xdebug.so: mach-o, but wrong architecture
          /opt/homebrew/lib/php/pecl/20190902/xdebug.so: stat() failed with errno=22), /opt/homebrew/lib/php/pecl/20190902/xdebug.so.so (dlopen(/opt/homebrew/lib/php/pecl/20190902/xdebug.so.so, 9): image not found)) in Unknown on line 0
  
  Warning: Failed loading Zend extension 'xdebug.so' (tried: /opt/homebrew/lib/php/pecl/20190902/xdebug.so (dlopen(/opt/homebrew/lib/php/pecl/20190902/xdebug.so, 9): no suitable image found.  Did find:
          /opt/homebrew/lib/php/pecl/20190902/xdebug.so: mach-o, but wrong architecture
          /opt/homebrew/lib/php/pecl/20190902/xdebug.so: stat() failed with errno=22), /opt/homebrew/lib/php/pecl/20190902/xdebug.so.so (dlopen(/opt/homebrew/lib/php/pecl/20190902/xdebug.so.so, 9): image not found)) in Unknown on line 0
  </code></pre>
  <p>I tried recompiling xdebug from source (<code>git clone git://github.com/xdebug/xdebug.git</code>) with the same results. Can I force the correct architecture in the <code>config.m4</code> when recompiling xdebug? - ANy other suggestions?</p>