Autoconf ffmpeg: resample library

Link with avresample or swresample, depending on the ffmpeg headers.