diff --git a/acinclude.m4 b/acinclude.m4
index 47d94b37e84d302c2716e25815731f6ddc8894a4..5938b105f519a4e6aabc44614f6e347739061acf 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -253,7 +253,7 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
     done
   ])
   if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
-    AC_MSG_ERROR([Cannot find proper types to use for getnameinfo args])
+    AC_MSG_WARN([Cannot find proper types to use for getnameinfo args])
   else
     gni_prev_IFS=$IFS; IFS=','
     set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
diff --git a/ares/acinclude.m4 b/ares/acinclude.m4
index 75bf3bb072f3227638caec7fe351289a718ebd85..191d8a794a519da67c567027ef7cdff94fc78410 100644
--- a/ares/acinclude.m4
+++ b/ares/acinclude.m4
@@ -253,7 +253,7 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
     done
   ])
   if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
-    AC_MSG_ERROR([Cannot find proper types to use for getnameinfo args])
+    AC_MSG_WARN([Cannot find proper types to use for getnameinfo args])
   else
     gni_prev_IFS=$IFS; IFS=','
     set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`