Help autoconf find m4 on Xcode-only systems

Closes #24904.