Actually when you compile a config.log is saved. When I recompile and if the config command is no longer in my history I just "head config.log" and the top line was your previous config command.