configure: clarify --enable-debug option

- Change --enable-debug help text to say it is for developing curl.

- Warn when --enable-debug is used.

This change copies the help text and warning from cmake ENABLE_DEBUG.
Also, it shortens the "for debugging curl itself" to just say "for
debugging curl".

Now it looks like this:

  --enable-debug          Enable curl debug features (for developing
                          curl)
  --disable-debug         Disable curl debug features

Ref: https://github.com/curl/curl/issues/22481#issuecomment-5207220359

Reported-by: Viktor Szakats

Closes https://github.com/curl/curl/pull/22512
This commit is contained in:
Jay Satiro 2026-08-06 23:30:50 -04:00
parent 2a5d6a5502
commit a15cf1ea07
4 changed files with 9 additions and 5 deletions

View file

@ -146,8 +146,8 @@ Building statically is not for the faint of heart.
## Debug
If you are a curl developer and use gcc, you might want to enable more debug
options with the `--enable-debug` option.
If you are a curl developer and use gcc, you might want to enable curl debug
features (for developing curl) with the `--enable-debug` option.
curl can be built to use a whole range of libraries to provide various useful
services, and configure tries to auto-detect a decent default. If you want to