[Python-checkins] python/dist/src configure, 1.416.4.4, 1.416.4.5 configure.in, 1.427.4.4, 1.427.4.5 pyconfig.h.in, 1.83.4.1, 1.83.4.2

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sat Sep 20 11:29:45 EDT 2003


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

Modified Files:
      Tag: release23-maint
	configure configure.in pyconfig.h.in 
Log Message:
Check for declarations of fchdir and fsync. Fixes #800710.


Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.416.4.4
retrieving revision 1.416.4.5
diff -C2 -d -r1.416.4.4 -r1.416.4.5
*** configure	20 Sep 2003 10:47:26 -0000	1.416.4.4
--- configure	20 Sep 2003 15:29:40 -0000	1.416.4.5
***************
*** 1,4 ****
  #! /bin/sh
! # From configure.in Revision: 1.427.4.3 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.57 for python 2.3.
--- 1,4 ----
  #! /bin/sh
! # From configure.in Revision: 1.427.4.4 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.57 for python 2.3.
***************
*** 13072,13080 ****
  
  
- 
- 
- 
  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 \
--- 13072,13077 ----
  
  
  for ac_func in alarm chown clock confstr ctermid execv \
!  fork fpathconf ftime ftruncate \
   gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
   getpriority getpwent getwd \
***************
*** 13297,13300 ****
--- 13294,13435 ----
  cat >>confdefs.h <<\_ACEOF
  #define HAVE_SYMLINK 1
+ _ACEOF
+ 
+   echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+ else
+   echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' 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 fchdir" >&5
+ echo $ECHO_N "checking for fchdir... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h.  */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ #include <unistd.h>
+ int
+ main ()
+ {
+ void *x=fchdir
+   ;
+   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_FCHDIR 1
+ _ACEOF
+ 
+   echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+ else
+   echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' 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 fsync" >&5
+ echo $ECHO_N "checking for fsync... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h.  */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ #include <unistd.h>
+ int
+ main ()
+ {
+ void *x=fsync
+   ;
+   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_SYNC 1
+ _ACEOF
+ 
+   echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+ else
+   echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' 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 fdatasync" >&5
+ echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ /* confdefs.h.  */
+ _ACEOF
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h.  */
+ #include <unistd.h>
+ int
+ main ()
+ {
+ void *x=fdatasync
+   ;
+   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_FDATASYNC 1
  _ACEOF
  

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.427.4.4
retrieving revision 1.427.4.5
diff -C2 -d -r1.427.4.4 -r1.427.4.5
*** configure.in	20 Sep 2003 10:47:28 -0000	1.427.4.4
--- configure.in	20 Sep 2003 15:29:42 -0000	1.427.4.5
***************
*** 2054,2058 ****
  # checks for library functions
  AC_CHECK_FUNCS(alarm chown clock confstr ctermid execv \
!  fchdir fork fsync fdatasync fpathconf ftime ftruncate \
   gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
   getpriority getpwent getwd \
--- 2054,2058 ----
  # checks for library functions
  AC_CHECK_FUNCS(alarm chown clock confstr ctermid execv \
!  fork fpathconf ftime ftruncate \
   gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
   getpriority getpwent getwd \
***************
*** 2083,2086 ****
--- 2083,2104 ----
  AC_TRY_COMPILE([#include <unistd.h>], void *x=symlink,
    AC_DEFINE(HAVE_SYMLINK, 1, Define if you have the 'symlink' function.)
+   AC_MSG_RESULT(yes),
+   AC_MSG_RESULT(no)
+ )
+ AC_MSG_CHECKING(for fchdir)
+ AC_TRY_COMPILE([#include <unistd.h>], void *x=fchdir,
+   AC_DEFINE(HAVE_FCHDIR, 1, Define if you have the 'fchdir' function.)
+   AC_MSG_RESULT(yes),
+   AC_MSG_RESULT(no)
+ )
+ AC_MSG_CHECKING(for fsync)
+ AC_TRY_COMPILE([#include <unistd.h>], void *x=fsync,
+   AC_DEFINE(HAVE_SYNC, 1, Define if you have the 'fsync' function.)
+   AC_MSG_RESULT(yes),
+   AC_MSG_RESULT(no)
+ )
+ AC_MSG_CHECKING(for fdatasync)
+ AC_TRY_COMPILE([#include <unistd.h>], void *x=fdatasync,
+   AC_DEFINE(HAVE_FDATASYNC, 1, Define if you have the 'fdatasync' 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.83.4.1
retrieving revision 1.83.4.2
diff -C2 -d -r1.83.4.1 -r1.83.4.2
*** pyconfig.h.in	19 Sep 2003 01:00:16 -0000	1.83.4.1
--- pyconfig.h.in	20 Sep 2003 15:29:42 -0000	1.83.4.2
***************
*** 97,101 ****
  #undef HAVE_EXECV
  
! /* Define to 1 if you have the `fchdir' function. */
  #undef HAVE_FCHDIR
  
--- 97,101 ----
  #undef HAVE_EXECV
  
! /* Define if you have the 'fchdir' function. */
  #undef HAVE_FCHDIR
  
***************
*** 103,107 ****
  #undef HAVE_FCNTL_H
  
! /* Define to 1 if you have the `fdatasync' function. */
  #undef HAVE_FDATASYNC
  
--- 103,107 ----
  #undef HAVE_FCNTL_H
  
! /* Define if you have the 'fdatasync' function. */
  #undef HAVE_FDATASYNC
  
***************
*** 127,133 ****
  #undef HAVE_FSTATVFS
  
- /* Define to 1 if you have the `fsync' function. */
- #undef HAVE_FSYNC
- 
  /* Define to 1 if you have the `ftell64' function. */
  #undef HAVE_FTELL64
--- 127,130 ----
***************
*** 488,491 ****
--- 485,491 ----
  /* Define if you have the 'symlink' function. */
  #undef HAVE_SYMLINK
+ 
+ /* Define if you have the 'fsync' function. */
+ #undef HAVE_SYNC
  
  /* Define to 1 if you have the `sysconf' function. */





More information about the Python-checkins mailing list