[MPlayer-dev-eng] [PATCH] configure: much faster configure --help

Erik Auerswald auerswal at unix-ag.uni-kl.de
Wed Feb 13 13:36:39 CET 2013


On Wed, Feb 13, 2013 at 12:16:16AM +0100, Alexander Strasser wrote:
>   While I think about it: As the number of arguments for useful configure
> invocations is even in the worst case quite small, we could do two passes.
>   Early iteration of the arguments only checks for the help option. Then
> we do not need to check for it in the 2nd pass. That would remove the
> duplication of the help check and provide early exit even if help is not
> the 1st argument.

Sounds good.

>   Caveat:
>   ./configure -cfv --enable-debug --help
>   would work too. (Just printing help and exit).
>   OTOH I do not know if that is actually worse as currently this already
> works anyway:
>   ./configure --help --enable-debug -cvz

IMHO that does not matter.

>   ATM I would tend towards the 2-pass solution. Opinions welcome!

I prefer it as well. My patch helps the IMHO most common use case of just
checking for configure options. Your proposal additionaly speeds up adding
some options and then checking for further, e.g. to create a specific
configuration for a special use case, without removing the options already

> No new patch necessary I have done the modification locally.


While corporations dominate society and write the laws, each advance in
technology is an opening for them to further restrict its users.
                        -- Stallman's Law

More information about the MPlayer-dev-eng mailing list