aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-21 17:20:22 +0000
committerYang Tse <yangsita@gmail.com>2005-12-21 17:20:22 +0000
commita0d69d52a192820ea090f2660e77affa2efeb8f6 (patch)
treeaa41d3bdf667337cacefa724ca6060765871f722
parentc23a1be1392bef647062dde30a18b88a066f1227 (diff)
Undefine HAVE_GETNAMEINFO if unable to find
proper types to use for getnameinfo args
-rw-r--r--acinclude.m43
-rw-r--r--ares/acinclude.m43
2 files changed, 6 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 5e59b153a..f270888fb 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -298,6 +298,9 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
])
if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
AC_MSG_WARN([Cannot find proper types to use for getnameinfo args])
+ AC_MSG_WARN([Undefining HAVE_GETNAMEINFO])
+ undefine([HAVE_GETNAMEINFO])dnl
+ ac_cv_func_getnameinfo="no"
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 bf1c7de42..ac8f83808 100644
--- a/ares/acinclude.m4
+++ b/ares/acinclude.m4
@@ -277,6 +277,9 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
])
if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
AC_MSG_WARN([Cannot find proper types to use for getnameinfo args])
+ AC_MSG_WARN([Undefining HAVE_GETNAMEINFO])
+ undefine([HAVE_GETNAMEINFO])dnl
+ ac_cv_func_getnameinfo="no"
else
gni_prev_IFS=$IFS; IFS=','
set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`