[PATCH] Have configure complain about unknown options - Mailing list pgsql-patches

From Martijn van Oosterhout
Subject [PATCH] Have configure complain about unknown options
Date
Msg-id 20060504104347.GH4752@svana.org
Whole thread Raw
Responses Re: [PATCH] Have configure complain about unknown options
List pgsql-patches
Currently, configure ignores unknown --enable/disable/with/without
options. Personally I find this behaviour annoying, so here is a patch
that fixes it. Example:

$ ./configure --enable-depends
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
<snip>
checking whether to build with Bonjour support... no
checking whether to build with OpenSSL support... no
*** Unknown feature: enable_depends ***
$

Now, while the error message could do with some help (feedback welcome)
I personally find this to be quite useful.

This patch will detect any argument that isn't declared using one of
the PGAC_ARG macros. This means that if there are any other
--enable/with arguments we accept but don't declare, this will barf on
them too. Do we have any of those? If so, we should document them
somewhere, if necessary creating a PGAC_ARG_HIDDEN so they can pass
this test.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-patches by date:

Previous
From: "Neil Conway"
Date:
Subject: Re: plpython tracebacks
Next
From: Martijn van Oosterhout
Date:
Subject: [PATCH] Add support for GnuTLS