configure: Only link against libresolv where necessary.
3 files changed