[Python-checkins] python/dist/src configure,1.390,1.391 configure.in,1.401,1.402 pyconfig.h.in,1.76,1.77

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sat, 03 May 2003 03:12:48 -0700


Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1:/tmp/cvs-serv22931

Modified Files:
	configure configure.in pyconfig.h.in 
Log Message:
Patch #724588: Check whether the address of hstrerror and inet_pton can
be taken, and define NI_MAX{HOST|SERV} if necessary.


Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.390
retrieving revision 1.391
diff -C2 -d -r1.390 -r1.391
*** configure	11 Apr 2003 15:35:40 -0000	1.390
--- configure	3 May 2003 10:12:42 -0000	1.391
***************
*** 1,4 ****
  #! /bin/sh
! # From configure.in Revision: 1.400 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53 for python 2.3.
--- 1,4 ----
  #! /bin/sh
! # From configure.in Revision: 1.401 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53 for python 2.3.
***************
*** 909,913 ****
  # absolute.
  ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
--- 909,913 ----
  # absolute.
  ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
***************
*** 12110,12121 ****
  
  
- 
- 
- 
  for ac_func in alarm chown clock confstr ctermid execv \
   fchdir fork fsync fdatasync fpathconf ftime ftruncate \
   gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
   getpriority getpwent getwd \
!  hstrerror inet_aton inet_pton kill killpg lchown lstat mkfifo mknod mktime \
   mremap nice pathconf pause plock poll pthread_init \
   putenv readlink realpath \
--- 12110,12118 ----
  
  
  for ac_func in alarm chown clock confstr ctermid execv \
   fchdir fork fsync fdatasync fpathconf ftime ftruncate \
   gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
   getpriority getpwent getwd \
!  kill killpg lchown lstat mkfifo mknod mktime \
   mremap nice pathconf pause plock poll pthread_init \
   putenv readlink realpath \
***************
*** 12503,12506 ****
--- 12500,12660 ----
  rm -f conftest.$ac_objext conftest.$ac_ext
  
+ echo "$as_me:$LINENO: checking for hstrerror" >&5
+ echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+ 
+ #include "confdefs.h"
+ #include <netdb.h>
+ 
+ #ifdef F77_DUMMY_MAIN
+ #  ifdef __cplusplus
+      extern "C"
+ #  endif
+    int F77_DUMMY_MAIN() { return 1; }
+ #endif
+ int
+ main ()
+ {
+ void* p = hstrerror
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+   (eval $ac_compile) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); } &&
+          { ac_try='test -s conftest.$ac_objext'
+   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+   (eval $ac_try) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); }; }; then
+ 
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_HSTRERROR 1
+ _ACEOF
+ 
+   echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+ else
+   echo "$as_me: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
+ 
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ 
+ echo "$as_me:$LINENO: checking for inet_aton" >&5
+ echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+ 
+ #include "confdefs.h"
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ 
+ #ifdef F77_DUMMY_MAIN
+ #  ifdef __cplusplus
+      extern "C"
+ #  endif
+    int F77_DUMMY_MAIN() { return 1; }
+ #endif
+ int
+ main ()
+ {
+ void* p = inet_aton
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+   (eval $ac_compile) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); } &&
+          { ac_try='test -s conftest.$ac_objext'
+   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+   (eval $ac_try) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); }; }; then
+ 
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_INET_ATON 1
+ _ACEOF
+ 
+   echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+ else
+   echo "$as_me: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
+ 
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ 
+ echo "$as_me:$LINENO: checking for inet_pton" >&5
+ echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+ 
+ #include "confdefs.h"
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ 
+ #ifdef F77_DUMMY_MAIN
+ #  ifdef __cplusplus
+      extern "C"
+ #  endif
+    int F77_DUMMY_MAIN() { return 1; }
+ #endif
+ int
+ main ()
+ {
+ void* p = inet_pton
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+   (eval $ac_compile) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); } &&
+          { ac_try='test -s conftest.$ac_objext'
+   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+   (eval $ac_try) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); }; }; then
+ 
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_INET_PTON 1
+ _ACEOF
+ 
+   echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+ else
+   echo "$as_me: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
+ 
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ 
  echo "$as_me:$LINENO: checking for setgroups" >&5
  echo $ECHO_N "checking for setgroups... $ECHO_C" >&6
