aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--m4-local/gethostbyname_r.m416
1 files changed, 8 insertions, 8 deletions
diff --git a/m4-local/gethostbyname_r.m4 b/m4-local/gethostbyname_r.m4
index 94f36dba..980bd700 100644
--- a/m4-local/gethostbyname_r.m4
+++ b/m4-local/gethostbyname_r.m4
@@ -16,7 +16,7 @@ dnl based on David Arnold's autoconf suggestion in the threads faq
dnl
AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R],
[AC_CACHE_CHECK(number of arguments to gethostbyname_r,
- acx_which_gethostbyname_r, [
+ acx_cv_which_gethostbyname_r, [
AC_TRY_LINK([
# include <netdb.h>
], [
@@ -26,9 +26,9 @@ AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R],
struct hostent_data data;
(void) gethostbyname_r(name, he, &data);
- ],acx_which_gethostbyname_r=3,
+ ],acx_cv_which_gethostbyname_r=3,
[
-dnl acx_which_gethostbyname_r=0
+dnl acx_cv_which_gethostbyname_r=0
AC_TRY_LINK([
# include <netdb.h>
], [
@@ -38,10 +38,10 @@ dnl acx_which_gethostbyname_r=0
int buflen = 2048;
int h_errnop;
(void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
- ],acx_which_gethostbyname_r=6,
+ ],acx_cv_which_gethostbyname_r=6,
[
-dnl acx_which_gethostbyname_r=0
+dnl acx_cv_which_gethostbyname_r=0
AC_TRY_LINK([
# include <netdb.h>
], [
@@ -51,7 +51,7 @@ dnl acx_which_gethostbyname_r=0
int buflen = 2048;
int h_errnop;
(void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
- ],acx_which_gethostbyname_r=5,acx_which_gethostbyname_r=0)
+ ],acx_cv_which_gethostbyname_r=5,acx_cv_which_gethostbyname_r=0)
]
@@ -60,8 +60,8 @@ dnl acx_which_gethostbyname_r=0
)
])
-if test $acx_which_gethostbyname_r -gt 0 ; then
- AC_DEFINE_UNQUOTED([HAVE_GETHOSTBYNAME_R], $acx_which_gethostbyname_r,
+if test $acx_cv_which_gethostbyname_r -gt 0 ; then
+ AC_DEFINE_UNQUOTED([HAVE_GETHOSTBYNAME_R], $acx_cv_which_gethostbyname_r,
[Number of parameters to gethostbyname_r or 0 if not available])
fi