392 |
|
|
393 |
AC_MSG_CHECKING(for working IPv6 support) |
AC_MSG_CHECKING(for working IPv6 support) |
394 |
AC_CACHE_VAL(guile_cv_have_ipv6, |
AC_CACHE_VAL(guile_cv_have_ipv6, |
395 |
[AC_TRY_COMPILE([#include <netinet/in.h> |
[AC_TRY_COMPILE([ |
396 |
|
#ifdef HAVE_SYS_TYPES_H |
397 |
|
#include <sys/types.h> |
398 |
|
#endif |
399 |
|
#include <netinet/in.h> |
400 |
#include <sys/socket.h>], |
#include <sys/socket.h>], |
401 |
[struct sockaddr_in6 a; a.sin6_family = AF_INET6;], |
[struct sockaddr_in6 a; a.sin6_family = AF_INET6;], |
402 |
guile_cv_have_ipv6=yes, guile_cv_have_ipv6=no)]) |
guile_cv_have_ipv6=yes, guile_cv_have_ipv6=no)]) |
408 |
# 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. |
409 |
AC_MSG_CHECKING(whether sockaddr_in6 has sin6_scope_id) |
AC_MSG_CHECKING(whether sockaddr_in6 has sin6_scope_id) |
410 |
AC_CACHE_VAL(guile_cv_have_sin6_scope_id, |
AC_CACHE_VAL(guile_cv_have_sin6_scope_id, |
411 |
[AC_TRY_COMPILE([#include <netinet/in.h>], |
[AC_TRY_COMPILE([ |
412 |
|
#ifdef HAVE_SYS_TYPES_H |
413 |
|
#include <sys/types.h> |
414 |
|
#endif |
415 |
|
#include <netinet/in.h>], |
416 |
[struct sockaddr_in6 sok; sok.sin6_scope_id = 0;], |
[struct sockaddr_in6 sok; sok.sin6_scope_id = 0;], |
417 |
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)]) |
418 |
AC_MSG_RESULT($guile_cv_have_sin6_scope_id) |
AC_MSG_RESULT($guile_cv_have_sin6_scope_id) |