Socket6

 view release on metacpan or  search on metacpan

configure  view on Meta::CPAN

for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
    for ac_prog in egrep; do
    for ac_exec_ext in '' $ac_executable_extensions; do
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
      as_fn_executable_p "$ac_path_EGREP" || continue
# Check for GNU ac_path_EGREP and select it if it is found.
  # Check for GNU $ac_path_EGREP
case `"$ac_path_EGREP" --version 2>&1` in
*GNU*)
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
*)
  ac_count=0
  $as_echo_n 0123456789 >"conftest.in"
  while :
  do
    cat "conftest.in" "conftest.in" >"conftest.tmp"
    mv "conftest.tmp" "conftest.in"
    cp "conftest.in" "conftest.nl"
    $as_echo 'EGREP' >> "conftest.nl"
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
    as_fn_arith $ac_count + 1 && ac_count=$as_val
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
      # Best one so far, save it but keep looking for a better one
      ac_cv_path_EGREP="$ac_path_EGREP"
      ac_path_EGREP_max=$ac_count
    fi
    # 10*(2^10) chars as input seems more than enough
    test $ac_count -gt 10 && break
  done
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
esac

      $ac_path_EGREP_found && break 3
    done
  done
  done
IFS=$as_save_IFS
  if test -z "$ac_cv_path_EGREP"; then
    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  fi
else
  ac_cv_path_EGREP=$EGREP
fi

   fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
$as_echo "$ac_cv_path_EGREP" >&6; }
 EGREP="$ac_cv_path_EGREP"




ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
if test "x$ac_cv_func_getaddrinfo" = xyes; then :
    ac_cv_lib_socket_getaddrinfo=no
  ac_cv_lib_inet6_getaddrinfo=no

