Use CURLOPT_XFERINFOFUNCTION curl option if available
commit25acc6d44db3eb5f944a6992336b00ae97c85e20
authorPetr Písař <petr.pisar@atlas.cz>
Wed, 1 Feb 2023 20:20:27 +0000 (1 21:20 +0100)
committerPetr Písař <petr.pisar@atlas.cz>
Wed, 1 Feb 2023 20:20:27 +0000 (1 21:20 +0100)
treeab0b5eaaa12a972d84c0cbead34d096fe264cbd8
parent389b9c5bca3fe20c168fe5e9009a7106bb655042
Use CURLOPT_XFERINFOFUNCTION curl option if available

curl-7.32.0 renamed CURLOPT_PROGRESSFUNCTION to
CURLOPT_XFERINFOFUNCTION. It kept the old option with a warning:

soap.c:798:13: error: 'CURLOPT_PROGRESSFUNCTION' is deprecated: since 7.32.0. Use CURLOPT_XFERINFOFUNCTION [-Werror=deprecated-declarations]
  798 |             curl_err = curl_easy_setopt(context->curl,
      |             ^~~~~~~~

To prevent from popping up the warning and -Werror failure, this patch prefers
the new option.
configure.ac
src/soap.c