Hi Luke!
I think the --host flag in configure scripts does what you want to:
--host=HOST cross-compile to build programs to run on HOST [BUILD]
So, something like "./configure --host=i586-pc-linux-gnu" should do in your
example. Haven't tried this stuff myself though...
Regards,
Magnus