title: waf - cross compile, compiler detection
body: <p>I got a cross compiled rootfs in <code>${ARMHOST}</code> which I previously created via <code>buildroot</code> for a <code>armv5te</code>/<code>ARM9</code> (<code>ARM926t</code> core also known as <code>ARM926ej-s</code>) target trying to use the CodeLite toolchain</p>
  
  <pre><code>waf distclean
  ARMHOST="${HOME}/buildroot-2013.08/output/host";
  export PKG_CONFIG_PATH="${ARMHOST}/usr/lib/pkgconffg/";
  export CC="${ARMHOST}/opt/ext-toolchain/arm-none-linux-gnueabi/bin/gcc";
  export AR="${ARMHOST}/opt/ext-toolchain/arm-none-linux-gnueabi/bin/ar";
  export CROSS_COMPILE="/usr/bin/arm-none-eabi-";
  export CFLAGS="-march=armv5te -I${ARMHOST}/usr/include/ -I${ARMHOST}/opt/ext-toolchain/arm-none-linux-gnueabi/include/";
  export LDFLAGS="-L${ARMHOST}/usr/lib/";
  waf configure debug
  </code></pre>
  
  <p>Resulting in </p>
  
  <pre><code>'distclean' finished successfully (0.000s)
  Setting top to                           : ~/Desktop/myapp 
  Setting out to                           : ~/Desktop/myapp/build 
  Checking for 'gcc' (c compiler)          : not found 
  Checking for 'icc' (c compiler)          : not found 
  could not configure a c compiler!
  (complete log in ~/Desktop/myapp/build/config.log)
  </code></pre>
  
  <p>The wscript uses <code>context.load('compiler_c gnu_dirs glib2')</code> in each stage to load features.</p>
  
  <hr>
  
  <p><strong>Update #1</strong> - if I replace <code>compiler_c</code> by <code>gcc</code> then I endup with:
  CC="${ARMHOST}/opt/ext-toolchain/arm-none-linux-gneabi/bin/gcc" AR="${ARMHOST}/opt/ext-toolchain/arm-none-linux-gnueabi/bin/ar" ./waf configure
  Setting top to                           : ~/myapp
  Setting out to                           : ~/myapp/build 
  Checking for program gcc,cc              : ${ARMHOST}/opt/ext-toolchain/arm-none-linux-gnueabi/bin/gcc
  Could not determine the compiler type</p>
  
  <hr>
  
  <p><strong>So how can I tell waf that this compiler is gcc based? (code sourcery lite 2013 toolchain)</strong></p>
  
  <p>Do I have to create a new compiler profile or is there an easier way?</p>