Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Delta Between Two Patch Sets: configure.ac

Issue 26826: Expose new copy_file_range() syscal in os module and use it to improve shutils.copy()
Left Patch Set: Created 4 years, 1 month ago
Right Patch Set: Created 3 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | Doc/library/os.rst » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 dnl *********************************************** 1 dnl ***********************************************
2 dnl * Please run autoreconf to test your changes! * 2 dnl * Please run autoreconf to test your changes! *
3 dnl *********************************************** 3 dnl ***********************************************
4 4
5 # Set VERSION so we only need to edit in one place (i.e., here) 5 # Set VERSION so we only need to edit in one place (i.e., here)
6 m4_define(PYTHON_VERSION, 3.6) 6 m4_define(PYTHON_VERSION, 3.6)
7 7
8 AC_PREREQ(2.65) 8 AC_PREREQ(2.65)
9 9
10 AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/) 10 AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/)
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 esac 535 esac
536 536
537 if test $define_stdc_a1 = yes 537 if test $define_stdc_a1 = yes
538 then 538 then
539 AC_DEFINE(_INCLUDE__STDC_A1_SOURCE, 1, Define to include mbstate_t for mbrtowc ) 539 AC_DEFINE(_INCLUDE__STDC_A1_SOURCE, 1, Define to include mbstate_t for mbrtowc )
540 fi 540 fi
541 541
542 # 542 #
543 # SGI compilers allow the specification of the both the ABI and the 543 # SGI compilers allow the specification of the both the ABI and the
544 # ISA on the command line. Depending on the values of these switches, 544 # ISA on the command line. Depending on the values of these switches,
545 # different and often incompatable code will be generated. 545 # different and often incompatible code will be generated.
546 # 546 #
547 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and 547 # The SGI_ABI variable can be used to modify the CC and LDFLAGS and
548 # thus supply support for various ABI/ISA combinations. The MACHDEP 548 # thus supply support for various ABI/ISA combinations. The MACHDEP
549 # variable is also adjusted. 549 # variable is also adjusted.
550 # 550 #
551 AC_SUBST(SGI_ABI) 551 AC_SUBST(SGI_ABI)
552 if test ! -z "$SGI_ABI" 552 if test ! -z "$SGI_ABI"
553 then 553 then
554 CC="cc $SGI_ABI" 554 CC="cc $SGI_ABI"
555 LDFLAGS="$SGI_ABI $LDFLAGS" 555 LDFLAGS="$SGI_ABI $LDFLAGS"
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1874 ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ 1874 ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \
1875 sched.h shadow.h signal.h stdint.h stropts.h termios.h \ 1875 sched.h shadow.h signal.h stdint.h stropts.h termios.h \
1876 unistd.h utime.h \ 1876 unistd.h utime.h \
1877 poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ 1877 poll.h sys/devpoll.h sys/epoll.h sys/poll.h \
1878 sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ 1878 sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \
1879 sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ 1879 sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \
1880 sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ 1880 sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
1881 sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ 1881 sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
1882 sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ 1882 sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
1883 libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ 1883 libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
1884 bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h endian.h \ 1884 bluetooth/bluetooth.h linux/tipc.h linux/random.h spawn.h util.h alloca.h endian .h \
1885 sys/endian.h) 1885 sys/endian.h)
1886 AC_HEADER_DIRENT 1886 AC_HEADER_DIRENT
1887 AC_HEADER_MAJOR 1887 AC_HEADER_MAJOR
1888 1888
1889 # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. 1889 # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
1890 AC_CHECK_HEADERS([net/if.h], [], [], 1890 AC_CHECK_HEADERS([net/if.h], [], [],
1891 [#include <stdio.h> 1891 [#include <stdio.h>
1892 #ifdef STDC_HEADERS 1892 #ifdef STDC_HEADERS
1893 # include <stdlib.h> 1893 # include <stdlib.h>
1894 # include <stddef.h> 1894 # include <stddef.h>
(...skipping 2446 matching lines...) Expand 10 before | Expand all | Expand 10 after
4341 [ac_cv_broken_sem_getvalue=yes], 4341 [ac_cv_broken_sem_getvalue=yes],
4342 [ac_cv_broken_sem_getvalue=yes]) 4342 [ac_cv_broken_sem_getvalue=yes])
4343 ) 4343 )
4344 AC_MSG_RESULT($ac_cv_broken_sem_getvalue) 4344 AC_MSG_RESULT($ac_cv_broken_sem_getvalue)
4345 if test $ac_cv_broken_sem_getvalue = yes 4345 if test $ac_cv_broken_sem_getvalue = yes
4346 then 4346 then
4347 AC_DEFINE(HAVE_BROKEN_SEM_GETVALUE, 1, 4347 AC_DEFINE(HAVE_BROKEN_SEM_GETVALUE, 1,
4348 [define to 1 if your sem_getvalue is broken.]) 4348 [define to 1 if your sem_getvalue is broken.])
4349 fi 4349 fi
4350 4350
4351 AC_CHECK_DECLS([RTLD_LAZY, RTLD_NOW, RTLD_GLOBAL, RTLD_LOCAL, RTLD_NODELETE, RTL D_NOLOAD, RTLD_DEEPBIND], [], [], [[#include <dlfcn.h>]])
4352
4351 # determine what size digit to use for Python's longs 4353 # determine what size digit to use for Python's longs
4352 AC_MSG_CHECKING([digit size for Python's longs]) 4354 AC_MSG_CHECKING([digit size for Python's longs])
4353 AC_ARG_ENABLE(big-digits, 4355 AC_ARG_ENABLE(big-digits,
4354 AS_HELP_STRING([--enable-big-digits@<:@=BITS@:>@],[use big digits for Python lon gs [[BITS=30]]]), 4356 AS_HELP_STRING([--enable-big-digits@<:@=BITS@:>@],[use big digits for Python lon gs [[BITS=30]]]),
4355 [case $enable_big_digits in 4357 [case $enable_big_digits in
4356 yes) 4358 yes)
4357 enable_big_digits=30 ;; 4359 enable_big_digits=30 ;;
4358 no) 4360 no)
4359 enable_big_digits=15 ;; 4361 enable_big_digits=15 ;;
4360 [15|30]) 4362 [15|30])
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
5243 [Define to 1 if the dirent structure has a d_type field]) 5245 [Define to 1 if the dirent structure has a d_type field])
5244 fi 5246 fi
5245 5247
5246 # check if the Linux getrandom() syscall is available 5248 # check if the Linux getrandom() syscall is available
5247 AC_MSG_CHECKING(for the Linux getrandom() syscall) 5249 AC_MSG_CHECKING(for the Linux getrandom() syscall)
5248 AC_LINK_IFELSE( 5250 AC_LINK_IFELSE(
5249 [ 5251 [
5250 AC_LANG_SOURCE([[ 5252 AC_LANG_SOURCE([[
5251 #include <unistd.h> 5253 #include <unistd.h>
5252 #include <sys/syscall.h> 5254 #include <sys/syscall.h>
5255 #include <linux/random.h>
5253 5256
5254 int main() { 5257 int main() {
5255 char buffer[1]; 5258 char buffer[1];
5256 const size_t buflen = sizeof(buffer); 5259 const size_t buflen = sizeof(buffer);
5257 const int flags = 0; 5260 const int flags = GRND_NONBLOCK;
5258 /* ignore the result, Python checks for ENOSYS at runtime */ 5261 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
5259 (void)syscall(SYS_getrandom, buffer, buflen, flags); 5262 (void)syscall(SYS_getrandom, buffer, buflen, flags);
5260 return 0; 5263 return 0;
5261 } 5264 }
5262 ]]) 5265 ]])
5263 ],[have_getrandom_syscall=yes],[have_getrandom_syscall=no]) 5266 ],[have_getrandom_syscall=yes],[have_getrandom_syscall=no])
5264 AC_MSG_RESULT($have_getrandom_syscall) 5267 AC_MSG_RESULT($have_getrandom_syscall)
5265 5268
5266 if test "$have_getrandom_syscall" = yes; then 5269 if test "$have_getrandom_syscall" = yes; then
5267 AC_DEFINE(HAVE_GETRANDOM_SYSCALL, 1, 5270 AC_DEFINE(HAVE_GETRANDOM_SYSCALL, 1,
5268 [Define to 1 if the Linux getrandom() syscall is available]) 5271 [Define to 1 if the Linux getrandom() syscall is available])
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
5308 if test ! -f Modules/Setup.local 5311 if test ! -f Modules/Setup.local
5309 then 5312 then
5310 echo "# Edit this file for local setup changes" >Modules/Setup.local 5313 echo "# Edit this file for local setup changes" >Modules/Setup.local
5311 fi 5314 fi
5312 5315
5313 echo "creating Makefile" >&AS_MESSAGE_FD 5316 echo "creating Makefile" >&AS_MESSAGE_FD
5314 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 5317 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
5315 -s Modules Modules/Setup.config \ 5318 -s Modules Modules/Setup.config \
5316 Modules/Setup.local Modules/Setup 5319 Modules/Setup.local Modules/Setup
5317 mv config.c Modules 5320 mv config.c Modules
LEFTRIGHT
« no previous file | Doc/library/os.rst » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+