title: 'configure' failing with Android NDK standalone toolchain
body: <p>I'm trying to build something with the Android NDK standalone compiler toolchain, but I'm getting this error:</p>
  
  <pre><code>Updating bundled third-party dependencies...
  
  bash -c 'mkdir -p output/{debug,release,test}/{FCollada/{FCDocument,FMath,FUtils,FColladaTest/{FCTestAssetManagement,FCTestExportImport,FCTestXRef}},FColladaPlugins/FArchiveXML}'
  cp output/libFColladaSD.a ../lib/libFColladaSD.a
  cp output/libFColladaSR.a ../lib/libFColladaSR.a
  
  Building SpiderMonkey...
  
  SpiderMonkey build options: --disable-tests         
  loading cache ./config.cache
  checking host system type... x86_64-unknown-linux-gnu
  checking target system type... x86_64-unknown-linux-gnu
  checking build system type... x86_64-unknown-linux-gnu
  checking for mawk... mawk
  checking for perl5... no
  checking for perl... /usr/bin/perl
  checking for gcc... gcc
  checking whether the C compiler (gcc  ) works... yes
  checking whether the C compiler (gcc  ) is a cross-compiler... no
  checking whether we are using GNU C... yes
  checking whether gcc accepts -g... yes
  checking for c++... arm-linux-androideabi-g++
  checking whether the C++ compiler (arm-linux-androideabi-g++  ) works... no
  configure: error: installation or configuration problem: C++ compiler cannot create executables.
  ERROR: SpiderMonkey build failed
  </code></pre>
  
  <p>This is what the <code>config.log</code> says: <a href="http://pastebin.com/5AFZG4CX" rel="noreferrer">http://pastebin.com/5AFZG4CX</a></p>
  
  <p>My <code>ANDROID_NDK_ROOT</code> is set as follows:</p>
  
  <pre><code>afeder@ubuntu:~/android/0ad/build/workspaces$ echo $ANDROID_NDK_ROOT
  /home/afeder/android/android-ndk-r7-crystax-4
  </code></pre>
  
  <p>What might be the cause or how do I debug it? Thank you.</p>