pass --host=arm-unknown-linux-gnueabi --build=arm-unknown-linux-gnueabi to configure. (debian/rules uses that, and it starts compiling)