Wayne,
Since it looks like you are using homebrew, why not just install that:
eric@Erics-Mac-Pro ~ % brew info clamav
clamav: stable 0.103.0 (bottled), HEAD
Anti-virus software
https://www.clamav.net/
/usr/local/Cellar/clamav/0.103.0 (62 files, 448.2MB) *
Poured from bottle on 2020-09-16 at 07:25:03
The error however is just a quirk of Clang on macOS, so can be disregarded.
It should build fine without the flag.
From: clamav-users <clamav-users-bounces@lists.clamav.net> On Behalf Of Wayne Ho via clamav-users
Sent: Wednesday, November 11, 2020 3:24 PM
To: clamav-users@lists.clamav.net
Cc: Wayne Ho <xintuition@gmail.com>
Subject: [clamav-users] Fwd: MacOS ClamAV Configuration Errors
Hi,
I am currently a ClamXav user looking to switch over the CLI scanner. I have been the installation guide https://www.clamav.net/documents/installation-on-macos-mac-os-x, but I am getting the following configuration error:
Waynes-Mac:clamav-0.103.0 wayne$ ./configure --with-openssl=/usr/local/Cellar/openssl@1.1/1.1.1h --with-zlib=/usr/local/Cellar/zlib/1.2.11/ --with-libjson=yes --enable-check > ~/desktop/clamav-config.err
clang: error: unsupported option '-print-multi-os-directory'
clang: error: no input files
rm: conftest.so.dSYM: is a directory
configure: error:
ERROR! Check was configured, but not found. Get it from http://check.sf.net/
Note that only stderr is displayed for brevity. I am still relatively new to CLI tools, so any assistance would be appreciated.
Thanks,
Wayne