1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-30 15:00:21 +02:00

* acconfig.h: include HAVE_SIN6_SCOPE_ID.

* configure.in: check for sin6_scope_id in sockaddr_in6.
This commit is contained in:
Gary Houston 2001-04-20 19:14:59 +00:00
parent 0447f5c918
commit 6764198159
3 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2001-04-20 Gary Houston <ghouston@arglist.com>
* acconfig.h: include HAVE_SIN6_SCOPE_ID.
* configure.in: check for sin6_scope_id in sockaddr_in6.
2001-04-19 Mikael Djurfeldt <mdj@linnaeus.mit.edu> 2001-04-19 Mikael Djurfeldt <mdj@linnaeus.mit.edu>
* RELEASE: Added deprecated macro SCM_ARRAY_CONTIGUOUS * RELEASE: Added deprecated macro SCM_ARRAY_CONTIGUOUS

View file

@ -122,6 +122,9 @@
/* Define this if you want support for arrays and uniform arrays. */ /* Define this if you want support for arrays and uniform arrays. */
#undef HAVE_ARRAYS #undef HAVE_ARRAYS
/* Define this if your IPv6 has sin6_scope_id in sockaddr_in6 struct. */
#undef HAVE_SIN6_SCOPE_ID
/* This is included as part of a workaround for a autoheader bug. */ /* This is included as part of a workaround for a autoheader bug. */
#undef HAVE_REGCOMP #undef HAVE_REGCOMP

View file

@ -264,6 +264,17 @@ if test $guile_cv_have_h_errno = yes; then
AC_DEFINE(HAVE_H_ERRNO) AC_DEFINE(HAVE_H_ERRNO)
fi fi
# included in rfc2553 but not in older implementations, e.g., glibc 2.1.3.
AC_MSG_CHECKING(whether sockaddr_in6 has sin6_scope_id)
AC_CACHE_VAL(guile_cv_have_sin6_scope_id,
[AC_TRY_COMPILE([#include <netinet/in.h>],
[struct sockaddr_in6 sok; sok.sin6_scope_id = 0;],
guile_cv_have_sin6_scope_id=yes, guile_cv_have_sin6_scope_id=no)])
AC_MSG_RESULT($guile_cv_have_sin6_scope_id)
if test $guile_cv_have_sin6_scope_id = yes; then
AC_DEFINE(HAVE_SIN6_SCOPE_ID)
fi
AC_MSG_CHECKING(whether localtime caches TZ) AC_MSG_CHECKING(whether localtime caches TZ)
AC_CACHE_VAL(guile_cv_localtime_cache, AC_CACHE_VAL(guile_cv_localtime_cache,
[if test x$ac_cv_func_tzset = xyes; then [if test x$ac_cv_func_tzset = xyes; then