else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getaddrinfo ();
int
main ()
{
return getaddrinfo ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_socket_getaddrinfo=yes
else
  ac_cv_lib_socket_getaddrinfo=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
      LIBS="$LIBS -lsocket -lnsl"
    ac_cv_lib_inet6_getaddrinfo=no

else
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
    if ${ipv6_cv_dir+:} false; then :
  $as_echo_n "(cached) " >&6
else
        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
	  break
	fi
      done
fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
$as_echo "$ipv6_cv_dir" >&6; }
    if test $ipv6_cv_dir = no; then
      ac_cv_lib_inet6_getaddrinfo=no
    else
      if test x$ipv6_libinet6 = x; then
	ipv6_libinet6=no
	SAVELDFLAGS="$LDFLAGS"
	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
      fi
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -linet6" >&5
$as_echo_n "checking for getaddrinfo in -linet6... " >&6; }
if ${ac_cv_lib_inet6_getaddrinfo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet6  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getaddrinfo ();
int
main ()
{
return getaddrinfo ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_inet6_getaddrinfo=yes
else
  ac_cv_lib_inet6_getaddrinfo=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getaddrinfo" >&5
$as_echo "$ac_cv_lib_inet6_getaddrinfo" >&6; }
if test "x$ac_cv_lib_inet6_getaddrinfo" = xyes; then :
  	if test $ipv6_libinet6 = no; then
	  ipv6_libinet6=yes
	  LIBS="$LIBS -linet6"
	fi
fi
      if test $ipv6_libinet6 = no; then
	LDFLAGS="$SAVELDFLAGS"
      fi
    fi
fi

fi
ipv6_cv_getaddrinfo=no
if test $ac_cv_func_getaddrinfo = yes -o $ac_cv_lib_socket_getaddrinfo = yes \
     -o $ac_cv_lib_inet6_getaddrinfo = yes
then
  ipv6_cv_getaddrinfo=yes
fi
if test $ipv6_cv_getaddrinfo = no; then
  if test getaddrinfo = getaddrinfo; then
    for ipv6_cv_pfx in o n; do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "${ipv6_cv_pfx}getaddrinfo" >/dev/null 2>&1; then :
  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getaddrinfo" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getaddrinfo" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

fi

fi
rm -f conftest*

      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getaddrinfo = Xyes; then
	ipv6_cv_getaddrinfo=yes
	break
      fi
    done
  fi
fi
if test $ipv6_cv_getaddrinfo = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETADDRINFO 1
_ACEOF

  :
else
  :
fi


ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
if test "x$ac_cv_func_getnameinfo" = xyes; then :
    ac_cv_lib_socket_getnameinfo=no
  ac_cv_lib_inet6_getnameinfo=no

else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -lsocket" >&5
$as_echo_n "checking for getnameinfo in -lsocket... " >&6; }
if ${ac_cv_lib_socket_getnameinfo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getnameinfo ();
int
main ()
{
return getnameinfo ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_socket_getnameinfo=yes
else
  ac_cv_lib_socket_getnameinfo=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getnameinfo" >&5
$as_echo "$ac_cv_lib_socket_getnameinfo" >&6; }
if test "x$ac_cv_lib_socket_getnameinfo" = xyes; then :
      LIBS="$LIBS -lsocket -lnsl"
    ac_cv_lib_inet6_getnameinfo=no

else
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
    if ${ipv6_cv_dir+:} false; then :
  $as_echo_n "(cached) " >&6
else
        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
	  break
	fi
      done
fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
$as_echo "$ipv6_cv_dir" >&6; }
    if test $ipv6_cv_dir = no; then
      ac_cv_lib_inet6_getnameinfo=no
    else
      if test x$ipv6_libinet6 = x; then
	ipv6_libinet6=no
	SAVELDFLAGS="$LDFLAGS"
	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
      fi
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo in -linet6" >&5
$as_echo_n "checking for getnameinfo in -linet6... " >&6; }
if ${ac_cv_lib_inet6_getnameinfo+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet6  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getnameinfo ();
int
main ()
{
return getnameinfo ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_inet6_getnameinfo=yes
else
  ac_cv_lib_inet6_getnameinfo=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getnameinfo" >&5
$as_echo "$ac_cv_lib_inet6_getnameinfo" >&6; }
if test "x$ac_cv_lib_inet6_getnameinfo" = xyes; then :
  	if test $ipv6_libinet6 = no; then
	  ipv6_libinet6=yes
	  LIBS="$LIBS -linet6"
	fi
fi
      if test $ipv6_libinet6 = no; then
	LDFLAGS="$SAVELDFLAGS"
      fi
    fi
fi

fi
ipv6_cv_getnameinfo=no
if test $ac_cv_func_getnameinfo = yes -o $ac_cv_lib_socket_getnameinfo = yes \
     -o $ac_cv_lib_inet6_getnameinfo = yes
then
  ipv6_cv_getnameinfo=yes
fi
if test $ipv6_cv_getnameinfo = no; then
  if test getnameinfo = getaddrinfo; then
    for ipv6_cv_pfx in o n; do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "${ipv6_cv_pfx}getnameinfo" >/dev/null 2>&1; then :
  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getnameinfo" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getnameinfo" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

fi

fi
rm -f conftest*

      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getnameinfo = Xyes; then
	ipv6_cv_getnameinfo=yes
	break
      fi
    done
  fi
fi
if test $ipv6_cv_getnameinfo = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETNAMEINFO 1
_ACEOF

  :
else
  :
fi


ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
if test "x$ac_cv_func_gethostbyname2" = xyes; then :
    ac_cv_lib_socket_gethostbyname2=no
  ac_cv_lib_inet6_gethostbyname2=no

else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2 in -lsocket" >&5
$as_echo_n "checking for gethostbyname2 in -lsocket... " >&6; }
if ${ac_cv_lib_socket_gethostbyname2+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname2 ();
int
main ()
{
return gethostbyname2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_socket_gethostbyname2=yes
else
  ac_cv_lib_socket_gethostbyname2=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname2" >&5
$as_echo "$ac_cv_lib_socket_gethostbyname2" >&6; }
if test "x$ac_cv_lib_socket_gethostbyname2" = xyes; then :
      LIBS="$LIBS -lsocket -lnsl"
    ac_cv_lib_inet6_gethostbyname2=no

else
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
    if ${ipv6_cv_dir+:} false; then :
  $as_echo_n "(cached) " >&6
else
        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
	  break
	fi
      done
fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
$as_echo "$ipv6_cv_dir" >&6; }
    if test $ipv6_cv_dir = no; then
      ac_cv_lib_inet6_gethostbyname2=no
    else
      if test x$ipv6_libinet6 = x; then
	ipv6_libinet6=no
	SAVELDFLAGS="$LDFLAGS"
	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
      fi
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2 in -linet6" >&5
$as_echo_n "checking for gethostbyname2 in -linet6... " >&6; }
if ${ac_cv_lib_inet6_gethostbyname2+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet6  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char gethostbyname2 ();
int
main ()
{
return gethostbyname2 ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_inet6_gethostbyname2=yes
else
  ac_cv_lib_inet6_gethostbyname2=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_gethostbyname2" >&5
$as_echo "$ac_cv_lib_inet6_gethostbyname2" >&6; }
if test "x$ac_cv_lib_inet6_gethostbyname2" = xyes; then :
  	if test $ipv6_libinet6 = no; then
	  ipv6_libinet6=yes
	  LIBS="$LIBS -linet6"
	fi
fi
      if test $ipv6_libinet6 = no; then
	LDFLAGS="$SAVELDFLAGS"
      fi
    fi
fi

fi
ipv6_cv_gethostbyname2=no
if test $ac_cv_func_gethostbyname2 = yes -o $ac_cv_lib_socket_gethostbyname2 = yes \
     -o $ac_cv_lib_inet6_gethostbyname2 = yes
then
  ipv6_cv_gethostbyname2=yes
fi
if test $ipv6_cv_gethostbyname2 = no; then
  if test gethostbyname2 = getaddrinfo; then
    for ipv6_cv_pfx in o n; do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "${ipv6_cv_pfx}gethostbyname2" >/dev/null 2>&1; then :
  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}gethostbyname2" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}gethostbyname2" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

