]> git.ipfire.org Git - thirdparty/squid.git/commit
Improve SQUID_YESNO error messages (#1137)
authorAmos Jeffries <yadij@users.noreply.github.com>
Sun, 11 Sep 2022 23:27:18 +0000 (23:27 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 11 Sep 2022 23:27:25 +0000 (23:27 +0000)
commitec308e40083b0b4c4921bf17c79c356a76dd38d6
treed2d97ca265218420d670ce2c1dcae6981da8c359
parent2949dd02d504b2f42293a8e1bdf89f21fdf88685
Improve SQUID_YESNO error messages (#1137)

This macro performs a very specific validation check but was
passed a mix of different error messages to display on failure.
Many of which were unclear or wrong.

Move the text of the error inside the macro to enforce
consistency and accuracy about what failed. It actually only
needs to be passed the name of the ./configure options which
was configured badly.

Also, the options configured can only take the positive form
when they fail '--with-foo=X' or 'enable-foo=X' so update the
second argment to always show that form regardless of whether
the configure.ac logic has it default enabled or disabled.

Also, fixed a bug in --with-nat-devpf validation which was
testing the wrong variable (enableval). This bug only affects
the errors displayed so no builds were significantly affected.
acinclude/squid-util.m4
configure.ac
src/security/cert_generators/helpers.m4