configure.ac: Improve the checks to ensure that portaudio.h and -lportaudio refer to the same version of PortAudio.