fi

fi
rm -f conftest*

      if eval test X\$ac_cv_func_${ipv6_cv_pfx}gethostbyname2 = Xyes; then
	ipv6_cv_gethostbyname2=yes
	break
      fi
    done
  fi
fi
if test $ipv6_cv_gethostbyname2 = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETHOSTBYNAME2 1
_ACEOF

  :
else
  :
fi


ac_fn_c_check_func "$LINENO" "getipnodebyname" "ac_cv_func_getipnodebyname"
if test "x$ac_cv_func_getipnodebyname" = xyes; then :
    ac_cv_lib_socket_getipnodebyname=no
  ac_cv_lib_inet6_getipnodebyname=no

else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getipnodebyname in -lsocket" >&5
$as_echo_n "checking for getipnodebyname in -lsocket... " >&6; }
if ${ac_cv_lib_socket_getipnodebyname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getipnodebyname ();
int
main ()
{
return getipnodebyname ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_socket_getipnodebyname=yes
else
  ac_cv_lib_socket_getipnodebyname=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getipnodebyname" >&5
$as_echo "$ac_cv_lib_socket_getipnodebyname" >&6; }
if test "x$ac_cv_lib_socket_getipnodebyname" = xyes; then :
      LIBS="$LIBS -lsocket -lnsl"
    ac_cv_lib_inet6_getipnodebyname=no

else
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
    if ${ipv6_cv_dir+:} false; then :
  $as_echo_n "(cached) " >&6
else
        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
	  break
	fi
      done
fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
$as_echo "$ipv6_cv_dir" >&6; }
    if test $ipv6_cv_dir = no; then
      ac_cv_lib_inet6_getipnodebyname=no
    else
      if test x$ipv6_libinet6 = x; then
	ipv6_libinet6=no
	SAVELDFLAGS="$LDFLAGS"
	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
      fi
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getipnodebyname in -linet6" >&5
$as_echo_n "checking for getipnodebyname in -linet6... " >&6; }
if ${ac_cv_lib_inet6_getipnodebyname+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet6  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getipnodebyname ();
int
main ()
{
return getipnodebyname ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_inet6_getipnodebyname=yes
else
  ac_cv_lib_inet6_getipnodebyname=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getipnodebyname" >&5
$as_echo "$ac_cv_lib_inet6_getipnodebyname" >&6; }
if test "x$ac_cv_lib_inet6_getipnodebyname" = xyes; then :
  	if test $ipv6_libinet6 = no; then
	  ipv6_libinet6=yes
	  LIBS="$LIBS -linet6"
	fi
fi
      if test $ipv6_libinet6 = no; then
	LDFLAGS="$SAVELDFLAGS"
      fi
    fi
fi

fi
ipv6_cv_getipnodebyname=no
if test $ac_cv_func_getipnodebyname = yes -o $ac_cv_lib_socket_getipnodebyname = yes \
     -o $ac_cv_lib_inet6_getipnodebyname = yes
then
  ipv6_cv_getipnodebyname=yes
fi
if test $ipv6_cv_getipnodebyname = no; then
  if test getipnodebyname = getaddrinfo; then
    for ipv6_cv_pfx in o n; do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "${ipv6_cv_pfx}getipnodebyname" >/dev/null 2>&1; then :
  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getipnodebyname" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getipnodebyname" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

fi

fi
rm -f conftest*

      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getipnodebyname = Xyes; then
	ipv6_cv_getipnodebyname=yes
	break
      fi
    done
  fi
fi
if test $ipv6_cv_getipnodebyname = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIPNODEBYNAME 1
_ACEOF

  :
else
  :
fi


ac_fn_c_check_func "$LINENO" "getipnodebyaddr" "ac_cv_func_getipnodebyaddr"
if test "x$ac_cv_func_getipnodebyaddr" = xyes; then :
    ac_cv_lib_socket_getipnodebyaddr=no
  ac_cv_lib_inet6_getipnodebyaddr=no

else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getipnodebyaddr in -lsocket" >&5
$as_echo_n "checking for getipnodebyaddr in -lsocket... " >&6; }
if ${ac_cv_lib_socket_getipnodebyaddr+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getipnodebyaddr ();
int
main ()
{
return getipnodebyaddr ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_socket_getipnodebyaddr=yes
else
  ac_cv_lib_socket_getipnodebyaddr=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getipnodebyaddr" >&5
$as_echo "$ac_cv_lib_socket_getipnodebyaddr" >&6; }
if test "x$ac_cv_lib_socket_getipnodebyaddr" = xyes; then :
      LIBS="$LIBS -lsocket -lnsl"
    ac_cv_lib_inet6_getipnodebyaddr=no

else
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
    if ${ipv6_cv_dir+:} false; then :
  $as_echo_n "(cached) " >&6
else
        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
	  break
	fi
      done
fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
$as_echo "$ipv6_cv_dir" >&6; }
    if test $ipv6_cv_dir = no; then
      ac_cv_lib_inet6_getipnodebyaddr=no
    else
      if test x$ipv6_libinet6 = x; then
	ipv6_libinet6=no
	SAVELDFLAGS="$LDFLAGS"
	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
      fi
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getipnodebyaddr in -linet6" >&5
$as_echo_n "checking for getipnodebyaddr in -linet6... " >&6; }
if ${ac_cv_lib_inet6_getipnodebyaddr+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet6  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char getipnodebyaddr ();
int
main ()
{
return getipnodebyaddr ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_inet6_getipnodebyaddr=yes
else
  ac_cv_lib_inet6_getipnodebyaddr=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getipnodebyaddr" >&5
$as_echo "$ac_cv_lib_inet6_getipnodebyaddr" >&6; }
if test "x$ac_cv_lib_inet6_getipnodebyaddr" = xyes; then :
  	if test $ipv6_libinet6 = no; then
	  ipv6_libinet6=yes
	  LIBS="$LIBS -linet6"
	fi
fi
      if test $ipv6_libinet6 = no; then
	LDFLAGS="$SAVELDFLAGS"
      fi
    fi
fi

fi
ipv6_cv_getipnodebyaddr=no
if test $ac_cv_func_getipnodebyaddr = yes -o $ac_cv_lib_socket_getipnodebyaddr = yes \
     -o $ac_cv_lib_inet6_getipnodebyaddr = yes
then
  ipv6_cv_getipnodebyaddr=yes
fi
if test $ipv6_cv_getipnodebyaddr = no; then
  if test getipnodebyaddr = getaddrinfo; then
    for ipv6_cv_pfx in o n; do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "${ipv6_cv_pfx}getipnodebyaddr" >/dev/null 2>&1; then :
  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}getipnodebyaddr" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}getipnodebyaddr" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

