]> git.ipfire.org Git - thirdparty/iproute2.git/commit
configure: fix parsing issue with more than one value per option
authorAndrea Claudi <aclaudi@redhat.com>
Thu, 14 Oct 2021 08:50:51 +0000 (10:50 +0200)
committerDavid Ahern <dsahern@kernel.org>
Fri, 15 Oct 2021 23:56:57 +0000 (17:56 -0600)
commitc330d0979440a1dec4a436fd742bb6e28d195526
tree9a1a0728e13ffa284b0bf358610f0dd8fe8a5130
parent48c379bc2afd43b3246f68ed46475f5318b1218f
configure: fix parsing issue with more than one value per option

With commit a9c3d70d902a ("configure: add options ability") users are no
more able to provide wrong command lines like:

$ ./configure --include_dir foo bar

The script simply bails out when user provides more than one value for a
single option. However, in doing so, it breaks backward compatibility with
some packaging system, which expects unknown options to be ignored.

Commit a3272b93725a ("configure: restore backward compatibility") fix this
issue, but makes it possible again for users to provide wrong command lines
such as the one above.

This fixes the issue simply ignoring autoconf-like options such as
'--opt=value'.

Fixes: a3272b93725a ("configure: restore backward compatibility")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Acked-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David Ahern <dsahern@kernel.org>
configure