LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-24-2003, 09:03 AM   #1
Zingaro2002
Member
 
Registered: Feb 2002
Location: Italy
Distribution: Fedora Core 1, Red Hat 8, Red Hat 9, Knoppix 3.3 (debian sarge)
Posts: 97

Rep: Reputation: 15
./configure - which options?


Some time ago I have installed many applications on my Red Hat 8.0 box using the
./configure ...(options)
make
make test
make install

Even if this can seem a silly question: how can I know now which were the options I used in my ./configure command for a determined application?

Thank you all!!!
 
Old 01-24-2003, 09:17 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
That's virtually impossible. You could check a lot of them manually though. Do a ./configure --help and then see what all the options are. You can check each one seperatly then. To check installed locations is an easy one. Optional things which you have compiled in or use of libraries are harder. But you could check the executable with ldd to see which libraries it needs. Might give you a few clues.
The best thing to do however is to keep a log on how you compiled things. I have an lfs system so I compile everything from source. I write a small text file for each package I compile with the options I used and any other extra things I had to do to get it working.
 
Old 01-24-2003, 09:25 AM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You could hae a look at files like config.cache, config.log, etc in the source directory where you built the apps. They should be able o help you out.
 
Old 01-24-2003, 11:44 AM   #4
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,801

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Re: ./configure - which options?

Quote:
Originally posted by Zingaro2002
Some time ago I have installed many applications on my Red Hat 8.0 box using the
./configure ...(options)
make
make test
make install

Even if this can seem a silly question: how can I know now which were the options I used in my ./configure command for a determined application?

Thank you all!!!
As someone already noted, it's quite difficult to figure out after the fact which configure options you used. You could save the config.cache off to the side and rerun configure until you generate a new that matches the saved on.

To keep a package being built consistently from one release to the next, I keep a small script just above the build directory that I used to invoke the configure command. In that script I have all the options that I use to build the package. Then when I build from the sources, I just go into the top of the source tree and enter comthing like ``../configure postgresql'' and away it goes. Six months later when a new version is released, I untar the sources and can use the same configure options as I did the last time by merely rerunning the script. Of course, you have to make sure that none of the configure options' syntax have changed. Having these scripts around is a godsend when it comes time to rebuild Apache + PHP + PostgreSQL.

Try it.
 
Old 01-24-2003, 01:18 PM   #5
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Re: ./configure - which options?

Quote:
Originally posted by Zingaro2002

Even if this can seem a silly question: how can I know now which were the options I used in my ./configure command for a determined application?

Thank you all!!!
Yup. no better way than saving your config options in a file and running it. What I usually do is..
./configure --help > config.nxny && chmod 755 config.nxny && vi config.nxny
and edit the file to keep the options I want, provide values etc, save and run.

And when the installs directory tree grows out of hand, I run a simple shell script that 'snarfs' the config files renames it to some meaningful name before i wipe the installs tree.

say if the script finds, installs/net/security/OpenSSL-0.97-beta3/config.nxny, picks up that file and renames it to something like..
~/configs/net_security_OpenSSL-0.97-beta3_config.nxny

I know the PHP engine shows complie time options via <?=phpinfo(1)?>, but you knew that already.

Last edited by nxny; 01-24-2003 at 01:26 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure options for compiled binary twantrd Linux - General 3 06-28-2010 09:27 AM
dpkg-buildpackage: passing ./configure options? neocookie Debian 3 08-27-2008 09:20 PM
postgresql or ./configure options nukeu666 Linux - Software 0 11-12-2005 04:47 AM
xine-lib - configure ignoring options? lukebeales Linux - Software 4 05-28-2004 09:17 AM
How do you compile your software using optimization options (during the ./configure) joelf Linux - Software 3 09-25-2003 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration