[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to enable configure.ac to generate configure to must take argume
Re: How to enable configure.ac to generate configure to must take arguments ?
Wed, 10 Mar 2010 15:27:25 -0700
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:18.104.22.168) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3
On 03/10/2010 03:19 PM, TJ Yang wrote:
>> I still don't see why you think this is a good thing. This violates the
>> GNU Coding Standards. Most developers are already quite familiar with
>> the concept of './configure --help' if they want details, without having
>> to be told that with a no-argument run; and most packages are already
>> smart enough about doing a sane thing with a default of no arguments.
> I am learning autotool by autoconfiscating xymon project(see R1).
> The existing hand-made "configure" script need to ask questions to
> decide following goals
> 1. build a local-client that process xymon messages before sending it out.
> 1.1 this option need to build bind to pcre library.
Use AC_ARG_WITH to allow a toggle between building with the pcre library
or not, and choose a sane default (probably without).
> 2. build a centralize client which dump raw system message to server.
> 2.1 no need to bind to pcre .
> 3 build a xymon server with depend on more server side software like
> ldap,rrdtool etc..
> this "configure" without command options wouldn't achieve above goals.
Why not? With the correct use of AC_ARG_WITH and AC_ARG_ENABLE, you've
given the user all the flexibility they need via command line arguments.
Those options will show up in --help, but you don't have to force the
user to specify --with-* and --enable-* if you chose sane defaults. And
your sane defaults can go to either extreme: building a minimal package;
or assuming the user wanted everything unless they asked otherwise,
along with erroring out if the user doesn't have enough prerequisites to
support everything by default.
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
Description: OpenPGP digital signature