fi

fi
rm -f conftest*

      if eval test X\$ac_cv_func_${ipv6_cv_pfx}getipnodebyaddr = Xyes; then
	ipv6_cv_getipnodebyaddr=yes
	break
      fi
    done
  fi
fi
if test $ipv6_cv_getipnodebyaddr = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_GETIPNODEBYADDR 1
_ACEOF

  :
else
  :
fi


ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
if test "x$ac_cv_func_inet_pton" = xyes; then :
    ac_cv_lib_socket_inet_pton=no
  ac_cv_lib_inet6_inet_pton=no

else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lsocket" >&5
$as_echo_n "checking for inet_pton in -lsocket... " >&6; }
if ${ac_cv_lib_socket_inet_pton+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_pton ();
int
main ()
{
return inet_pton ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_socket_inet_pton=yes
else
  ac_cv_lib_socket_inet_pton=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_pton" >&5
$as_echo "$ac_cv_lib_socket_inet_pton" >&6; }
if test "x$ac_cv_lib_socket_inet_pton" = xyes; then :
      LIBS="$LIBS -lsocket -lnsl"
    ac_cv_lib_inet6_inet_pton=no

else
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
    if ${ipv6_cv_dir+:} false; then :
  $as_echo_n "(cached) " >&6
else
        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
	  break
	fi
      done
fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
$as_echo "$ipv6_cv_dir" >&6; }
    if test $ipv6_cv_dir = no; then
      ac_cv_lib_inet6_inet_pton=no
    else
      if test x$ipv6_libinet6 = x; then
	ipv6_libinet6=no
	SAVELDFLAGS="$LDFLAGS"
	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
      fi
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -linet6" >&5
$as_echo_n "checking for inet_pton in -linet6... " >&6; }
if ${ac_cv_lib_inet6_inet_pton+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet6  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_pton ();
int
main ()
{
return inet_pton ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_inet6_inet_pton=yes
else
  ac_cv_lib_inet6_inet_pton=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_inet_pton" >&5
$as_echo "$ac_cv_lib_inet6_inet_pton" >&6; }
if test "x$ac_cv_lib_inet6_inet_pton" = xyes; then :
  	if test $ipv6_libinet6 = no; then
	  ipv6_libinet6=yes
	  LIBS="$LIBS -linet6"
	fi
fi
      if test $ipv6_libinet6 = no; then
	LDFLAGS="$SAVELDFLAGS"
      fi
    fi
fi

fi
ipv6_cv_inet_pton=no
if test $ac_cv_func_inet_pton = yes -o $ac_cv_lib_socket_inet_pton = yes \
     -o $ac_cv_lib_inet6_inet_pton = yes
then
  ipv6_cv_inet_pton=yes
fi
if test $ipv6_cv_inet_pton = no; then
  if test inet_pton = getaddrinfo; then
    for ipv6_cv_pfx in o n; do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "${ipv6_cv_pfx}inet_pton" >/dev/null 2>&1; then :
  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}inet_pton" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}inet_pton" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

