]> Pileus Git - ~andy/fetchmail/commitdiff
Fix autoconf warning, rename variable to allow caching.
authorMatthias Andree <matthias.andree@gmx.de>
Thu, 29 Apr 2010 01:22:36 +0000 (03:22 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Thu, 29 Apr 2010 01:22:36 +0000 (03:22 +0200)
m4-local/gethostbyname_r.m4

index 94f36dba663783278fb0d93a94689a0b0c00db7d..980bd700c0e739e125f9f8b174c7e9843107d413 100644 (file)
@@ -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