configure: Handle deprecated mallinfo()

We still use it if available or even deprecated.

Closes #40309

Signed-off-by: David Goulet <dgoulet@torproject.org>
7 jobs for ticket40309_035_01 in 22 minutes and 52 seconds (queued for 9 minutes and 47 seconds)
Status Job ID Name Coverage
  Test
failed #13208
debian-disable-dirauth

00:05:14

failed #13205
debian-distcheck

00:06:32

passed #13206
debian-docs

00:03:00

failed #13204
debian-hardened

00:06:20

passed #13207
debian-integration

00:17:42

failed #13203
debian-minimal

00:05:11

failed #13209
debian-nss

00:05:04

 
Name Stage Failure
failed
debian-nss Test
Test setuid failed!
FAIL src/test/test_switch_id.sh (exit status: 1)

FATAL ERROR: Failed tests: check
Uploading artifacts for failed job
Uploading artifacts...
artifacts/: found 2 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=13209 responseStatus=201 Created token=Pzgsx2EE
ERROR: Job failed: exit code 1
failed
debian-disable-dirauth Test
Test setuid failed!
FAIL src/test/test_switch_id.sh (exit status: 1)

FATAL ERROR: Failed tests: check
Uploading artifacts for failed job
Uploading artifacts...
artifacts/: found 2 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=13208 responseStatus=201 Created token=viRsJozA
ERROR: Job failed: exit code 1
failed
debian-distcheck Test
/bin/bash: line 1: file: command not found
make: *** [Makefile:20505: show-distdir-core] Error 127
ERROR: command 'make show-distdir-core' has failed.
FATAL ERROR: Unable to continue.
Uploading artifacts for failed job
Uploading artifacts...
artifacts/: found 1 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=13205 responseStatus=201 Created token=b29v454X
ERROR: Job failed: exit code 1
failed
debian-hardened Test
make[1]: Target 'all-am' not remade because of errors.
make[1]: Leaving directory '/builds/dgoulet/tor/build'
make: *** [Makefile:5798: all] Error 2
ERROR: command 'make -j4 -k all' has failed.
Uploading artifacts for failed job
Uploading artifacts...
artifacts/: found 1 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=13204 responseStatus=201 Created token=kDgqz1pV
ERROR: Job failed: exit code 1
failed
debian-minimal Test

Test setuid failed!
FAIL src/test/test_switch_id.sh (exit status: 1)

FATAL ERROR: Failed tests: check
Uploading artifacts for failed job
Uploading artifacts...
ERROR: No files to upload
ERROR: Job failed: exit code 1