Zoltan
Zoltan

Reputation: 3105

How to re-run ./configure with the same parameters?

A few months ago I installed an application from source by executing

./configure --whatever
make
sudo make install

I reinstalled my OS recently and now I would like to install this application again, but I don't remember what compile flags I used back then. However, since I kept all files from my home, I still have the source code and my original build. Is there a way to recover the ./configure parameters I used originally?

Upvotes: 2

Views: 1672

Answers (1)

umläute
umläute

Reputation: 31284

just re-run make? after all, i think you are mainly after re-running the installation phase rather than the configure-step.

however, to specifically answer your question: autotools record your configure-invocation in the config.status file. you can call it to re-run your configure phase "in the same conditions":

./config.status --recheck

(this is mainly needed internally by autotools: if you hack your Makefile.am or your configure.ac, automake will rebuild the build-system so the changes have an effect; in order to do this correctly, it must invoke configure in the same way as it was originally called (by the user))

Upvotes: 4

Related Questions