autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: menu driven configure-script


From: Philip Graham Willoughby
Subject: Re: menu driven configure-script
Date: Sat, 7 Jun 2003 18:33:33 +0100
User-agent: Mutt/1.4.1i

On 2003-06-07 19:05:47 +0000, Mikael Hansen wrote:
> Why not let autoconf create a configure-script with the possibilbity to
> set all the options via a menu (like "make menuconfig" for the linux kernel)?

Configure scripts need to run on many more platforms than the linux
kernel config program.  It is not possible to do a menu system with
standard shell commands, you need something like a C program to
interface with the terminal (probably using curses).  I suppose it would
be possible for configure to look for a C compiler and lib[n]curses, and
then compile a c program to do the menu stuff.  It could be useful for
newcomers, but it should not be the default...

Or, you could write a wrapper to configure which ran 

configure --help

and parsed the output.  Of course this would require all scripts to use
a standard way of showing the sensible options for multiple choice
options, and you'd probably want ``advanced'' parameters to be tagged
differently.

However, most packages _do_ follow the same conventions, so it ought to
be possible.

Regards,

Philip Willoughby

Systems Programmer, Department of Computing, Imperial College, London, UK
-- 
echo address@hidden | tr "bizndfohces" "pwgd9ociaku"

Why reinvent the wheel?                 Because we can make it rounder...

Attachment: pgpJeK4VwHPsv.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]