Adjust configure tests to ignore libs in /usr/local on macOS


On macOS, if pkg-config is not used, we modify
CMAKE_SYSTEM_FRAMEWORK_PATH and CMAKE_SYSTEM_PREFIX_PATH to avoid
picking up libs from homebrew or macports.  This must be done in the
configure tests too.  Otherwise the find_package commands may return
different things for configure tests and the Qt build itself.

Task-number: QTBUG-97076
Change-Id: I91d51aac46e2be73186b49bdcc54fb640e9b0691
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commitced929aa14e942d26663d715957f236666a13879
parent1286bd5bf4348b52ec431be0c37197da9506df6e
authorJoerg Bornemann <joerg.bornemann@qt.io>
committerJoerg Bornemann <joerg.bornemann@qt.io>
commit timeTue, 26 Oct 2021 08:50:07 +0200