dogecoin: autotools build factored out

Can't speak for terseness but I think this is an improvement.

cc @offlinehacker