Prior to this change, the ci autoconf jobs weren't looking for homebrew
headers or libraries unless pkg-config was used, so for example the
"MacOS (autotools)" ci job wasn't testing lz4 or zstd code.
Relates to #2426.
MAKE_ARGS="VERBOSE=1"
fi
fi
+if [ -d /opt/homebrew/include ]; then
+ export CFLAGS="${CFLAGS} -I/opt/homebrew/include"
+fi
+if [ -d /opt/homebrew/lib ]; then
+ export LDFLAGS="${LDFLAGS} -L/opt/homebrew/lib"
+fi
if [ -n "${DEBUG}" ]; then
if [ -n "${CFLAGS}" ]; then
export CFLAGS="${CFLAGS} -g -fsanitize=address"