]> git.ipfire.org Git - thirdparty/curl.git/commit
configure: don't enable TLS when --without-* flags are used
authorStan Hu <stanhu@gmail.com>
Fri, 12 Nov 2021 00:24:57 +0000 (16:24 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 12 Nov 2021 09:04:07 +0000 (10:04 +0100)
commitb589696f0312d50157dbaefa32c816ea288e0b76
treee5afc27dea9cb82c2334b8d5f5e8d61e5a9bf21b
parent4d58a94cd80eb46d5deb98989d82c683a3f7e199
configure: don't enable TLS when --without-* flags are used

Previously specifying `--without-gnutls` would unexpectedly attempt to
compile with GnuTLS, effectively interpreting this as
`--with-gnutls`. This caused a significant amount of confusion when
`libcurl` was built with SSL disabled since GnuTLS wasn't present.

68d89f24 dropped the `--without-*` options from the configure help, but
`AC_ARG_WITH` still defines these flags automatically. As
https://www.gnu.org/software/autoconf/manual/autoconf-2.60/html_node/External-Software.html
describes, the `action-if-given` is called when the user specifies
`--with-*` or `--without-*` options.

To prevent this confusion, we make the `--without` flag do the right
thing by ignoring the value if it set to "no".

Closes #7994
configure.ac