Replace autoconf variables with make variables

This has the nice advantage that you can override those
variables at make time instead of configure time.