diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-04-29 03:22:36 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-04-29 03:22:36 +0200 |
commit | 5454988b9b653c6e4e17cd84465c0121846ede7e (patch) | |
tree | 1953b6612950d812a1503632eb9e0f18d4138738 /m4-local/gethostbyname_r.m4 | |
parent | 8d669b6a0a9c78590d926b7132358c6e5482f742 (diff) | |
download | fetchmail-5454988b9b653c6e4e17cd84465c0121846ede7e.tar.gz fetchmail-5454988b9b653c6e4e17cd84465c0121846ede7e.tar.bz2 fetchmail-5454988b9b653c6e4e17cd84465c0121846ede7e.zip |
Fix autoconf warning, rename variable to allow caching.
Diffstat (limited to 'm4-local/gethostbyname_r.m4')
-rw-r--r-- | m4-local/gethostbyname_r.m4 | 16 |
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 |