configure: Improve the check for the resolver library.