diff --git a/config.h.in b/config.h.in
index 886229623314f80838695969d116b9e014be35fe..ff6e257743a79dc1f4f863d8fbae2890ef71b82d 100644
--- a/config.h.in
+++ b/config.h.in
@@ -45,6 +45,9 @@
 /* Define to 1 if you have the `ftime' function. */
 #undef HAVE_FTIME
 
+/* Define to 1 if you have the `getaddrinfo' function. */
+#undef HAVE_GETADDRINFO
+
 /* Define to 1 if you have the `getcwd' function. */
 #undef HAVE_GETCWD
 
diff --git a/configure b/configure
index 91b8c48f215a06ecd0b990cc9e07b2b10d8187b6..7ca9b74b63de3549d5e8420444bc0270317023f3 100755
--- a/configure
+++ b/configure
@@ -25406,12 +25406,15 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
-for ac_func in clock_gettime ftime getcwd gethostbyaddr gethostbyname gettimeofday localeconv \
-				mblen memmove memset nl_langinfo pathconf realpath setlocale socket \
-				strcasecmp strncasecmp stricmp strnicmp strchr strdup \
-				strrchr strstr strtol strtoul \
-				towupper towlower \
-				mbrlen wcsrtombs mbsrtowcs \
+
+for ac_func in getcwd pathconf realpath \
+		getaddrinfo gethostbyaddr gethostbyname socket \
+		clock_gettime ftime gettimeofday \
+		memmove memset nl_langinfo setlocale localeconv \
+		strcasecmp strncasecmp stricmp strnicmp strchr strdup \
+		strrchr strstr strtol strtoul \
+		towupper towlower \
+		mblen mbrlen wcsrtombs mbsrtowcs \
 
 do
 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`