Although the configure.ac checks the header files needed by resolv.h  check functions for res_ninit and res_ndestroy does not include them before use resolv.h
This can cause some errors in configure script like issue #203 in trusteddomainproject/OpenDKIM.
With glibc, resolv.h itself contains all declarations for the function, so it is not affected. However in all other platform which requires some other headers for using resolv.h but has res_ninit() and/or res_ndestroy function, the check would be failed.