title: How to cross-compile a autotools project for ARM?
body: <p>I am looking to cross-compile an existing library which uses GNU autotools build system. I have a Linaro arm-gcc toolchain installed in my host machine and I am able to compile small programs directly using arm-gcc.</p>
  
  <ul>
  <li><strong>Host machine:</strong> Ubuntu 12.04 Intel x64</li>
  <li><strong>Target machine:</strong> Ubuntu 14.04 ARM 32-bit (a board similar to Raspberry-Pi)</li>
  </ul>
  
  <p>I have a library source code which has configure.ac and Makefile.am files for it. I want to compile this code on host machine and generate ARM binaries which can be copied over to the target platform.</p>
  
  <p>What is the canonical way to do this?</p>
  
  <p>For specifics, I am looking for something that would work for a "Hello World" application/library in C cross-compiled using arm-linux-gnueabi-gcc and autotools.</p>