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

Delta Between Two Patch Sets: configure.in

Issue 7652: Merge C version of decimal into py3k.
Left Patch Set: Created 7 years, 11 months ago
Right Patch Set: Created 7 years, 8 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 | « configure ('k') | Doc/library/decimal.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.3) 6 m4_define(PYTHON_VERSION, 3.3)
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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 yes) 900 yes)
901 if test "$CC" != 'g++' ; then 901 if test "$CC" != 'g++' ; then
902 STRICT_PROTO="-Wstrict-prototypes" 902 STRICT_PROTO="-Wstrict-prototypes"
903 fi 903 fi
904 # For gcc 4.x we need to use -fwrapv so lets check if its supported 904 # For gcc 4.x we need to use -fwrapv so lets check if its supported
905 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then 905 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
906 WRAP="-fwrapv" 906 WRAP="-fwrapv"
907 fi 907 fi
908 908
909 # Clang also needs -fwrapv 909 # Clang also needs -fwrapv
910 if test "$CC" = "clang" ; then 910 case $CC in
911 WRAP="-fwrapv" 911 *clang*) WRAP="-fwrapv"
912 fi 912 ;;
913 esac
913 914
914 case $ac_cv_prog_cc_g in 915 case $ac_cv_prog_cc_g in
915 yes) 916 yes)
916 if test "$Py_DEBUG" = 'true' ; then 917 if test "$Py_DEBUG" = 'true' ; then
917 # Optimization messes up debuggers, so turn it off for 918 # Optimization messes up debuggers, so turn it off for
918 # debug builds. 919 # debug builds.
919 OPT="-g -O0 -Wall $STRICT_PROTO" 920 OPT="-g -O0 -Wall $STRICT_PROTO"
920 else 921 else
921 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" 922 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
922 fi 923 fi
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1322 dnl #define spam(name, doc) {#name, &name, #name "() -- " doc} 1323 dnl #define spam(name, doc) {#name, &name, #name "() -- " doc}
1323 dnl int foo; 1324 dnl int foo;
1324 dnl struct {char *name; int *addr; char *doc;} desc = spam(foo, "something"); 1325 dnl struct {char *name; int *addr; char *doc;} desc = spam(foo, "something");
1325 dnl ]], [[;]])],[cpp_type=ansi],[AC_DEFINE(HAVE_OLD_CPP) cpp_type=traditional]) 1326 dnl ]], [[;]])],[cpp_type=ansi],[AC_DEFINE(HAVE_OLD_CPP) cpp_type=traditional])
1326 dnl AC_MSG_RESULT($cpp_type) 1327 dnl AC_MSG_RESULT($cpp_type)
1327 1328
1328 # checks for header files 1329 # checks for header files
1329 AC_HEADER_STDC 1330 AC_HEADER_STDC
1330 AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \ 1331 AC_CHECK_HEADERS(asm/types.h conio.h curses.h direct.h dlfcn.h errno.h \
1331 fcntl.h grp.h \ 1332 fcntl.h grp.h \
1332 ieeefp.h io.h langinfo.h libintl.h ncurses.h poll.h process.h pthread.h \ 1333 ieeefp.h io.h langinfo.h libintl.h ncurses.h process.h pthread.h \
1333 sched.h shadow.h signal.h stdint.h stropts.h termios.h \ 1334 sched.h shadow.h signal.h stdint.h stropts.h termios.h \
1334 unistd.h utime.h \ 1335 unistd.h utime.h \
1335 sys/audioio.h sys/xattr.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/lo adavg.h \ 1336 poll.h sys/devpoll.h sys/epoll.h sys/poll.h \
1336 sys/lock.h sys/mkdev.h sys/modem.h \ 1337 sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \
1337 sys/param.h sys/poll.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ 1338 sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \
1338 sys/stat.h sys/termio.h sys/time.h \ 1339 sys/param.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \
1340 sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \
1339 sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ 1341 sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \
1340 libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ 1342 libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \
1341 bluetooth/bluetooth.h linux/tipc.h spawn.h util.h) 1343 bluetooth/bluetooth.h linux/tipc.h spawn.h util.h)
1342 AC_HEADER_DIRENT 1344 AC_HEADER_DIRENT
1343 AC_HEADER_MAJOR 1345 AC_HEADER_MAJOR
1344 1346
1345 # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. 1347 # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
1346 AC_CHECK_HEADERS([net/if.h], [], [], 1348 AC_CHECK_HEADERS([net/if.h], [], [],
1347 [#include <stdio.h> 1349 [#include <stdio.h>
1348 #ifdef STDC_HEADERS 1350 #ifdef STDC_HEADERS
(...skipping 15 matching lines...) Expand all
1364 #ifdef HAVE_CURSES_H 1366 #ifdef HAVE_CURSES_H
1365 #include <curses.h> 1367 #include <curses.h>
1366 #endif 1368 #endif
1367 ]) 1369 ])
1368 1370
1369 # On Linux, netlink.h requires asm/types.h 1371 # On Linux, netlink.h requires asm/types.h
1370 AC_CHECK_HEADERS(linux/netlink.h,,,[ 1372 AC_CHECK_HEADERS(linux/netlink.h,,,[
1371 #ifdef HAVE_ASM_TYPES_H 1373 #ifdef HAVE_ASM_TYPES_H
1372 #include <asm/types.h> 1374 #include <asm/types.h>
1373 #endif 1375 #endif
1376 #ifdef HAVE_SYS_SOCKET_H
1377 #include <sys/socket.h>
1378 #endif
1379 ])
1380
1381 # On Linux, can.h and can/raw.h require sys/socket.h
1382 AC_CHECK_HEADERS(linux/can.h linux/can/raw.h,,,[
1374 #ifdef HAVE_SYS_SOCKET_H 1383 #ifdef HAVE_SYS_SOCKET_H
1375 #include <sys/socket.h> 1384 #include <sys/socket.h>
1376 #endif 1385 #endif
1377 ]) 1386 ])
1378 1387
1379 # checks for typedefs 1388 # checks for typedefs
1380 was_it_defined=no 1389 was_it_defined=no
1381 AC_MSG_CHECKING(for clock_t in time.h) 1390 AC_MSG_CHECKING(for clock_t in time.h)
1382 AC_EGREP_HEADER(clock_t, time.h, was_it_defined=yes, [ 1391 AC_EGREP_HEADER(clock_t, time.h, was_it_defined=yes, [
1383 AC_DEFINE(clock_t, long, [Define to 'long' if <time.h> doesn't define.]) 1392 AC_DEFINE(clock_t, long, [Define to 'long' if <time.h> doesn't define.])
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2554 AC_MSG_RESULT(MACHDEP_OBJS) 2563 AC_MSG_RESULT(MACHDEP_OBJS)
2555 2564
2556 # checks for library functions 2565 # checks for library functions
2557 AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ 2566 AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
2558 clock confstr ctermid execv faccessat fchmod fchmodat fchown fchownat \ 2567 clock confstr ctermid execv faccessat fchmod fchmodat fchown fchownat \
2559 fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ 2568 fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \
2560 futimens futimes gai_strerror \ 2569 futimens futimes gai_strerror \
2561 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ 2570 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
2562 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ 2571 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
2563 if_nameindex \ 2572 if_nameindex \
2564 initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mbrtowc mkdirat mkfifo \ 2573 initgroups kill killpg lchmod lchown lockf linkat lstat lutimes mmap \
2574 memrchr mbrtowc mkdirat mkfifo \
2565 mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock pol l \ 2575 mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock pol l \
2566 posix_fallocate posix_fadvise pread \ 2576 posix_fallocate posix_fadvise pread \
2567 pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath rena meat \ 2577 pthread_init pthread_kill putenv pwrite readlink readlinkat readv realpath rena meat \
2568 select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ 2578 select sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \
2569 setgid sethostname \ 2579 setgid sethostname \
2570 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setprior ity setuid setvbuf \ 2580 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setprior ity setuid setvbuf \
2571 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ 2581 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \
2572 sched_rr_get_interval \ 2582 sched_rr_get_interval \
2573 sigaction sigaltstack siginterrupt sigpending sigrelse \ 2583 sigaction sigaltstack siginterrupt sigpending sigrelse \
2574 sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ 2584 sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \
2575 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ 2585 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \
2576 truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ 2586 truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \
2577 wcscoll wcsftime wcsxfrm writev _getpty) 2587 wcscoll wcsftime wcsxfrm writev _getpty)
2588
2589 AC_CHECK_DECL(dirfd,
2590 AC_DEFINE(HAVE_DIRFD, 1,
2591 Define if you have the 'dirfd' function or macro.), ,
2592 [#include <sys/types.h>
2593 #include <dirent.h>])
2578 2594
2579 # For some functions, having a definition is not sufficient, since 2595 # For some functions, having a definition is not sufficient, since
2580 # we want to take their address. 2596 # we want to take their address.
2581 AC_MSG_CHECKING(for chroot) 2597 AC_MSG_CHECKING(for chroot)
2582 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=chroot]])] , 2598 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void *x=chroot]])] ,
2583 [AC_DEFINE(HAVE_CHROOT, 1, Define if you have the 'chroot' function.) 2599 [AC_DEFINE(HAVE_CHROOT, 1, Define if you have the 'chroot' function.)
2584 AC_MSG_RESULT(yes)], 2600 AC_MSG_RESULT(yes)],
2585 [AC_MSG_RESULT(no) 2601 [AC_MSG_RESULT(no)
2586 ]) 2602 ])
2587 AC_MSG_CHECKING(for link) 2603 AC_MSG_CHECKING(for link)
(...skipping 25 matching lines...) Expand all
2613 [AC_DEFINE(HAVE_FDATASYNC, 1, Define if you have the 'fdatasync' function.) 2629 [AC_DEFINE(HAVE_FDATASYNC, 1, Define if you have the 'fdatasync' function.)
2614 AC_MSG_RESULT(yes)], 2630 AC_MSG_RESULT(yes)],
2615 [AC_MSG_RESULT(no) 2631 [AC_MSG_RESULT(no)
2616 ]) 2632 ])
2617 AC_MSG_CHECKING(for epoll) 2633 AC_MSG_CHECKING(for epoll)
2618 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/epoll.h>]], [[void *x=epoll_c reate]])], 2634 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/epoll.h>]], [[void *x=epoll_c reate]])],
2619 [AC_DEFINE(HAVE_EPOLL, 1, Define if you have the 'epoll' functions.) 2635 [AC_DEFINE(HAVE_EPOLL, 1, Define if you have the 'epoll' functions.)
2620 AC_MSG_RESULT(yes)], 2636 AC_MSG_RESULT(yes)],
2621 [AC_MSG_RESULT(no) 2637 [AC_MSG_RESULT(no)
2622 ]) 2638 ])
2639 AC_MSG_CHECKING(for epoll_create1)
2640 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/epoll.h>]], [[void *x=epoll_c reate1]])],
2641 [AC_DEFINE(HAVE_EPOLL_CREATE1, 1, Define if you have the 'epoll_create1' funct ion.)
2642 AC_MSG_RESULT(yes)],
2643 [AC_MSG_RESULT(no)
2644 ])
2623 AC_MSG_CHECKING(for kqueue) 2645 AC_MSG_CHECKING(for kqueue)
2624 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 2646 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2625 #include <sys/types.h> 2647 #include <sys/types.h>
2626 #include <sys/event.h> 2648 #include <sys/event.h>
2627 ]], [[int x=kqueue()]])], 2649 ]], [[int x=kqueue()]])],
2628 [AC_DEFINE(HAVE_KQUEUE, 1, Define if you have the 'kqueue' functions.) 2650 [AC_DEFINE(HAVE_KQUEUE, 1, Define if you have the 'kqueue' functions.)
2629 AC_MSG_RESULT(yes)], 2651 AC_MSG_RESULT(yes)],
2630 [AC_MSG_RESULT(no) 2652 [AC_MSG_RESULT(no)
2631 ]) 2653 ])
2632 # On some systems (eg. FreeBSD 5), we would find a definition of the 2654 # On some systems (eg. FreeBSD 5), we would find a definition of the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
2665 2687
2666 AC_MSG_CHECKING(for getpagesize) 2688 AC_MSG_CHECKING(for getpagesize)
2667 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 2689 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2668 #include <unistd.h> 2690 #include <unistd.h>
2669 ]], [[void* p = getpagesize]])], 2691 ]], [[void* p = getpagesize]])],
2670 [AC_DEFINE(HAVE_GETPAGESIZE, 1, Define if you have the 'getpagesize' function. ) 2692 [AC_DEFINE(HAVE_GETPAGESIZE, 1, Define if you have the 'getpagesize' function. )
2671 AC_MSG_RESULT(yes)], 2693 AC_MSG_RESULT(yes)],
2672 [AC_MSG_RESULT(no) 2694 [AC_MSG_RESULT(no)
2673 ]) 2695 ])
2674 2696
2675 AC_MSG_CHECKING(whether mallopt can set malloc mmap threshold) 2697 AC_MSG_CHECKING(for broken unsetenv)
2676 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 2698 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2677 #include <malloc.h> 2699 #include <stdlib.h>
2678 ]], [[mallopt(M_MMAP_THRESHOLD, 256 * 1024)]])], 2700 ]], [[int res = unsetenv("DUMMY")]])],
2679 [AC_DEFINE(HAVE_MALLOPT_MMAP_THRESHOLD, 1, Define if mallopt can set malloc mm ap threshold.) 2701 [AC_MSG_RESULT(no)],
2680 AC_MSG_RESULT(yes)], 2702 [AC_DEFINE(HAVE_BROKEN_UNSETENV, 1, Define if `unsetenv` does not return an in t.)
2681 [AC_MSG_RESULT(no) 2703 AC_MSG_RESULT(yes)
2682 ]) 2704 ])
2683 2705
2684 dnl check for true 2706 dnl check for true
2685 AC_CHECK_PROGS(TRUE, true, /bin/true) 2707 AC_CHECK_PROGS(TRUE, true, /bin/true)
2686 2708
2687 dnl On some systems (e.g. Solaris 9), hstrerror and inet_aton are in -lresolv 2709 dnl On some systems (e.g. Solaris 9), hstrerror and inet_aton are in -lresolv
2688 dnl On others, they are in the C library, so we to take no action 2710 dnl On others, they are in the C library, so we to take no action
2689 AC_CHECK_LIB(c, inet_aton, [$ac_cv_prog_TRUE], 2711 AC_CHECK_LIB(c, inet_aton, [$ac_cv_prog_TRUE],
2690 AC_CHECK_LIB(resolv, inet_aton) 2712 AC_CHECK_LIB(resolv, inet_aton)
2691 ) 2713 )
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
2842 ) 2864 )
2843 AC_CHECK_FUNCS(gettimeofday, 2865 AC_CHECK_FUNCS(gettimeofday,
2844 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>]], 2866 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/time.h>]],
2845 [[gettimeofday((struct timeval*)0,(struct t imezone*)0);]])], 2867 [[gettimeofday((struct timeval*)0,(struct t imezone*)0);]])],
2846 [], 2868 [],
2847 [AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1, 2869 [AC_DEFINE(GETTIMEOFDAY_NO_TZ, 1,
2848 [Define if gettimeofday() does not have second (timezone) argument 2870 [Define if gettimeofday() does not have second (timezone) argument
2849 This is the case on Motorola V4 (R40V4.2)]) 2871 This is the case on Motorola V4 (R40V4.2)])
2850 ]) 2872 ])
2851 ) 2873 )
2874
2875 AC_CHECK_FUNCS(clock_gettime, [], [
2876 AC_CHECK_LIB(rt, clock_gettime, [
2877 AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
2878 AC_DEFINE(TIMEMODULE_LIB, [rt],
2879 [Library needed by timemodule.c: librt may be needed for clock _gettime()])
2880 ])
2881 ])
2882
2883 AC_CHECK_FUNCS(clock_getres, [], [
2884 AC_CHECK_LIB(rt, clock_getres, [
2885 AC_DEFINE(HAVE_CLOCK_GETRES, 1)
2886 ])
2887 ])
2852 2888
2853 AC_MSG_CHECKING(for major, minor, and makedev) 2889 AC_MSG_CHECKING(for major, minor, and makedev)
2854 AC_LINK_IFELSE([AC_LANG_PROGRAM([[ 2890 AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2855 #if defined(MAJOR_IN_MKDEV) 2891 #if defined(MAJOR_IN_MKDEV)
2856 #include <sys/mkdev.h> 2892 #include <sys/mkdev.h>
2857 #elif defined(MAJOR_IN_SYSMACROS) 2893 #elif defined(MAJOR_IN_SYSMACROS)
2858 #include <sys/sysmacros.h> 2894 #include <sys/sysmacros.h>
2859 #else 2895 #else
2860 #include <sys/types.h> 2896 #include <sys/types.h>
2861 #endif 2897 #endif
(...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after
4369 if test ! -f Modules/Setup.local 4405 if test ! -f Modules/Setup.local
4370 then 4406 then
4371 echo "# Edit this file for local setup changes" >Modules/Setup.local 4407 echo "# Edit this file for local setup changes" >Modules/Setup.local
4372 fi 4408 fi
4373 4409
4374 echo "creating Makefile" 4410 echo "creating Makefile"
4375 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 4411 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
4376 -s Modules Modules/Setup.config \ 4412 -s Modules Modules/Setup.config \
4377 Modules/Setup.local Modules/Setup 4413 Modules/Setup.local Modules/Setup
4378 mv config.c Modules 4414 mv config.c Modules
LEFTRIGHT

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