***************
*** 17829,17833 ****
  # absolute.
  ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
  ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
--- 17983,17987 ----
  # absolute.
  ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
! ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.401
retrieving revision 1.402
diff -C2 -d -r1.401 -r1.402
*** configure.in	11 Apr 2003 15:35:52 -0000	1.401
--- configure.in	3 May 2003 10:12:45 -0000	1.402
***************
*** 1858,1862 ****
   gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
   getpriority getpwent getwd \
!  hstrerror inet_aton inet_pton kill killpg lchown lstat mkfifo mknod mktime \
   mremap nice pathconf pause plock poll pthread_init \
   putenv readlink realpath \
--- 1858,1862 ----
   gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
   getpriority getpwent getwd \
!  kill killpg lchown lstat mkfifo mknod mktime \
   mremap nice pathconf pause plock poll pthread_init \
   putenv readlink realpath \
***************
*** 1920,1923 ****
--- 1920,1957 ----
  ], void* p = getpagesize,
    AC_DEFINE(HAVE_GETPAGESIZE, 1, Define if you have the 'getpagesize' function.)
+   AC_MSG_RESULT(yes),
+   AC_MSG_RESULT(no)
+ )
+ 
+ AC_MSG_CHECKING(for hstrerror)
+ AC_TRY_COMPILE([
+ #include "confdefs.h" 
+ #include <netdb.h>
+ ], void* p = hstrerror,
+   AC_DEFINE(HAVE_HSTRERROR, 1, Define if you have the 'hstrerror' function.)
+   AC_MSG_RESULT(yes),
+   AC_MSG_RESULT(no)
+ )
+ 
+ AC_MSG_CHECKING(for inet_aton)
+ AC_TRY_COMPILE([
+ #include "confdefs.h" 
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ ], void* p = inet_aton,
+   AC_DEFINE(HAVE_INET_ATON, 1, Define if you have the 'inet_aton' function.)
+   AC_MSG_RESULT(yes),
+   AC_MSG_RESULT(no)
+ )
+ 
+ AC_MSG_CHECKING(for inet_pton)
+ AC_TRY_COMPILE([
+ #include "confdefs.h" 
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ ], void* p = inet_pton,
+   AC_DEFINE(HAVE_INET_PTON, 1, Define if you have the 'inet_pton' function.)
    AC_MSG_RESULT(yes),
    AC_MSG_RESULT(no)

Index: pyconfig.h.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/pyconfig.h.in,v
retrieving revision 1.76
retrieving revision 1.77
diff -C2 -d -r1.76 -r1.77
*** pyconfig.h.in	30 Mar 2003 17:23:49 -0000	1.76
--- pyconfig.h.in	3 May 2003 10:12:45 -0000	1.77
***************
*** 208,212 ****
  #undef HAVE_GRP_H
  
! /* Define to 1 if you have the `hstrerror' function. */
  #undef HAVE_HSTRERROR
  
--- 208,212 ----
  #undef HAVE_GRP_H
  
! /* Define if you have the 'hstrerror' function. */
  #undef HAVE_HSTRERROR
  
***************
*** 214,221 ****
  #undef HAVE_HYPOT
  
! /* Define to 1 if you have the `inet_aton' function. */
  #undef HAVE_INET_ATON
  
! /* Define to 1 if you have the `inet_pton' function. */
  #undef HAVE_INET_PTON
  
--- 214,221 ----
  #undef HAVE_HYPOT
  
! /* Define if you have the 'inet_aton' function. */
  #undef HAVE_INET_ATON
  
! /* Define if you have the 'inet_pton' function. */
  #undef HAVE_INET_PTON