[Python-checkins] CVS: python/dist/src configure.in,1.249,1.250 configure,1.241,1.242

Martin v. L?wis loewis@users.sourceforge.net
Wed, 05 Sep 2001 01:22:36 -0700


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv13709

Modified Files:
	configure.in configure 
Log Message:
Check for RFC 2553 API. Fixes bug #454493.


Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.249
retrieving revision 1.250
diff -C2 -d -r1.249 -r1.250
*** configure.in	2001/08/29 23:44:38	1.249
--- configure.in	2001/09/05 08:22:34	1.250
***************
*** 969,973 ****
  
  # Check for enable-ipv6
! AC_MSG_CHECKING([whether to enable ipv6])
  AC_ARG_ENABLE(ipv6,
  [  --enable-ipv6                   Enable ipv6 (with ipv4) support
--- 969,973 ----
  
  # Check for enable-ipv6
! AC_MSG_CHECKING([if --enable-ipv6 is specified])
  AC_ARG_ENABLE(ipv6,
  [  --enable-ipv6                   Enable ipv6 (with ipv4) support
***************
*** 984,987 ****
--- 984,989 ----
    esac ],
  
+ [
+ dnl the check does not work on cross compilation case...
    AC_TRY_RUN([ /* AF_INET6 available check */
  #include <sys/types.h>
***************
*** 996,1000 ****
  ],
    AC_MSG_RESULT(yes)
-   AC_DEFINE(ENABLE_IPV6)
    ipv6=yes,
    AC_MSG_RESULT(no)
--- 998,1001 ----
***************
*** 1002,1006 ****
    AC_MSG_RESULT(no)
    ipv6=no
! ))
  
  ipv6type=unknown
--- 1003,1024 ----
    AC_MSG_RESULT(no)
    ipv6=no
! )
! 
! if test "$ipv6" = "yes"; then
! 	AC_MSG_CHECKING(if RFC2553 API is available)
! 	AC_TRY_COMPILE([#include <sys/types.h>
! #include <netinet/in.h>],
! 	[struct sockaddr_in6 x;
! x.sin6_scope_id;],
! 		AC_MSG_RESULT(yes)
! 		ipv6=yes,
! 		AC_MSG_RESULT(no, IPv6 disabled)
! 		ipv6=no)
! fi
! 
! if test "$ipv6" = "yes"; then
! 	AC_DEFINE(ENABLE_IPV6)
! fi
! ])
  
  ipv6type=unknown

Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.241
retrieving revision 1.242
diff -C2 -d -r1.241 -r1.242
*** configure	2001/08/29 23:58:47	1.241
--- configure	2001/09/05 08:22:34	1.242
***************
*** 2306,2310 ****
  #include "confdefs.h"
  #include <stdio.h>
- #include <sys/types.h>
  main()
  {
--- 2306,2309 ----
***************
*** 2315,2319 ****
  }
  EOF
[...3633 lines suppressed...]
  if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 7047 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
***************
*** 7072,7076 ****
  SRCDIRS="Parser Grammar Objects Python Modules"
  echo $ac_n "checking for build directories""... $ac_c" 1>&6
! echo "configure:7075: checking for build directories" >&5
  for dir in $SRCDIRS; do
      if test ! -d $dir; then
--- 7093,7097 ----
  SRCDIRS="Parser Grammar Objects Python Modules"
  echo $ac_n "checking for build directories""... $ac_c" 1>&6
! echo "configure:7096: checking for build directories" >&5
  for dir in $SRCDIRS; do
      if test ! -d $dir; then