fi

fi
rm -f conftest*

      if eval test X\$ac_cv_func_${ipv6_cv_pfx}inet_pton = Xyes; then
	ipv6_cv_inet_pton=yes
	break
      fi
    done
  fi
fi
if test $ipv6_cv_inet_pton = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_INET_PTON 1
_ACEOF

  :
else
  :
fi


ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
if test "x$ac_cv_func_inet_ntop" = xyes; then :
    ac_cv_lib_socket_inet_ntop=no
  ac_cv_lib_inet6_inet_ntop=no

else
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lsocket" >&5
$as_echo_n "checking for inet_ntop in -lsocket... " >&6; }
if ${ac_cv_lib_socket_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-lsocket  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_socket_inet_ntop=yes
else
  ac_cv_lib_socket_inet_ntop=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_ntop" >&5
$as_echo "$ac_cv_lib_socket_inet_ntop" >&6; }
if test "x$ac_cv_lib_socket_inet_ntop" = xyes; then :
      LIBS="$LIBS -lsocket -lnsl"
    ac_cv_lib_inet6_inet_ntop=no

else
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether your system has IPv6 directory" >&5
$as_echo_n "checking whether your system has IPv6 directory... " >&6; }
    if ${ipv6_cv_dir+:} false; then :
  $as_echo_n "(cached) " >&6
else
        for ipv6_cv_dir in /usr/local/v6 /usr/inet6 no; do
	if test $ipv6_cv_dir = no -o -d $ipv6_cv_dir; then
	  break
	fi
      done
