How to fetch ./configure parameters used at last time?

I am upgrading LAMP stack on customer's server and need to ./configure mysql and apache with exact last settings they were compiled with last time. Where do I get these? PHP configure string can be got by php -i. What about others?


Solution 1:

Was the decompressed source directory kept around? If so, the configure flags would typically be in config.status or config.log.

This differs slightly depending on the software and whether or not autoconf was used.

Solution 2:

config.status has a --config flag to print out the last configuration. I found it by running ./config.status --help

--config     print configuration, then exit

So just run ./config.status --config, and it will print out all the configure parameters.