build: Save configure options and re-use them for automatic runs of configure