349 |
|
|
350 |
AC_MSG_CHECKING(for working IPv6 support) |
AC_MSG_CHECKING(for working IPv6 support) |
351 |
AC_CACHE_VAL(guile_cv_have_ipv6, |
AC_CACHE_VAL(guile_cv_have_ipv6, |
352 |
[AC_TRY_COMPILE([#include <netinet/in.h> |
[AC_TRY_COMPILE([ |
353 |
|
#ifdef HAVE_SYS_TYPES_H |
354 |
|
#include <sys/types.h> |
355 |
|
#endif |
356 |
|
#include <netinet/in.h> |
357 |
#include <sys/socket.h>], |
#include <sys/socket.h>], |
358 |
[struct sockaddr_in6 a; a.sin6_family = AF_INET6;], |
[struct sockaddr_in6 a; a.sin6_family = AF_INET6;], |
359 |
guile_cv_have_ipv6=yes, guile_cv_have_ipv6=no)]) |
guile_cv_have_ipv6=yes, guile_cv_have_ipv6=no)]) |
365 |
# included in rfc2553 but not in older implementations, e.g., glibc 2.1.3. |
# included in rfc2553 but not in older implementations, e.g., glibc 2.1.3. |
366 |
AC_MSG_CHECKING(whether sockaddr_in6 has sin6_scope_id) |
AC_MSG_CHECKING(whether sockaddr_in6 has sin6_scope_id) |
367 |
AC_CACHE_VAL(guile_cv_have_sin6_scope_id, |
AC_CACHE_VAL(guile_cv_have_sin6_scope_id, |
368 |
[AC_TRY_COMPILE([#include <netinet/in.h>], |
[AC_TRY_COMPILE([ |
369 |
|
#ifdef HAVE_SYS_TYPES_H |
370 |
|
#include <sys/types.h> |
371 |
|
#endif |
372 |
|
#include <netinet/in.h>], |
373 |
[struct sockaddr_in6 sok; sok.sin6_scope_id = 0;], |
[struct sockaddr_in6 sok; sok.sin6_scope_id = 0;], |
374 |
guile_cv_have_sin6_scope_id=yes, guile_cv_have_sin6_scope_id=no)]) |
guile_cv_have_sin6_scope_id=yes, guile_cv_have_sin6_scope_id=no)]) |
375 |
AC_MSG_RESULT($guile_cv_have_sin6_scope_id) |
AC_MSG_RESULT($guile_cv_have_sin6_scope_id) |