How To

How to remember ./configure script arguments

I keep forgetting stuff, and remembering configure script arguments is damn tough for me even a week later. There is something for the rescue.

Here’s a typical scenario – you install software from source, spend many hours figuring out the configure options, and finally run:

./configure --prefix=/a/b/c --with-X --with-Y \
--with-Z-dir=/usr/local/Z --enable-A --disable-B


and after some weeks or months, if you want to re use it,

If you’re lucky, you still have the old build somewhere in your home directory.

So to get it back, you go into the old build directory and run this:

./config.status --config

This will output the exact configure arguments that you used to configure the software. You just saved yourself  hours of work trying to remember all the arguments. 😀


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s