dnsapi: Added check for _msg_ptr vs. _ptr member in ns_msg struct.
diff --git a/configure.ac b/configure.ac
index d60099d..b248757 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1455,6 +1455,18 @@
#include <netinet/in.h>
#endif])
+dnl Check for ns_msg ptr member
+AC_CHECK_MEMBERS([ns_msg._msg_ptr],,,
+[#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_NAMESER_H
+# include <arpa/nameser.h>
+#endif])
+
dnl Check for the external timezone variables timezone and daylight
AC_CACHE_CHECK([for timezone variable], ac_cv_have_timezone,
AC_TRY_LINK([#include <time.h>],[timezone;],