Autoconf update

Hi!
I think it's finished now, I tested this on 32bit, 64bit, and ARM 32bit and it built successfully in all cases.

Thanks,
JamesNZ