fi
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_dir" >&5
$as_echo "$ipv6_cv_dir" >&6; }
    if test $ipv6_cv_dir = no; then
      ac_cv_lib_inet6_inet_ntop=no
    else
      if test x$ipv6_libinet6 = x; then
	ipv6_libinet6=no
	SAVELDFLAGS="$LDFLAGS"
	LDFLAGS="$LDFLAGS -L$ipv6_cv_dir/lib"
      fi
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -linet6" >&5
$as_echo_n "checking for inet_ntop in -linet6... " >&6; }
if ${ac_cv_lib_inet6_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  ac_check_lib_save_LIBS=$LIBS
LIBS="-linet6  $LIBS"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

/* Override any GCC internal prototype to avoid an error.
   Use char because int might match the return type of a GCC
   builtin and then its argument prototype would still apply.  */
#ifdef __cplusplus
extern "C"
#endif
char inet_ntop ();
int
main ()
{
return inet_ntop ();
  ;
  return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
  ac_cv_lib_inet6_inet_ntop=yes
else
  ac_cv_lib_inet6_inet_ntop=no
fi
rm -f core conftest.err conftest.$ac_objext \
    conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_inet_ntop" >&5
$as_echo "$ac_cv_lib_inet6_inet_ntop" >&6; }
if test "x$ac_cv_lib_inet6_inet_ntop" = xyes; then :
  	if test $ipv6_libinet6 = no; then
	  ipv6_libinet6=yes
	  LIBS="$LIBS -linet6"
	fi
fi
      if test $ipv6_libinet6 = no; then
	LDFLAGS="$SAVELDFLAGS"
      fi
    fi
fi

fi
ipv6_cv_inet_ntop=no
if test $ac_cv_func_inet_ntop = yes -o $ac_cv_lib_socket_inet_ntop = yes \
     -o $ac_cv_lib_inet6_inet_ntop = yes
then
  ipv6_cv_inet_ntop=yes
fi
if test $ipv6_cv_inet_ntop = no; then
  if test inet_ntop = getaddrinfo; then
    for ipv6_cv_pfx in o n; do
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */
#include <netdb.h>

_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  $EGREP "${ipv6_cv_pfx}inet_ntop" >/dev/null 2>&1; then :
  as_ac_var=`$as_echo "ac_cv_func_${ipv6_cv_pfx}inet_ntop" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "${ipv6_cv_pfx}inet_ntop" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :

fi

fi
rm -f conftest*

      if eval test X\$ac_cv_func_${ipv6_cv_pfx}inet_ntop = Xyes; then
	ipv6_cv_inet_ntop=yes
	break
      fi
    done
  fi
fi
if test $ipv6_cv_inet_ntop = yes; then
  cat >>confdefs.h <<_ACEOF
#define HAVE_INET_NTOP 1
_ACEOF

  :
else
  :
fi

if test $ac_cv_lib_inet6_getaddrinfo = yes; then
	INET6LIBS="-L$ipv6_cv_dir/lib -linet6"
fi


{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working inet_ntop" >&5
$as_echo_n "checking for working inet_ntop... " >&6; }
if ${ipv6_cv_can_inet_ntop+:} false; then :
  $as_echo_n "(cached) " >&6
else
  if test "$cross_compiling" = yes; then :
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot run test program while cross compiling
See \`config.log' for more details" "$LINENO" 5; }
else
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h.  */

#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

int
main() {
  static struct in6_addr addr;
  static char str[INET6_ADDRSTRLEN];

  addr.s6_addr[15] = 0x21;
  inet_ntop(AF_INET6, &addr, str, sizeof(str));
  if (strcmp(str, "::21") && strcmp(str, "::0.0.0.33"))
    exit(1);
}

_ACEOF
if ac_fn_c_try_run "$LINENO"; then :
  ipv6_cv_can_inet_ntop=yes
else
  ipv6_cv_can_inet_ntop=no
fi
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  conftest.$ac_objext conftest.beam conftest.$ac_ext
fi

fi
if test $ipv6_cv_can_inet_ntop = yes; then

$as_echo "#define CAN_INET_NTOP 1" >>confdefs.h

else
  :
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6_cv_can_inet_ntop" >&5
$as_echo "$ipv6_cv_can_inet_ntop" >&6; }

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether you have sa_len in struct sockaddr" >&5
$as_echo_n "checking whether you have sa_len in struct sockaddr... " >&6; }
if ${ipv6_cv_sa_len+:} false; then :
  $as_echo_n "(cached) " >&6



( run in 0.984 second using v1.01-cache-2.11-cpan-39bf76dae61 )