diff --git a/configure b/configure index 61ee51c4b36473..71e435c8f1404d 100755 --- a/configure +++ b/configure @@ -3547,6 +3547,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then # If we're building out-of-tree, we need to make sure the following # resources get picked up before their $srcdir counterparts. @@ -7307,6 +7310,8 @@ printf "%s\n" "$ANDROID_API_LEVEL" >&6; } as_fn_error $? "Fatal: you must define __ANDROID_API__" "$LINENO" 5 fi +printf "%s\n" "#define Py_ANDROID_API_LEVEL $ANDROID_API_LEVEL" >>confdefs.h + printf "%s\n" "#define ANDROID_API_LEVEL $ANDROID_API_LEVEL" >>confdefs.h @@ -12069,6 +12074,8 @@ if test "x$ac_cv_func_makedev" = xyes then : +printf "%s\n" "#define Py_HAVE_MAKEDEV 1" >>confdefs.h + printf "%s\n" "#define HAVE_MAKEDEV 1" >>confdefs.h @@ -12120,6 +12127,8 @@ if test "x$ac_cv_func_le64toh" = xyes then : +printf "%s\n" "#define Py_HAVE_HTOLE64 1" >>confdefs.h + printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h @@ -12271,6 +12280,8 @@ then : printf "%s\n" "#define HAVE___UINT128_T 1" >>confdefs.h +printf "%s\n" "#define Py_HAVE_GCC_UINT128_T 1" >>confdefs.h + printf "%s\n" "#define HAVE_GCC_UINT128_T 1" >>confdefs.h fi @@ -12944,6 +12955,8 @@ if test "x$have_largefile_support" = xyes then : +printf "%s\n" "#define Py_HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h + printf "%s\n" "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 @@ -14660,6 +14673,8 @@ fi printf "%s\n" "$ac_cv_aligned_required" >&6; } if test "$ac_cv_aligned_required" = yes ; then +printf "%s\n" "#define Py_HAVE_ALIGNED_REQUIRED 1" >>confdefs.h + printf "%s\n" "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h fi @@ -15338,6 +15353,8 @@ printf "%s\n" "$ac_cv_func_ffi_prep_cif_var" >&6; } if test "x$ac_cv_func_ffi_prep_cif_var" = xyes then : +printf "%s\n" "#define Py_HAVE_FFI_PREP_CIF_VAR 1" >>confdefs.h + printf "%s\n" "#define HAVE_FFI_PREP_CIF_VAR 1" >>confdefs.h fi @@ -15379,6 +15396,8 @@ printf "%s\n" "$ac_cv_func_ffi_prep_closure_loc" >&6; } if test "x$ac_cv_func_ffi_prep_closure_loc" = xyes then : +printf "%s\n" "#define Py_HAVE_FFI_PREP_CLOSURE_LOC 1" >>confdefs.h + printf "%s\n" "#define HAVE_FFI_PREP_CLOSURE_LOC 1" >>confdefs.h fi @@ -15420,6 +15439,8 @@ printf "%s\n" "$ac_cv_func_ffi_closure_alloc" >&6; } if test "x$ac_cv_func_ffi_closure_alloc" = xyes then : +printf "%s\n" "#define Py_HAVE_FFI_CLOSURE_ALLOC 1" >>confdefs.h + printf "%s\n" "#define HAVE_FFI_CLOSURE_ALLOC 1" >>confdefs.h fi @@ -17170,6 +17191,8 @@ if test "x$ac_cv_header_gdbm_slash_ndbm_h" = xyes then : +printf "%s\n" "#define Py_HAVE_GDBM_NDBM_H 1" >>confdefs.h + printf "%s\n" "#define HAVE_GDBM_NDBM_H 1" >>confdefs.h @@ -17199,6 +17222,8 @@ if test "x$ac_cv_header_gdbm_dash_ndbm_h" = xyes then : +printf "%s\n" "#define Py_HAVE_GDBM_DASH_NDBM_H 1" >>confdefs.h + printf "%s\n" "#define HAVE_GDBM_DASH_NDBM_H 1" >>confdefs.h @@ -17358,6 +17383,8 @@ printf "%s\n" "$ac_cv_have_libdb" >&6; } then : +printf "%s\n" "#define Py_HAVE_LIBDB 1" >>confdefs.h + printf "%s\n" "#define HAVE_LIBDB 1" >>confdefs.h @@ -17874,18 +17901,26 @@ printf "%s\n" "#define _POSIX_THREADS 1" >>confdefs.h # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. case $ac_sys_system/$ac_sys_release in SunOS/5.6) +printf "%s\n" "#define Py_HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h + printf "%s\n" "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h ;; SunOS/5.8) +printf "%s\n" "#define Py_HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h + printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h ;; AIX/*) +printf "%s\n" "#define Py_HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h + printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h ;; NetBSD/*) +printf "%s\n" "#define Py_HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h + printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h ;; @@ -17950,6 +17985,8 @@ then : case $ac_sys_system in CYGWIN*) +printf "%s\n" "#define Py_HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h + printf "%s\n" "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h ;; @@ -17970,6 +18007,8 @@ if test "x$posix_threads" = xstub then : +printf "%s\n" "#define Py_HAVE_PTHREAD_STUBS 1" >>confdefs.h + printf "%s\n" "#define HAVE_PTHREAD_STUBS 1" >>confdefs.h @@ -18443,6 +18482,8 @@ if test "x$ac_cv_can_raw_fd_frames" = xyes then : +printf "%s\n" "#define Py_HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h @@ -18484,6 +18525,8 @@ if test "x$ac_cv_can_raw_join_filters" = xyes then : +printf "%s\n" "#define Py_HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h @@ -18506,6 +18549,8 @@ fi if test "$with_doc_strings" != "no" then +printf "%s\n" "#define Py_WITH_DOC_STRINGS 1" >>confdefs.h + printf "%s\n" "#define WITH_DOC_STRINGS 1" >>confdefs.h fi @@ -18555,6 +18600,8 @@ if test "x$ac_cv_header_stdatomic_h" = xyes then : +printf "%s\n" "#define Py_HAVE_STD_ATOMIC 1" >>confdefs.h + printf "%s\n" "#define HAVE_STD_ATOMIC 1" >>confdefs.h @@ -18600,6 +18647,8 @@ if test "x$ac_cv_builtin_atomic" = xyes then : +printf "%s\n" "#define Py_HAVE_BUILTIN_ATOMIC 1" >>confdefs.h + printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h @@ -18627,6 +18676,8 @@ if test "$with_mimalloc" != no; then fi with_mimalloc=yes +printf "%s\n" "#define Py_WITH_MIMALLOC 1" >>confdefs.h + printf "%s\n" "#define WITH_MIMALLOC 1" >>confdefs.h MIMALLOC_HEADERS='$(MIMALLOC_HEADERS)' @@ -18667,6 +18718,8 @@ fi if test "$with_pymalloc" != "no" then +printf "%s\n" "#define Py_WITH_PYMALLOC 1" >>confdefs.h + printf "%s\n" "#define WITH_PYMALLOC 1" >>confdefs.h fi @@ -18718,6 +18771,8 @@ if test "$with_valgrind" != no; then if test "x$ac_cv_header_valgrind_valgrind_h" = xyes then : +printf "%s\n" "#define Py_WITH_VALGRIND 1" >>confdefs.h + printf "%s\n" "#define WITH_VALGRIND 1" >>confdefs.h else case e in #( @@ -18806,6 +18861,8 @@ fi as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 fi +printf "%s\n" "#define Py_WITH_DTRACE 1" >>confdefs.h + printf "%s\n" "#define WITH_DTRACE 1" >>confdefs.h DTRACE_HEADERS="Include/pydtrace_probes.h" @@ -18887,6 +18944,8 @@ printf "%s\n" "$DYNLOADFILE" >&6; } if test "$DYNLOADFILE" != "dynload_stub.o" then +printf "%s\n" "#define Py_HAVE_DYNAMIC_LOADING 1" >>confdefs.h + printf "%s\n" "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h fi @@ -20224,6 +20283,8 @@ ac_fn_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include >confdefs.h + printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h fi @@ -20265,6 +20326,8 @@ printf "%s\n" "$ac_cv_func_chroot" >&6; } if test "x$ac_cv_func_chroot" = xyes then : +printf "%s\n" "#define Py_HAVE_CHROOT 1" >>confdefs.h + printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h fi @@ -20306,6 +20369,8 @@ printf "%s\n" "$ac_cv_func_link" >&6; } if test "x$ac_cv_func_link" = xyes then : +printf "%s\n" "#define Py_HAVE_LINK 1" >>confdefs.h + printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h fi @@ -20347,6 +20412,8 @@ printf "%s\n" "$ac_cv_func_symlink" >&6; } if test "x$ac_cv_func_symlink" = xyes then : +printf "%s\n" "#define Py_HAVE_SYMLINK 1" >>confdefs.h + printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h fi @@ -20388,6 +20455,8 @@ printf "%s\n" "$ac_cv_func_fchdir" >&6; } if test "x$ac_cv_func_fchdir" = xyes then : +printf "%s\n" "#define Py_HAVE_FCHDIR 1" >>confdefs.h + printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h fi @@ -20429,6 +20498,8 @@ printf "%s\n" "$ac_cv_func_fsync" >&6; } if test "x$ac_cv_func_fsync" = xyes then : +printf "%s\n" "#define Py_HAVE_FSYNC 1" >>confdefs.h + printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h fi @@ -20470,6 +20541,8 @@ printf "%s\n" "$ac_cv_func_fdatasync" >&6; } if test "x$ac_cv_func_fdatasync" = xyes then : +printf "%s\n" "#define Py_HAVE_FDATASYNC 1" >>confdefs.h + printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h fi @@ -20511,6 +20584,8 @@ printf "%s\n" "$ac_cv_func_epoll_create" >&6; } if test "x$ac_cv_func_epoll_create" = xyes then : +printf "%s\n" "#define Py_HAVE_EPOLL 1" >>confdefs.h + printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h fi @@ -20552,6 +20627,8 @@ printf "%s\n" "$ac_cv_func_epoll_create1" >&6; } if test "x$ac_cv_func_epoll_create1" = xyes then : +printf "%s\n" "#define Py_HAVE_EPOLL_CREATE1 1" >>confdefs.h + printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h fi @@ -20596,6 +20673,8 @@ printf "%s\n" "$ac_cv_func_kqueue" >&6; } if test "x$ac_cv_func_kqueue" = xyes then : +printf "%s\n" "#define Py_HAVE_KQUEUE 1" >>confdefs.h + printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h fi @@ -20640,6 +20719,8 @@ printf "%s\n" "$ac_cv_func_prlimit" >&6; } if test "x$ac_cv_func_prlimit" = xyes then : +printf "%s\n" "#define Py_HAVE_PRLIMIT 1" >>confdefs.h + printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h fi @@ -20682,6 +20763,8 @@ printf "%s\n" "$ac_cv_func__dyld_shared_cache_contains_path" >&6; } if test "x$ac_cv_func__dyld_shared_cache_contains_path" = xyes then : +printf "%s\n" "#define Py_HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h + printf "%s\n" "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h fi @@ -20731,6 +20814,8 @@ printf "%s\n" "$ac_cv_func_memfd_create" >&6; } if test "x$ac_cv_func_memfd_create" = xyes then : +printf "%s\n" "#define Py_HAVE_MEMFD_CREATE 1" >>confdefs.h + printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h fi @@ -20777,6 +20862,8 @@ printf "%s\n" "$ac_cv_func_eventfd" >&6; } if test "x$ac_cv_func_eventfd" = xyes then : +printf "%s\n" "#define Py_HAVE_EVENTFD 1" >>confdefs.h + printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h fi @@ -20823,6 +20910,8 @@ printf "%s\n" "$ac_cv_func_timerfd_create" >&6; } if test "x$ac_cv_func_timerfd_create" = xyes then : +printf "%s\n" "#define Py_HAVE_TIMERFD_CREATE 1" >>confdefs.h + printf "%s\n" "#define HAVE_TIMERFD_CREATE 1" >>confdefs.h fi @@ -20871,6 +20960,8 @@ printf "%s\n" "$ac_cv_func_ctermid_r" >&6; } if test "x$ac_cv_func_ctermid_r" = xyes then : +printf "%s\n" "#define Py_HAVE_CTERMID_R 1" >>confdefs.h + printf "%s\n" "#define HAVE_CTERMID_R 1" >>confdefs.h fi @@ -21010,6 +21101,8 @@ printf "%s\n" "$ac_cv_func_getpagesize" >&6; } if test "x$ac_cv_func_getpagesize" = xyes then : +printf "%s\n" "#define Py_HAVE_GETPAGESIZE 1" >>confdefs.h + printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h fi @@ -21052,6 +21145,8 @@ if test "x$ac_cv_broken_unsetenv" = xyes then : +printf "%s\n" "#define Py_HAVE_BROKEN_UNSETENV 1" >>confdefs.h + printf "%s\n" "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h @@ -21361,6 +21456,8 @@ fi fi if test "$ac_cv_have_chflags" = yes ; then +printf "%s\n" "#define Py_HAVE_CHFLAGS 1" >>confdefs.h + printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h fi @@ -21418,6 +21515,8 @@ fi fi if test "$ac_cv_have_lchflags" = yes ; then +printf "%s\n" "#define Py_HAVE_LCHFLAGS 1" >>confdefs.h + printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h fi @@ -22355,6 +22454,8 @@ printf "%s\n" "$ac_cv_func_hstrerror" >&6; } if test "x$ac_cv_func_hstrerror" = xyes then : +printf "%s\n" "#define Py_HAVE_HSTRERROR 1" >>confdefs.h + printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h fi @@ -22396,6 +22497,8 @@ printf "%s\n" "$ac_cv_func_getservbyname" >&6; } if test "x$ac_cv_func_getservbyname" = xyes then : +printf "%s\n" "#define Py_HAVE_GETSERVBYNAME 1" >>confdefs.h + printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h fi @@ -22437,6 +22540,8 @@ printf "%s\n" "$ac_cv_func_getservbyport" >&6; } if test "x$ac_cv_func_getservbyport" = xyes then : +printf "%s\n" "#define Py_HAVE_GETSERVBYPORT 1" >>confdefs.h + printf "%s\n" "#define HAVE_GETSERVBYPORT 1" >>confdefs.h fi @@ -22478,6 +22583,8 @@ printf "%s\n" "$ac_cv_func_gethostbyname" >&6; } if test "x$ac_cv_func_gethostbyname" = xyes then : +printf "%s\n" "#define Py_HAVE_GETHOSTBYNAME 1" >>confdefs.h + printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h fi @@ -22519,6 +22626,8 @@ printf "%s\n" "$ac_cv_func_gethostbyaddr" >&6; } if test "x$ac_cv_func_gethostbyaddr" = xyes then : +printf "%s\n" "#define Py_HAVE_GETHOSTBYADDR 1" >>confdefs.h + printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h fi @@ -22560,6 +22669,8 @@ printf "%s\n" "$ac_cv_func_getprotobyname" >&6; } if test "x$ac_cv_func_getprotobyname" = xyes then : +printf "%s\n" "#define Py_HAVE_GETPROTOBYNAME 1" >>confdefs.h + printf "%s\n" "#define HAVE_GETPROTOBYNAME 1" >>confdefs.h fi @@ -22609,6 +22720,8 @@ printf "%s\n" "$ac_cv_func_inet_aton" >&6; } if test "x$ac_cv_func_inet_aton" = xyes then : +printf "%s\n" "#define Py_HAVE_INET_ATON 1" >>confdefs.h + printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h fi @@ -22655,6 +22768,8 @@ printf "%s\n" "$ac_cv_func_inet_ntoa" >&6; } if test "x$ac_cv_func_inet_ntoa" = xyes then : +printf "%s\n" "#define Py_HAVE_INET_NTOA 1" >>confdefs.h + printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h fi @@ -22701,6 +22816,8 @@ printf "%s\n" "$ac_cv_func_inet_pton" >&6; } if test "x$ac_cv_func_inet_pton" = xyes then : +printf "%s\n" "#define Py_HAVE_INET_PTON 1" >>confdefs.h + printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h fi @@ -22747,6 +22864,8 @@ printf "%s\n" "$ac_cv_func_getpeername" >&6; } if test "x$ac_cv_func_getpeername" = xyes then : +printf "%s\n" "#define Py_HAVE_GETPEERNAME 1" >>confdefs.h + printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h fi @@ -22793,6 +22912,8 @@ printf "%s\n" "$ac_cv_func_getsockname" >&6; } if test "x$ac_cv_func_getsockname" = xyes then : +printf "%s\n" "#define Py_HAVE_GETSOCKNAME 1" >>confdefs.h + printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h fi @@ -22839,6 +22960,8 @@ printf "%s\n" "$ac_cv_func_accept" >&6; } if test "x$ac_cv_func_accept" = xyes then : +printf "%s\n" "#define Py_HAVE_ACCEPT 1" >>confdefs.h + printf "%s\n" "#define HAVE_ACCEPT 1" >>confdefs.h fi @@ -22885,6 +23008,8 @@ printf "%s\n" "$ac_cv_func_bind" >&6; } if test "x$ac_cv_func_bind" = xyes then : +printf "%s\n" "#define Py_HAVE_BIND 1" >>confdefs.h + printf "%s\n" "#define HAVE_BIND 1" >>confdefs.h fi @@ -22931,6 +23056,8 @@ printf "%s\n" "$ac_cv_func_connect" >&6; } if test "x$ac_cv_func_connect" = xyes then : +printf "%s\n" "#define Py_HAVE_CONNECT 1" >>confdefs.h + printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h fi @@ -22977,6 +23104,8 @@ printf "%s\n" "$ac_cv_func_listen" >&6; } if test "x$ac_cv_func_listen" = xyes then : +printf "%s\n" "#define Py_HAVE_LISTEN 1" >>confdefs.h + printf "%s\n" "#define HAVE_LISTEN 1" >>confdefs.h fi @@ -23023,6 +23152,8 @@ printf "%s\n" "$ac_cv_func_recvfrom" >&6; } if test "x$ac_cv_func_recvfrom" = xyes then : +printf "%s\n" "#define Py_HAVE_RECVFROM 1" >>confdefs.h + printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h fi @@ -23069,6 +23200,8 @@ printf "%s\n" "$ac_cv_func_sendto" >&6; } if test "x$ac_cv_func_sendto" = xyes then : +printf "%s\n" "#define Py_HAVE_SENDTO 1" >>confdefs.h + printf "%s\n" "#define HAVE_SENDTO 1" >>confdefs.h fi @@ -23115,6 +23248,8 @@ printf "%s\n" "$ac_cv_func_setsockopt" >&6; } if test "x$ac_cv_func_setsockopt" = xyes then : +printf "%s\n" "#define Py_HAVE_SETSOCKOPT 1" >>confdefs.h + printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h fi @@ -23161,6 +23296,8 @@ printf "%s\n" "$ac_cv_func_socket" >&6; } if test "x$ac_cv_func_socket" = xyes then : +printf "%s\n" "#define Py_HAVE_SOCKET 1" >>confdefs.h + printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h fi @@ -23209,6 +23346,8 @@ printf "%s\n" "$ac_cv_func_setgroups" >&6; } if test "x$ac_cv_func_setgroups" = xyes then : +printf "%s\n" "#define Py_HAVE_SETGROUPS 1" >>confdefs.h + printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h fi @@ -23396,6 +23535,8 @@ if test "$ac_res" != no then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" +printf "%s\n" "#define Py_HAVE_LOGIN_TTY 1" >>confdefs.h + printf "%s\n" "#define HAVE_LOGIN_TTY 1" >>confdefs.h @@ -23590,6 +23731,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : +printf "%s\n" "#define Py_GETPGRP_HAVE_ARG 1" >>confdefs.h + printf "%s\n" "#define GETPGRP_HAVE_ARG 1" >>confdefs.h fi @@ -23618,6 +23761,8 @@ _ACEOF if ac_fn_c_try_compile "$LINENO" then : +printf "%s\n" "#define Py_SETPGRP_HAVE_ARG 1" >>confdefs.h + printf "%s\n" "#define SETPGRP_HAVE_ARG 1" >>confdefs.h fi @@ -24038,6 +24183,8 @@ if test "x$ac_cv_device_macros" = xyes then : +printf "%s\n" "#define Py_HAVE_DEVICE_MACROS 1" >>confdefs.h + printf "%s\n" "#define HAVE_DEVICE_MACROS 1" >>confdefs.h @@ -24230,6 +24377,8 @@ then : fi else +printf "%s\n" "#define Py_HAVE_GETADDRINFO 1" >>confdefs.h + printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h fi @@ -24475,6 +24624,8 @@ fi printf "%s\n" "$ac_cv_header_time_altzone" >&6; } if test $ac_cv_header_time_altzone = yes; then +printf "%s\n" "#define Py_HAVE_ALTZONE 1" >>confdefs.h + printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h fi @@ -24510,6 +24661,8 @@ fi printf "%s\n" "$ac_cv_struct_addrinfo" >&6; } if test $ac_cv_struct_addrinfo = yes; then +printf "%s\n" "#define Py_HAVE_ADDRINFO 1" >>confdefs.h + printf "%s\n" "#define HAVE_ADDRINFO 1" >>confdefs.h fi @@ -24547,6 +24700,8 @@ fi printf "%s\n" "$ac_cv_struct_sockaddr_storage" >&6; } if test $ac_cv_struct_sockaddr_storage = yes; then +printf "%s\n" "#define Py_HAVE_SOCKADDR_STORAGE 1" >>confdefs.h + printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h fi @@ -24585,6 +24740,8 @@ fi printf "%s\n" "$ac_cv_struct_sockaddr_alg" >&6; } if test $ac_cv_struct_sockaddr_alg = yes; then +printf "%s\n" "#define Py_HAVE_SOCKADDR_ALG 1" >>confdefs.h + printf "%s\n" "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h fi @@ -24752,6 +24909,8 @@ if test "x$ac_cv_function_prototypes" = xyes then : +printf "%s\n" "#define Py_HAVE_PROTOTYPES 1" >>confdefs.h + printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h @@ -24797,6 +24956,8 @@ printf "%s\n" "$ac_cv_func_socketpair" >&6; } if test "x$ac_cv_func_socketpair" = xyes then : +printf "%s\n" "#define Py_HAVE_SOCKETPAIR 1" >>confdefs.h + printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h fi @@ -24842,6 +25003,8 @@ if test "x$ac_cv_struct_sockaddr_sa_len" = xyes then : +printf "%s\n" "#define Py_HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h + printf "%s\n" "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h @@ -25167,6 +25330,8 @@ if test "x$ac_cv_gcc_asm_for_x64" = xyes then : +printf "%s\n" "#define Py_HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h + printf "%s\n" "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h @@ -25228,10 +25393,14 @@ printf "%s\n" "$ax_cv_c_float_words_bigendian" >&6; } case $ax_cv_c_float_words_bigendian in yes) +printf "%s\n" "#define Py_DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h + printf "%s\n" "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h ;; no) +printf "%s\n" "#define Py_DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h + printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h ;; *) @@ -25244,6 +25413,8 @@ printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h # FLOAT_WORDS_BIGENDIAN doesn't actually detect this case, # but if it's not big or little, then it must be this? +printf "%s\n" "#define Py_DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h + printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h ;; #( *) : @@ -25303,6 +25474,8 @@ if test "x$ac_cv_gcc_asm_for_x87" = xyes then : +printf "%s\n" "#define Py_HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h + printf "%s\n" "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h @@ -25348,6 +25521,8 @@ if test "x$ac_cv_gcc_asm_for_mc68881" = xyes then : +printf "%s\n" "#define Py_HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h + printf "%s\n" "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h @@ -25418,6 +25593,8 @@ if test "x$ac_cv_x87_double_rounding" = xyes then : +printf "%s\n" "#define Py_X87_DOUBLE_ROUNDING 1" >>confdefs.h + printf "%s\n" "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h @@ -25504,6 +25681,8 @@ if test "x$ac_cv_posix_semaphores_enabled" = xno then : +printf "%s\n" "#define Py_POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h + printf "%s\n" "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h @@ -25567,6 +25746,8 @@ if test "x$ac_cv_broken_sem_getvalue" = xyes then : +printf "%s\n" "#define Py_HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h + printf "%s\n" "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h @@ -25689,6 +25870,8 @@ if test "x$ac_cv_header_wchar_h" = xyes then : +printf "%s\n" "#define Py_HAVE_WCHAR_H 1" >>confdefs.h + printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h wchar_h="yes" @@ -25792,6 +25975,8 @@ if test "$ac_cv_sizeof_wchar_t" -ge 2 \ -a "$ac_cv_wchar_t_signed" = "no" then +printf "%s\n" "#define Py_HAVE_USABLE_WCHAR_T 1" >>confdefs.h + printf "%s\n" "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 @@ -25810,6 +25995,8 @@ SunOS/*) # non-Unicode locales is not Unicode and hence cannot be used directly. # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html +printf "%s\n" "#define Py_HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h + printf "%s\n" "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h fi @@ -26238,6 +26425,8 @@ printf "%s\n" "$ac_cv_rshift_extends_sign" >&6; } if test "$ac_cv_rshift_extends_sign" = no then +printf "%s\n" "#define Py_SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h + printf "%s\n" "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h fi @@ -26282,6 +26471,8 @@ printf "%s\n" "$ac_cv_have_getc_unlocked" >&6; } if test "$ac_cv_have_getc_unlocked" = yes then +printf "%s\n" "#define Py_HAVE_GETC_UNLOCKED 1" >>confdefs.h + printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h fi @@ -26863,6 +27054,8 @@ if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes then : +printf "%s\n" "#define Py_HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h + printf "%s\n" "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h @@ -26882,6 +27075,8 @@ if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes then : +printf "%s\n" "#define Py_HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h + printf "%s\n" "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h @@ -26933,6 +27128,8 @@ printf "%s\n" "$ac_cv_readline_rl_pre_input_hook" >&6; } then : +printf "%s\n" "#define Py_HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h + printf "%s\n" "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h @@ -26984,6 +27181,8 @@ printf "%s\n" "$ac_cv_readline_rl_completion_display_matches_hook" >&6; } then : +printf "%s\n" "#define Py_HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h + printf "%s\n" "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h @@ -27035,6 +27234,8 @@ printf "%s\n" "$ac_cv_readline_rl_resize_terminal" >&6; } then : +printf "%s\n" "#define Py_HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h + printf "%s\n" "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h @@ -27086,6 +27287,8 @@ printf "%s\n" "$ac_cv_readline_rl_completion_matches" >&6; } then : +printf "%s\n" "#define Py_HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h + printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h @@ -27106,6 +27309,8 @@ if test "x$ac_cv_have_decl_rl_catch_signals" = xyes then : +printf "%s\n" "#define Py_HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h + printf "%s\n" "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h @@ -27156,6 +27361,8 @@ printf "%s\n" "$ac_cv_readline_append_history" >&6; } then : +printf "%s\n" "#define Py_HAVE_RL_APPEND_HISTORY 1" >>confdefs.h + printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h @@ -27288,6 +27495,8 @@ printf "%s\n" "$ac_cv_broken_nice" >&6; } if test "$ac_cv_broken_nice" = yes then +printf "%s\n" "#define Py_HAVE_BROKEN_NICE 1" >>confdefs.h + printf "%s\n" "#define HAVE_BROKEN_NICE 1" >>confdefs.h fi @@ -27344,6 +27553,8 @@ printf "%s\n" "$ac_cv_broken_poll" >&6; } if test "$ac_cv_broken_poll" = yes then +printf "%s\n" "#define Py_HAVE_BROKEN_POLL 1" >>confdefs.h + printf "%s\n" "#define HAVE_BROKEN_POLL 1" >>confdefs.h fi @@ -27446,6 +27657,8 @@ printf "%s\n" "$ac_cv_working_tzset" >&6; } if test "$ac_cv_working_tzset" = yes then +printf "%s\n" "#define Py_HAVE_WORKING_TZSET 1" >>confdefs.h + printf "%s\n" "#define HAVE_WORKING_TZSET 1" >>confdefs.h fi @@ -27486,6 +27699,8 @@ printf "%s\n" "$ac_cv_stat_tv_nsec" >&6; } if test "$ac_cv_stat_tv_nsec" = yes then +printf "%s\n" "#define Py_HAVE_STAT_TV_NSEC 1" >>confdefs.h + printf "%s\n" "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h fi @@ -27526,6 +27741,8 @@ printf "%s\n" "$ac_cv_stat_tv_nsec2" >&6; } if test "$ac_cv_stat_tv_nsec2" = yes then +printf "%s\n" "#define Py_HAVE_STAT_TV_NSEC2 1" >>confdefs.h + printf "%s\n" "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h fi @@ -27712,6 +27929,8 @@ else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } +printf "%s\n" "#define Py_HAVE_NCURSESW 1" >>confdefs.h + printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h have_curses=yes @@ -27785,6 +28004,8 @@ else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } +printf "%s\n" "#define Py_HAVE_PANELW 1" >>confdefs.h + printf "%s\n" "#define HAVE_PANELW 1" >>confdefs.h have_panel=yes @@ -27866,6 +28087,8 @@ else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } +printf "%s\n" "#define Py_HAVE_NCURSES 1" >>confdefs.h + printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h have_curses=yes @@ -27939,6 +28162,8 @@ else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } +printf "%s\n" "#define Py_HAVE_PANEL 1" >>confdefs.h + printf "%s\n" "#define HAVE_PANEL 1" >>confdefs.h have_panel=yes @@ -28258,6 +28483,8 @@ printf "%s\n" "$ac_cv_mvwdelch_is_expression" >&6; } if test "$ac_cv_mvwdelch_is_expression" = yes then +printf "%s\n" "#define Py_MVWDELCH_IS_EXPRESSION 1" >>confdefs.h + printf "%s\n" "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h fi @@ -28314,6 +28541,8 @@ printf "%s\n" "$ac_cv_window_has_flags" >&6; } if test "$ac_cv_window_has_flags" = yes then +printf "%s\n" "#define Py_WINDOW_HAS_FLAGS 1" >>confdefs.h + printf "%s\n" "#define WINDOW_HAS_FLAGS 1" >>confdefs.h fi @@ -28374,6 +28603,8 @@ printf "%s\n" "$ac_cv_lib_curses_is_pad" >&6; } if test "x$ac_cv_lib_curses_is_pad" = xyes then : +printf "%s\n" "#define Py_HAVE_CURSES_IS_PAD 1" >>confdefs.h + printf "%s\n" "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h fi @@ -28434,6 +28665,8 @@ printf "%s\n" "$ac_cv_lib_curses_is_term_resized" >&6; } if test "x$ac_cv_lib_curses_is_term_resized" = xyes then : +printf "%s\n" "#define Py_HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h + printf "%s\n" "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h fi @@ -28494,6 +28727,8 @@ printf "%s\n" "$ac_cv_lib_curses_resize_term" >&6; } if test "x$ac_cv_lib_curses_resize_term" = xyes then : +printf "%s\n" "#define Py_HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h + printf "%s\n" "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h fi @@ -28554,6 +28789,8 @@ printf "%s\n" "$ac_cv_lib_curses_resizeterm" >&6; } if test "x$ac_cv_lib_curses_resizeterm" = xyes then : +printf "%s\n" "#define Py_HAVE_CURSES_RESIZETERM 1" >>confdefs.h + printf "%s\n" "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h fi @@ -28614,6 +28851,8 @@ printf "%s\n" "$ac_cv_lib_curses_immedok" >&6; } if test "x$ac_cv_lib_curses_immedok" = xyes then : +printf "%s\n" "#define Py_HAVE_CURSES_IMMEDOK 1" >>confdefs.h + printf "%s\n" "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h fi @@ -28674,6 +28913,8 @@ printf "%s\n" "$ac_cv_lib_curses_syncok" >&6; } if test "x$ac_cv_lib_curses_syncok" = xyes then : +printf "%s\n" "#define Py_HAVE_CURSES_SYNCOK 1" >>confdefs.h + printf "%s\n" "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h fi @@ -28734,6 +28975,8 @@ printf "%s\n" "$ac_cv_lib_curses_wchgat" >&6; } if test "x$ac_cv_lib_curses_wchgat" = xyes then : +printf "%s\n" "#define Py_HAVE_CURSES_WCHGAT 1" >>confdefs.h + printf "%s\n" "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h fi @@ -28794,6 +29037,8 @@ printf "%s\n" "$ac_cv_lib_curses_filter" >&6; } if test "x$ac_cv_lib_curses_filter" = xyes then : +printf "%s\n" "#define Py_HAVE_CURSES_FILTER 1" >>confdefs.h + printf "%s\n" "#define HAVE_CURSES_FILTER 1" >>confdefs.h fi @@ -28854,6 +29099,8 @@ printf "%s\n" "$ac_cv_lib_curses_has_key" >&6; } if test "x$ac_cv_lib_curses_has_key" = xyes then : +printf "%s\n" "#define Py_HAVE_CURSES_HAS_KEY 1" >>confdefs.h + printf "%s\n" "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h fi @@ -28914,6 +29161,8 @@ printf "%s\n" "$ac_cv_lib_curses_typeahead" >&6; } if test "x$ac_cv_lib_curses_typeahead" = xyes then : +printf "%s\n" "#define Py_HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h + printf "%s\n" "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h fi @@ -28974,6 +29223,8 @@ printf "%s\n" "$ac_cv_lib_curses_use_env" >&6; } if test "x$ac_cv_lib_curses_use_env" = xyes then : +printf "%s\n" "#define Py_HAVE_CURSES_USE_ENV 1" >>confdefs.h + printf "%s\n" "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h fi @@ -29037,6 +29288,8 @@ fi if test "x$ac_cv_file__dev_ptmx" = xyes; then +printf "%s\n" "#define Py_HAVE_DEV_PTMX 1" >>confdefs.h + printf "%s\n" "#define HAVE_DEV_PTMX 1" >>confdefs.h fi @@ -29064,6 +29317,8 @@ fi if test "x$ac_cv_file__dev_ptc" = xyes; then +printf "%s\n" "#define Py_HAVE_DEV_PTC 1" >>confdefs.h + printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h fi @@ -29140,6 +29395,8 @@ printf "%s\n" "$ac_cv_broken_mbstowcs" >&6; } if test "$ac_cv_broken_mbstowcs" = yes then +printf "%s\n" "#define Py_HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h + printf "%s\n" "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h fi @@ -29155,6 +29412,8 @@ then : if test "$withval" = yes then +printf "%s\n" "#define Py_USE_COMPUTED_GOTOS 1" >>confdefs.h + printf "%s\n" "#define USE_COMPUTED_GOTOS 1" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 @@ -29163,6 +29422,8 @@ fi if test "$withval" = no then +printf "%s\n" "#define Py_USE_COMPUTED_GOTOS 0" >>confdefs.h + printf "%s\n" "#define USE_COMPUTED_GOTOS 0" >>confdefs.h { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 @@ -29223,6 +29484,8 @@ fi printf "%s\n" "$ac_cv_computed_gotos" >&6; } case "$ac_cv_computed_gotos" in yes*) +printf "%s\n" "#define Py_HAVE_COMPUTED_GOTOS 1" >>confdefs.h + printf "%s\n" "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h esac @@ -29230,6 +29493,8 @@ esac case $ac_sys_system in AIX*) +printf "%s\n" "#define Py_HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h + printf "%s\n" "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h ;; esac @@ -29363,6 +29628,8 @@ CFLAGS="$saved_cflags" printf "%s\n" "$have_glibc_memmove_bug" >&6; } if test "$have_glibc_memmove_bug" = yes; then +printf "%s\n" "#define Py_HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h + printf "%s\n" "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h fi @@ -29418,6 +29685,8 @@ fi printf "%s\n" "$have_ipa_pure_const_bug" >&6; } if test "$have_ipa_pure_const_bug" = yes; then +printf "%s\n" "#define Py_HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h + printf "%s\n" "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h fi @@ -29504,6 +29773,8 @@ if test "x$ac_cv_dirent_d_type" = xyes then : +printf "%s\n" "#define Py_HAVE_DIRENT_D_TYPE 1" >>confdefs.h + printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h @@ -29556,6 +29827,8 @@ if test "x$ac_cv_getrandom_syscall" = xyes then : +printf "%s\n" "#define Py_HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h + printf "%s\n" "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h @@ -29607,6 +29880,8 @@ if test "x$ac_cv_func_getrandom" = xyes then : +printf "%s\n" "#define Py_HAVE_GETRANDOM 1" >>confdefs.h + printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h @@ -32057,6 +32332,8 @@ then : LIBHACL_SIMD128_FLAGS="-msse -msse2 -msse3 -msse4.1 -msse4.2" +printf "%s\n" "#define Py_HACL_CAN_COMPILE_SIMD128 1" >>confdefs.h + printf "%s\n" "#define HACL_CAN_COMPILE_SIMD128 1" >>confdefs.h @@ -32131,6 +32408,8 @@ then : LIBHACL_SIMD256_FLAGS="-mavx2" +printf "%s\n" "#define Py_HACL_CAN_COMPILE_SIMD256 1" >>confdefs.h + printf "%s\n" "#define HACL_CAN_COMPILE_SIMD256 1" >>confdefs.h diff --git a/configure.ac b/configure.ac index 172e8a1a842010..2a9cb543b0fc37 100644 --- a/configure.ac +++ b/configure.ac @@ -53,6 +53,16 @@ AC_DEFUN([WITH_SAVE_ENV], [RESTORE_ENV] )dnl +dnl AC_DEFINE*() wrappers. +AC_DEFUN([PY_DEFINE], [dnl + AC_DEFINE([[Py_]$1], [$2], [$3])dnl + AC_DEFINE([$1], [$2], [$3])dnl +]) +AC_DEFUN([PY_DEFINE_UNQUOTED], [dnl + AC_DEFINE_UNQUOTED([[Py_]$1], [$2], [$3])dnl + AC_DEFINE_UNQUOTED([$1], [$2], [$3])dnl +]) + dnl PY_CHECK_FUNC(FUNCTION, [INCLUDES], [AC_DEFINE-VAR]) AC_DEFUN([PY_CHECK_FUNC], [ AS_VAR_PUSHDEF([py_var], [ac_cv_func_$1]) @@ -68,7 +78,7 @@ AC_DEFUN([PY_CHECK_FUNC], AS_VAR_IF( [py_var], [yes], - [AC_DEFINE([py_define], [1], [Define if you have the '$1' function.])]) + [PY_DEFINE([py_define], [1], [Define if you have the '$1' function.])]) AS_VAR_POPDEF([py_var]) AS_VAR_POPDEF([py_define]) ]) @@ -1258,7 +1268,7 @@ if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then if test -z "$ANDROID_API_LEVEL"; then AC_MSG_ERROR([Fatal: you must define __ANDROID_API__]) fi - AC_DEFINE_UNQUOTED([ANDROID_API_LEVEL], [$ANDROID_API_LEVEL], + PY_DEFINE_UNQUOTED([ANDROID_API_LEVEL], [$ANDROID_API_LEVEL], [The Android API level.]) # For __android_log_write() in Python/pylifecycle.c. @@ -3040,7 +3050,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]) AS_VAR_IF([ac_cv_func_makedev], [yes], [ - AC_DEFINE([HAVE_MAKEDEV], [1], + PY_DEFINE([HAVE_MAKEDEV], [1], [Define this if you have the makedev macro.]) ]) @@ -3058,7 +3068,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]) AS_VAR_IF([ac_cv_func_le64toh], [yes], [ - AC_DEFINE([HAVE_HTOLE64], [1], + PY_DEFINE([HAVE_HTOLE64], [1], [Define this if you have le64toh()]) ]) @@ -3100,7 +3110,7 @@ AC_TYPE_UID_T AC_CHECK_TYPES([ssize_t]) AC_CHECK_TYPES([__uint128_t], - [AC_DEFINE([HAVE_GCC_UINT128_T], [1], + [PY_DEFINE([HAVE_GCC_UINT128_T], [1], [Define if your compiler provides __uint128_t])]) # Sizes and alignments of various common basic types @@ -3143,7 +3153,7 @@ AS_CASE([$ac_sys_system], [Emscripten], [have_largefile_support="no"] ) AS_VAR_IF([have_largefile_support], [yes], [ - AC_DEFINE([HAVE_LARGEFILE_SUPPORT], [1], + PY_DEFINE([HAVE_LARGEFILE_SUPPORT], [1], [Defined to enable large file support when an off_t is bigger than a long and long long is at least as big as an off_t. You may need to add some flags for configuration and compilation to enable this mode. @@ -3844,7 +3854,7 @@ else fi]) ]) if test "$ac_cv_aligned_required" = yes ; then - AC_DEFINE([HAVE_ALIGNED_REQUIRED], [1], + PY_DEFINE([HAVE_ALIGNED_REQUIRED], [1], [Define if aligned memory access is required]) fi @@ -4419,7 +4429,7 @@ AC_CACHE_VAL([ac_cv_header_gdbm_slash_ndbm_h], [ ) ]) AS_VAR_IF([ac_cv_header_gdbm_slash_ndbm_h], [yes], [ - AC_DEFINE([HAVE_GDBM_NDBM_H], [1], [Define to 1 if you have the header file.]) + PY_DEFINE([HAVE_GDBM_NDBM_H], [1], [Define to 1 if you have the header file.]) ]) AS_UNSET([ac_cv_header_gdbm_ndbm_h]) @@ -4430,7 +4440,7 @@ AC_CACHE_VAL([ac_cv_header_gdbm_dash_ndbm_h], [ ) ]) AS_VAR_IF([ac_cv_header_gdbm_dash_ndbm_h], [yes], [ - AC_DEFINE([HAVE_GDBM_DASH_NDBM_H], [1], [Define to 1 if you have the header file.]) + PY_DEFINE([HAVE_GDBM_DASH_NDBM_H], [1], [Define to 1 if you have the header file.]) ]) AS_UNSET([ac_cv_header_gdbm_ndbm_h]) @@ -4458,7 +4468,7 @@ AC_CHECK_HEADERS([db.h], [ ]) ]) AS_VAR_IF([ac_cv_have_libdb], [yes], [ - AC_DEFINE([HAVE_LIBDB], [1], [Define to 1 if you have the `db' library (-ldb).]) + PY_DEFINE([HAVE_LIBDB], [1], [Define to 1 if you have the `db' library (-ldb).]) ]) ]) @@ -4630,16 +4640,16 @@ if test "$posix_threads" = "yes"; then # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. case $ac_sys_system/$ac_sys_release in - SunOS/5.6) AC_DEFINE([HAVE_PTHREAD_DESTRUCTOR], [1], + SunOS/5.6) PY_DEFINE([HAVE_PTHREAD_DESTRUCTOR], [1], [Defined for Solaris 2.6 bug in pthread header.]) ;; - SunOS/5.8) AC_DEFINE([HAVE_BROKEN_POSIX_SEMAPHORES], [1], + SunOS/5.8) PY_DEFINE([HAVE_BROKEN_POSIX_SEMAPHORES], [1], [Define if the Posix semaphores do not work on your system]) ;; - AIX/*) AC_DEFINE([HAVE_BROKEN_POSIX_SEMAPHORES], [1], + AIX/*) PY_DEFINE([HAVE_BROKEN_POSIX_SEMAPHORES], [1], [Define if the Posix semaphores do not work on your system]) ;; - NetBSD/*) AC_DEFINE([HAVE_BROKEN_POSIX_SEMAPHORES], [1], + NetBSD/*) PY_DEFINE([HAVE_BROKEN_POSIX_SEMAPHORES], [1], [Define if the Posix semaphores do not work on your system]) ;; esac @@ -4670,7 +4680,7 @@ if test "$posix_threads" = "yes"; then AC_CHECK_FUNCS([pthread_sigmask], [case $ac_sys_system in CYGWIN*) - AC_DEFINE([HAVE_BROKEN_PTHREAD_SIGMASK], [1], + PY_DEFINE([HAVE_BROKEN_PTHREAD_SIGMASK], [1], [Define if pthread_sigmask() does not work on your system.]) ;; esac]) @@ -4678,7 +4688,7 @@ if test "$posix_threads" = "yes"; then fi AS_VAR_IF([posix_threads], [stub], [ - AC_DEFINE([HAVE_PTHREAD_STUBS], [1], [Define if platform requires stubbed pthreads support]) + PY_DEFINE([HAVE_PTHREAD_STUBS], [1], [Define if platform requires stubbed pthreads support]) ]) # Check for enable-ipv6 @@ -4836,7 +4846,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ /* CAN_RAW_FD_FRAMES available check */ [ac_cv_can_raw_fd_frames=no]) ]) AS_VAR_IF([ac_cv_can_raw_fd_frames], [yes], [ - AC_DEFINE([HAVE_LINUX_CAN_RAW_FD_FRAMES], [1], + PY_DEFINE([HAVE_LINUX_CAN_RAW_FD_FRAMES], [1], [Define if compiling using Linux 3.6 or later.]) ]) @@ -4848,7 +4858,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ [ac_cv_can_raw_join_filters=no]) ]) AS_VAR_IF([ac_cv_can_raw_join_filters], [yes], [ - AC_DEFINE([HAVE_LINUX_CAN_RAW_JOIN_FILTERS], [1], + PY_DEFINE([HAVE_LINUX_CAN_RAW_JOIN_FILTERS], [1], [Define if compiling using Linux 4.1 or later.]) ]) @@ -4863,7 +4873,7 @@ then with_doc_strings="yes" fi if test "$with_doc_strings" != "no" then - AC_DEFINE([WITH_DOC_STRINGS], [1], + PY_DEFINE([WITH_DOC_STRINGS], [1], [Define if you want documentation strings in extension modules]) fi AC_MSG_RESULT([$with_doc_strings]) @@ -4887,7 +4897,7 @@ AC_LINK_IFELSE( ]) AS_VAR_IF([ac_cv_header_stdatomic_h], [yes], [ - AC_DEFINE(HAVE_STD_ATOMIC, 1, + PY_DEFINE(HAVE_STD_ATOMIC, 1, [Has stdatomic.h with atomic_int and atomic_uintptr_t]) ]) @@ -4907,7 +4917,7 @@ AC_LINK_IFELSE( ]) AS_VAR_IF([ac_cv_builtin_atomic], [yes], [ - AC_DEFINE(HAVE_BUILTIN_ATOMIC, 1, [Has builtin __atomic_load_n() and __atomic_store_n() functions]) + PY_DEFINE(HAVE_BUILTIN_ATOMIC, 1, [Has builtin __atomic_load_n() and __atomic_store_n() functions]) ]) # --with-mimalloc @@ -4925,7 +4935,7 @@ if test "$with_mimalloc" != no; then AC_MSG_ERROR([mimalloc requires stdatomic.h, use --without-mimalloc to disable mimalloc.]) fi with_mimalloc=yes - AC_DEFINE([WITH_MIMALLOC], [1], [Define if you want to compile in mimalloc memory allocator.]) + PY_DEFINE([WITH_MIMALLOC], [1], [Define if you want to compile in mimalloc memory allocator.]) AC_SUBST([MIMALLOC_HEADERS], ['$(MIMALLOC_HEADERS)']) elif test "$disable_gil" = "yes"; then AC_MSG_ERROR([--disable-gil requires mimalloc memory allocator (--with-mimalloc).]) @@ -4952,7 +4962,7 @@ then fi if test "$with_pymalloc" != "no" then - AC_DEFINE([WITH_PYMALLOC], [1], + PY_DEFINE([WITH_PYMALLOC], [1], [Define if you want to compile in Python-specific mallocs]) fi AC_MSG_RESULT([$with_pymalloc]) @@ -4984,7 +4994,7 @@ AC_ARG_WITH( AC_MSG_RESULT([$with_valgrind]) if test "$with_valgrind" != no; then AC_CHECK_HEADER([valgrind/valgrind.h], - [AC_DEFINE([WITH_VALGRIND], 1, [Define if you want pymalloc to be disabled when running under valgrind])], + [PY_DEFINE([WITH_VALGRIND], 1, [Define if you want pymalloc to be disabled when running under valgrind])], [AC_MSG_ERROR([Valgrind support requested but headers not available])] ) OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" @@ -5012,7 +5022,7 @@ then if test "$DTRACE" = "not found"; then AC_MSG_ERROR([dtrace command not found on \$PATH]) fi - AC_DEFINE([WITH_DTRACE], [1], + PY_DEFINE([WITH_DTRACE], [1], [Define if you want to compile in DTrace support]) DTRACE_HEADERS="Include/pydtrace_probes.h" @@ -5074,7 +5084,7 @@ fi AC_MSG_RESULT([$DYNLOADFILE]) if test "$DYNLOADFILE" != "dynload_stub.o" then - AC_DEFINE([HAVE_DYNAMIC_LOADING], [1], + PY_DEFINE([HAVE_DYNAMIC_LOADING], [1], [Defined when any dynamic module loading is enabled.]) fi @@ -5165,7 +5175,7 @@ if test "$ac_sys_system" != "iOS" ; then fi AC_CHECK_DECL([dirfd], - [AC_DEFINE([HAVE_DIRFD], [1], + [PY_DEFINE([HAVE_DIRFD], [1], [Define if you have the 'dirfd' function or macro.])], [], [@%:@include @@ -5249,7 +5259,7 @@ AC_CACHE_CHECK([for broken unsetenv], [ac_cv_broken_unsetenv], ) ]) AS_VAR_IF([ac_cv_broken_unsetenv], [yes], [ - AC_DEFINE([HAVE_BROKEN_UNSETENV], [1], + PY_DEFINE([HAVE_BROKEN_UNSETENV], [1], [Define if 'unsetenv' does not return an int.]) ]) @@ -5286,7 +5296,7 @@ if test "$ac_cv_have_chflags" = cross ; then AC_CHECK_FUNC([chflags], [ac_cv_have_chflags="yes"], [ac_cv_have_chflags="no"]) fi if test "$ac_cv_have_chflags" = yes ; then - AC_DEFINE([HAVE_CHFLAGS], [1], + PY_DEFINE([HAVE_CHFLAGS], [1], [Define to 1 if you have the 'chflags' function.]) fi @@ -5306,7 +5316,7 @@ if test "$ac_cv_have_lchflags" = cross ; then AC_CHECK_FUNC([lchflags], [ac_cv_have_lchflags="yes"], [ac_cv_have_lchflags="no"]) fi if test "$ac_cv_have_lchflags" = yes ; then - AC_DEFINE([HAVE_LCHFLAGS], [1], + PY_DEFINE([HAVE_LCHFLAGS], [1], [Define to 1 if you have the 'lchflags' function.]) fi @@ -5422,7 +5432,7 @@ AC_CHECK_FUNCS([openpty], [], [AC_CHECK_LIB([bsd], [openpty], [AC_DEFINE([HAVE_OPENPTY]) LIBS="$LIBS -lbsd"])])]) AC_SEARCH_LIBS([login_tty], [util], - [AC_DEFINE([HAVE_LOGIN_TTY], [1], [Define to 1 if you have the `login_tty' function.])] + [PY_DEFINE([HAVE_LOGIN_TTY], [1], [Define to 1 if you have the `login_tty' function.])] ) AC_CHECK_FUNCS([forkpty], [], [AC_CHECK_LIB([util], [forkpty], @@ -5438,14 +5448,14 @@ AC_CHECK_FUNCS([getpgrp], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([@%:@include ], [getpgrp(0);])], - [AC_DEFINE([GETPGRP_HAVE_ARG], [1], + [PY_DEFINE([GETPGRP_HAVE_ARG], [1], [Define if getpgrp() must be called as getpgrp(0).])], [])]) AC_CHECK_FUNCS([setpgrp], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([@%:@include ], [setpgrp(0,0);])], - [AC_DEFINE([SETPGRP_HAVE_ARG], [1], + [PY_DEFINE([SETPGRP_HAVE_ARG], [1], [Define if setpgrp() must be called as setpgrp(0, 0).])], [])]) @@ -5511,7 +5521,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ ]])],[ac_cv_device_macros=yes], [ac_cv_device_macros=no]) ]) AS_VAR_IF([ac_cv_device_macros], [yes], [ - AC_DEFINE([HAVE_DEVICE_MACROS], [1], + PY_DEFINE([HAVE_DEVICE_MACROS], [1], [Define to 1 if you have the device macros.]) ]) @@ -5648,7 +5658,7 @@ then ])]) ]) else - AC_DEFINE([HAVE_GETADDRINFO], [1], + PY_DEFINE([HAVE_GETADDRINFO], [1], [Define if you have the getaddrinfo function.]) fi @@ -5676,7 +5686,7 @@ AC_CACHE_CHECK([for time.h that defines altzone], [ac_cv_header_time_altzone], [ [ac_cv_header_time_altzone=no]) ]) if test $ac_cv_header_time_altzone = yes; then - AC_DEFINE([HAVE_ALTZONE], [1], + PY_DEFINE([HAVE_ALTZONE], [1], [Define this if your time.h defines altzone.]) fi @@ -5685,7 +5695,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include ]], [[struct addrinfo [ac_cv_struct_addrinfo=yes], [ac_cv_struct_addrinfo=no])) if test $ac_cv_struct_addrinfo = yes; then - AC_DEFINE([HAVE_ADDRINFO], [1], [struct addrinfo (netdb.h)]) + PY_DEFINE([HAVE_ADDRINFO], [1], [struct addrinfo (netdb.h)]) fi AC_CACHE_CHECK([for sockaddr_storage], [ac_cv_struct_sockaddr_storage], @@ -5695,7 +5705,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ [ac_cv_struct_sockaddr_storage=yes], [ac_cv_struct_sockaddr_storage=no])) if test $ac_cv_struct_sockaddr_storage = yes; then - AC_DEFINE([HAVE_SOCKADDR_STORAGE], [1], + PY_DEFINE([HAVE_SOCKADDR_STORAGE], [1], [struct sockaddr_storage (sys/socket.h)]) fi @@ -5707,7 +5717,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ [ac_cv_struct_sockaddr_alg=yes], [ac_cv_struct_sockaddr_alg=no])) if test $ac_cv_struct_sockaddr_alg = yes; then - AC_DEFINE([HAVE_SOCKADDR_ALG], [1], + PY_DEFINE([HAVE_SOCKADDR_ALG], [1], [struct sockaddr_alg (linux/if_alg.h)]) fi @@ -5728,7 +5738,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int foo(int x) { return 0; }]], [[return fo [ac_cv_function_prototypes=yes], [ac_cv_function_prototypes=no]) ]) AS_VAR_IF([ac_cv_function_prototypes], [yes], [ - AC_DEFINE([HAVE_PROTOTYPES], [1], + PY_DEFINE([HAVE_PROTOTYPES], [1], [Define if your compiler supports function prototype]) ]) @@ -5747,7 +5757,7 @@ x.sa_len = 0;]])], [ac_cv_struct_sockaddr_sa_len=yes], [ac_cv_struct_sockaddr_sa_len=no]) ]) AS_VAR_IF([ac_cv_struct_sockaddr_sa_len], [yes], [ - AC_DEFINE([HAVE_SOCKADDR_SA_LEN], [1], + PY_DEFINE([HAVE_SOCKADDR_SA_LEN], [1], [Define if sockaddr has sa_len member]) ]) @@ -5883,7 +5893,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[ ]) AS_VAR_IF([ac_cv_gcc_asm_for_x64], [yes], [ - AC_DEFINE([HAVE_GCC_ASM_FOR_X64], [1], + PY_DEFINE([HAVE_GCC_ASM_FOR_X64], [1], [Define if we can use x64 gcc inline assembler]) ]) @@ -5892,10 +5902,10 @@ AS_VAR_IF([ac_cv_gcc_asm_for_x64], [yes], [ # ************************************************** AX_C_FLOAT_WORDS_BIGENDIAN( - [AC_DEFINE([DOUBLE_IS_BIG_ENDIAN_IEEE754], [1], + [PY_DEFINE([DOUBLE_IS_BIG_ENDIAN_IEEE754], [1], [Define if C doubles are 64-bit IEEE 754 binary format, stored with the most significant byte first])], - [AC_DEFINE([DOUBLE_IS_LITTLE_ENDIAN_IEEE754], [1], + [PY_DEFINE([DOUBLE_IS_LITTLE_ENDIAN_IEEE754], [1], [Define if C doubles are 64-bit IEEE 754 binary format, stored with the least significant byte first])], [AS_CASE([$host_cpu], @@ -5905,7 +5915,7 @@ AX_C_FLOAT_WORDS_BIGENDIAN( # least make sure that float <-> string conversions work. # FLOAT_WORDS_BIGENDIAN doesn't actually detect this case, # but if it's not big or little, then it must be this? - AC_DEFINE([DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754], [1], + PY_DEFINE([DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754], [1], [Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM mixed-endian order (byte order 45670123)])], [AC_MSG_ERROR([m4_normalize([ @@ -5932,7 +5942,7 @@ AC_LINK_IFELSE( [AC_LANG_PROGRAM([[]], [[ ]])],[ac_cv_gcc_asm_for_x87=yes],[ac_cv_gcc_asm_for_x87=no]) ]) AS_VAR_IF([ac_cv_gcc_asm_for_x87], [yes], [ - AC_DEFINE([HAVE_GCC_ASM_FOR_X87], [1], + PY_DEFINE([HAVE_GCC_ASM_FOR_X87], [1], [Define if we can use gcc inline assembler to get and set x87 control word]) ]) @@ -5944,7 +5954,7 @@ AC_LINK_IFELSE( [AC_LANG_PROGRAM([[]], [[ ]])],[ac_cv_gcc_asm_for_mc68881=yes],[ac_cv_gcc_asm_for_mc68881=no]) ]) AS_VAR_IF([ac_cv_gcc_asm_for_mc68881], [yes], [ - AC_DEFINE([HAVE_GCC_ASM_FOR_MC68881], [1], + PY_DEFINE([HAVE_GCC_ASM_FOR_MC68881], [1], [Define if we can use gcc inline assembler to get and set mc68881 fpcr]) ]) @@ -5984,7 +5994,7 @@ CC="$ac_save_cc" ]) AS_VAR_IF([ac_cv_x87_double_rounding], [yes], [ - AC_DEFINE([X87_DOUBLE_ROUNDING], [1], + PY_DEFINE([X87_DOUBLE_ROUNDING], [1], [Define if arithmetic is subject to x87-style double rounding issue]) ]) @@ -6033,7 +6043,7 @@ AC_CACHE_CHECK([whether POSIX semaphores are enabled], [ac_cv_posix_semaphores_e [ac_cv_posix_semaphores_enabled=yes]) ) AS_VAR_IF([ac_cv_posix_semaphores_enabled], [no], [ - AC_DEFINE( + PY_DEFINE( [POSIX_SEMAPHORES_NOT_ENABLED], [1], [Define if POSIX semaphores aren't enabled on your system] ) @@ -6070,7 +6080,7 @@ AC_CACHE_CHECK([for broken sem_getvalue], [ac_cv_broken_sem_getvalue], [ac_cv_broken_sem_getvalue=yes]) ) AS_VAR_IF([ac_cv_broken_sem_getvalue], [yes], [ - AC_DEFINE( + PY_DEFINE( [HAVE_BROKEN_SEM_GETVALUE], [1], [define to 1 if your sem_getvalue is broken.] ) @@ -6100,7 +6110,7 @@ AC_DEFINE_UNQUOTED([PYLONG_BITS_IN_DIGIT], [$enable_big_digits], # check for wchar.h AC_CHECK_HEADER([wchar.h], [ - AC_DEFINE([HAVE_WCHAR_H], [1], + PY_DEFINE([HAVE_WCHAR_H], [1], [Define if the compiler provides a wchar.h header file.]) wchar_h="yes" ], @@ -6138,7 +6148,7 @@ AC_MSG_CHECKING([whether wchar_t is usable]) if test "$ac_cv_sizeof_wchar_t" -ge 2 \ -a "$ac_cv_wchar_t_signed" = "no" then - AC_DEFINE([HAVE_USABLE_WCHAR_T], [1], + PY_DEFINE([HAVE_USABLE_WCHAR_T], [1], [Define if you have a useable wchar_t type defined in wchar.h; useable means wchar_t must be an unsigned type with at least 16 bits. (see Include/unicodeobject.h).]) @@ -6155,7 +6165,7 @@ SunOS/*) # bpo-43667: In Oracle Solaris, the internal form of wchar_t in # non-Unicode locales is not Unicode and hence cannot be used directly. # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html - AC_DEFINE([HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION], [1], + PY_DEFINE([HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION], [1], [Define if the internal form of wchar_t in non-Unicode locales is not Unicode.]) fi @@ -6300,7 +6310,7 @@ int main(void) [ac_cv_rshift_extends_sign=yes])]) if test "$ac_cv_rshift_extends_sign" = no then - AC_DEFINE([SIGNED_RIGHT_SHIFT_ZERO_FILLS], [1], + PY_DEFINE([SIGNED_RIGHT_SHIFT_ZERO_FILLS], [1], [Define if i>>j for signed int i does not extend the sign bit when i < 0]) fi @@ -6315,7 +6325,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[@%:@include ]], [[ ]])],[ac_cv_have_getc_unlocked=yes],[ac_cv_have_getc_unlocked=no])]) if test "$ac_cv_have_getc_unlocked" = yes then - AC_DEFINE([HAVE_GETC_UNLOCKED], [1], + PY_DEFINE([HAVE_GETC_UNLOCKED], [1], [Define this if you have flockfile(), getc_unlocked(), and funlockfile()]) fi @@ -6415,11 +6425,11 @@ AS_VAR_IF([with_readline], [no], [ # check for readline 2.2 AC_CHECK_DECL([rl_completion_append_character], [ - AC_DEFINE([HAVE_RL_COMPLETION_APPEND_CHARACTER], [1], [Define if you have readline 2.2]) + PY_DEFINE([HAVE_RL_COMPLETION_APPEND_CHARACTER], [1], [Define if you have readline 2.2]) ], [], [readline_includes]) AC_CHECK_DECL([rl_completion_suppress_append], [ - AC_DEFINE([HAVE_RL_COMPLETION_SUPPRESS_APPEND], [1], [Define if you have rl_completion_suppress_append]) + PY_DEFINE([HAVE_RL_COMPLETION_SUPPRESS_APPEND], [1], [Define if you have rl_completion_suppress_append]) ], [], [readline_includes]) # check for readline 4.0 @@ -6430,7 +6440,7 @@ AS_VAR_IF([with_readline], [no], [ ) ]) AS_VAR_IF([ac_cv_readline_rl_pre_input_hook], [yes], [ - AC_DEFINE([HAVE_RL_PRE_INPUT_HOOK], [1], [Define if you have readline 4.0]) + PY_DEFINE([HAVE_RL_PRE_INPUT_HOOK], [1], [Define if you have readline 4.0]) ]) # also in 4.0 @@ -6441,7 +6451,7 @@ AS_VAR_IF([with_readline], [no], [ ) ]) AS_VAR_IF([ac_cv_readline_rl_completion_display_matches_hook], [yes], [ - AC_DEFINE([HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK], [1], [Define if you have readline 4.0]) + PY_DEFINE([HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK], [1], [Define if you have readline 4.0]) ]) # also in 4.0, but not in editline @@ -6452,7 +6462,7 @@ AS_VAR_IF([with_readline], [no], [ ) ]) AS_VAR_IF([ac_cv_readline_rl_resize_terminal], [yes], [ - AC_DEFINE([HAVE_RL_RESIZE_TERMINAL], [1], [Define if you have readline 4.0]) + PY_DEFINE([HAVE_RL_RESIZE_TERMINAL], [1], [Define if you have readline 4.0]) ]) # check for readline 4.2 @@ -6463,12 +6473,12 @@ AS_VAR_IF([with_readline], [no], [ ) ]) AS_VAR_IF([ac_cv_readline_rl_completion_matches], [yes], [ - AC_DEFINE([HAVE_RL_COMPLETION_MATCHES], [1], [Define if you have readline 4.2]) + PY_DEFINE([HAVE_RL_COMPLETION_MATCHES], [1], [Define if you have readline 4.2]) ]) # also in readline 4.2 AC_CHECK_DECL([rl_catch_signals], [ - AC_DEFINE([HAVE_RL_CATCH_SIGNAL], [1], [Define if you can turn off readline's signal handling.]) + PY_DEFINE([HAVE_RL_CATCH_SIGNAL], [1], [Define if you can turn off readline's signal handling.]) ], [], [readline_includes]) AC_CACHE_CHECK([for append_history in -l$LIBREADLINE], [ac_cv_readline_append_history], [ @@ -6478,7 +6488,7 @@ AS_VAR_IF([with_readline], [no], [ ) ]) AS_VAR_IF([ac_cv_readline_append_history], [yes], [ - AC_DEFINE([HAVE_RL_APPEND_HISTORY], [1], [Define if readline supports append_history]) + PY_DEFINE([HAVE_RL_APPEND_HISTORY], [1], [Define if readline supports append_history]) ]) # in readline as well as newer editline (April 2023) @@ -6520,7 +6530,7 @@ int main(void) [ac_cv_broken_nice=no])]) if test "$ac_cv_broken_nice" = yes then - AC_DEFINE([HAVE_BROKEN_NICE], [1], + PY_DEFINE([HAVE_BROKEN_NICE], [1], [Define if nice() returns success/failure instead of the new priority.]) fi @@ -6550,7 +6560,7 @@ int main(void) [ac_cv_broken_poll=no])) if test "$ac_cv_broken_poll" = yes then - AC_DEFINE([HAVE_BROKEN_POLL], [1], + PY_DEFINE([HAVE_BROKEN_POLL], [1], [Define if poll() sets errno on invalid file descriptors.]) fi @@ -6625,7 +6635,7 @@ int main(void) [ac_cv_working_tzset=no])]) if test "$ac_cv_working_tzset" = yes then - AC_DEFINE([HAVE_WORKING_TZSET], [1], + PY_DEFINE([HAVE_WORKING_TZSET], [1], [Define if tzset() actually switches the local timezone in a meaningful way.]) fi @@ -6639,7 +6649,7 @@ st.st_mtim.tv_nsec = 1; [ac_cv_stat_tv_nsec=no])) if test "$ac_cv_stat_tv_nsec" = yes then - AC_DEFINE([HAVE_STAT_TV_NSEC], [1], + PY_DEFINE([HAVE_STAT_TV_NSEC], [1], [Define if you have struct stat.st_mtim.tv_nsec]) fi @@ -6653,7 +6663,7 @@ st.st_mtimespec.tv_nsec = 1; [ac_cv_stat_tv_nsec2=no])) if test "$ac_cv_stat_tv_nsec2" = yes then - AC_DEFINE([HAVE_STAT_TV_NSEC2], [1], + PY_DEFINE([HAVE_STAT_TV_NSEC2], [1], [Define if you have struct stat.st_mtimensec]) fi @@ -6724,10 +6734,10 @@ AC_DEFUN([PY_CHECK_CURSES], [dnl AS_VAR_PUSHDEF([curses_var], [m4_toupper([$1])]) AS_VAR_PUSHDEF([panel_var], [m4_toupper([$2])]) PKG_CHECK_MODULES([CURSES], [$1], - [AC_DEFINE([HAVE_]curses_var, [1], [Define if you have the '$1' library]) + [PY_DEFINE([HAVE_]curses_var, [1], [Define if you have the '$1' library]) AS_VAR_SET([have_curses], [yes]) PKG_CHECK_MODULES([PANEL], [$2], - [AC_DEFINE([HAVE_]panel_var, [1], [Define if you have the '$2' library]) + [PY_DEFINE([HAVE_]panel_var, [1], [Define if you have the '$2' library]) AS_VAR_SET([have_panel], [yes])], [AS_VAR_SET([have_panel], [no])])], [AS_VAR_SET([have_curses], [no])]) @@ -6818,7 +6828,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(_CURSES_INCLUDES, [[ if test "$ac_cv_mvwdelch_is_expression" = yes then - AC_DEFINE([MVWDELCH_IS_EXPRESSION], [1], + PY_DEFINE([MVWDELCH_IS_EXPRESSION], [1], [Define if mvwdelch in curses.h is an expression.]) fi @@ -6833,7 +6843,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(_CURSES_INCLUDES, [[ if test "$ac_cv_window_has_flags" = yes then - AC_DEFINE([WINDOW_HAS_FLAGS], [1], + PY_DEFINE([WINDOW_HAS_FLAGS], [1], [Define if WINDOW in curses.h offers a field _flags.]) fi @@ -6856,7 +6866,7 @@ AC_DEFUN([PY_CHECK_CURSES_FUNC], AS_VAR_IF( [py_var], [yes], - [AC_DEFINE([py_define], [1], [Define if you have the '$1' function.])]) + [PY_DEFINE([py_define], [1], [Define if you have the '$1' function.])]) AS_VAR_POPDEF([py_var]) AS_VAR_POPDEF([py_define]) ]) @@ -6900,12 +6910,12 @@ else AC_CHECK_FILE([/dev/ptmx], [], []) if test "x$ac_cv_file__dev_ptmx" = xyes; then - AC_DEFINE([HAVE_DEV_PTMX], [1], + PY_DEFINE([HAVE_DEV_PTMX], [1], [Define to 1 if you have the /dev/ptmx device file.]) fi AC_CHECK_FILE([/dev/ptc], [], []) if test "x$ac_cv_file__dev_ptc" = xyes; then - AC_DEFINE([HAVE_DEV_PTC], [1], + PY_DEFINE([HAVE_DEV_PTC], [1], [Define to 1 if you have the /dev/ptc device file.]) fi fi @@ -6943,7 +6953,7 @@ int main(void) { [ac_cv_broken_mbstowcs=no])) if test "$ac_cv_broken_mbstowcs" = yes then - AC_DEFINE([HAVE_BROKEN_MBSTOWCS], [1], + PY_DEFINE([HAVE_BROKEN_MBSTOWCS], [1], [Define if mbstowcs(NULL, "text", 0) does not return the number of wide chars that would be converted.]) fi @@ -6959,13 +6969,13 @@ AC_ARG_WITH( [ if test "$withval" = yes then - AC_DEFINE([USE_COMPUTED_GOTOS], [1], + PY_DEFINE([USE_COMPUTED_GOTOS], [1], [Define if you want to use computed gotos in ceval.c.]) AC_MSG_RESULT([yes]) fi if test "$withval" = no then - AC_DEFINE([USE_COMPUTED_GOTOS], [0], + PY_DEFINE([USE_COMPUTED_GOTOS], [0], [Define if you want to use computed gotos in ceval.c.]) AC_MSG_RESULT([no]) fi @@ -6993,13 +7003,13 @@ LABEL2: ac_cv_computed_gotos=no fi])) case "$ac_cv_computed_gotos" in yes*) - AC_DEFINE([HAVE_COMPUTED_GOTOS], [1], + PY_DEFINE([HAVE_COMPUTED_GOTOS], [1], [Define if the C compiler supports computed gotos.]) esac case $ac_sys_system in AIX*) - AC_DEFINE([HAVE_BROKEN_PIPE_BUF], [1], + PY_DEFINE([HAVE_BROKEN_PIPE_BUF], [1], [Define if the system reports an invalid PIPE_BUF value.]) ;; esac @@ -7083,7 +7093,7 @@ int main(void) { CFLAGS="$saved_cflags" AC_MSG_RESULT([$have_glibc_memmove_bug]) if test "$have_glibc_memmove_bug" = yes; then - AC_DEFINE([HAVE_GLIBC_MEMMOVE_BUG], [1], + PY_DEFINE([HAVE_GLIBC_MEMMOVE_BUG], [1], [Define if glibc has incorrect _FORTIFY_SOURCE wrappers for memmove and bcopy.]) fi @@ -7120,7 +7130,7 @@ if test "$ac_cv_gcc_asm_for_x87" = yes; then CFLAGS="$saved_cflags" AC_MSG_RESULT([$have_ipa_pure_const_bug]) if test "$have_ipa_pure_const_bug" = yes; then - AC_DEFINE([HAVE_IPA_PURE_CONST_BUG], [1], + PY_DEFINE([HAVE_IPA_PURE_CONST_BUG], [1], [Define if gcc has the ipa-pure-const bug.]) fi ;; @@ -7165,7 +7175,7 @@ AC_LINK_IFELSE( ]) AS_VAR_IF([ac_cv_dirent_d_type], [yes], [ - AC_DEFINE([HAVE_DIRENT_D_TYPE], [1], + PY_DEFINE([HAVE_DIRENT_D_TYPE], [1], [Define to 1 if the dirent structure has a d_type field]) ]) @@ -7192,7 +7202,7 @@ AC_LINK_IFELSE( ]) AS_VAR_IF([ac_cv_getrandom_syscall], [yes], [ - AC_DEFINE([HAVE_GETRANDOM_SYSCALL], [1], + PY_DEFINE([HAVE_GETRANDOM_SYSCALL], [1], [Define to 1 if the Linux getrandom() syscall is available]) ]) @@ -7218,7 +7228,7 @@ AC_LINK_IFELSE( ]) AS_VAR_IF([ac_cv_func_getrandom], [yes], [ - AC_DEFINE([HAVE_GETRANDOM], [1], + PY_DEFINE([HAVE_GETRANDOM], [1], [Define to 1 if the getrandom() function is available]) ]) @@ -7813,7 +7823,7 @@ if test "$ac_sys_system" != "Linux-android" -a "$ac_sys_system" != "WASI" || tes AX_CHECK_COMPILE_FLAG([-msse -msse2 -msse3 -msse4.1 -msse4.2],[ [LIBHACL_SIMD128_FLAGS="-msse -msse2 -msse3 -msse4.1 -msse4.2"] - AC_DEFINE([HACL_CAN_COMPILE_SIMD128], [1], [HACL* library can compile SIMD128 implementations]) + PY_DEFINE([HACL_CAN_COMPILE_SIMD128], [1], [HACL* library can compile SIMD128 implementations]) # macOS universal2 builds *support* the -msse etc flags because they're # available on x86_64. However, performance of the HACL SIMD128 implementation @@ -7842,7 +7852,7 @@ AC_SUBST([LIBHACL_SIMD128_OBJS]) if test "$ac_sys_system" != "Linux-android" -a "$ac_sys_system" != "WASI" || test "$ANDROID_API_LEVEL" -ge 28; then AX_CHECK_COMPILE_FLAG([-mavx2],[ [LIBHACL_SIMD256_FLAGS="-mavx2"] - AC_DEFINE([HACL_CAN_COMPILE_SIMD256], [1], [HACL* library can compile SIMD256 implementations]) + PY_DEFINE([HACL_CAN_COMPILE_SIMD256], [1], [HACL* library can compile SIMD256 implementations]) # macOS universal2 builds *support* the -mavx2 compiler flag because it's # available on x86_64; but the HACL SIMD256 build then fails because the diff --git a/pyconfig.h.in b/pyconfig.h.in index d862966b7de4c8..b426fc20b63675 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -1687,31 +1687,425 @@ /* PEP 11 Support tier (1, 2, 3 or 0 for unsupported) */ #undef PY_SUPPORT_TIER +/* The Android API level. */ +#undef Py_ANDROID_API_LEVEL + /* Define if you want to build an interpreter with many run-time checks. */ #undef Py_DEBUG +/* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM + mixed-endian order (byte order 45670123) */ +#undef Py_DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 + +/* Define if C doubles are 64-bit IEEE 754 binary format, stored with the most + significant byte first */ +#undef Py_DOUBLE_IS_BIG_ENDIAN_IEEE754 + +/* Define if C doubles are 64-bit IEEE 754 binary format, stored with the + least significant byte first */ +#undef Py_DOUBLE_IS_LITTLE_ENDIAN_IEEE754 + /* Defined if Python is built as a shared library. */ #undef Py_ENABLE_SHARED /* Defined if _Complex C type can be used with libffi. */ #undef Py_FFI_SUPPORT_C_COMPLEX +/* Define if getpgrp() must be called as getpgrp(0). */ +#undef Py_GETPGRP_HAVE_ARG + /* Define if you want to disable the GIL */ #undef Py_GIL_DISABLED +/* HACL* library can compile SIMD128 implementations */ +#undef Py_HACL_CAN_COMPILE_SIMD128 + +/* HACL* library can compile SIMD256 implementations */ +#undef Py_HACL_CAN_COMPILE_SIMD256 + /* Define hash algorithm for str, bytes and memoryview. SipHash24: 1, FNV: 2, SipHash13: 3, externally defined: 0 */ #undef Py_HASH_ALGORITHM +/* Define if you have the 'accept' function. */ +#undef Py_HAVE_ACCEPT + +/* struct addrinfo (netdb.h) */ +#undef Py_HAVE_ADDRINFO + +/* Define if aligned memory access is required */ +#undef Py_HAVE_ALIGNED_REQUIRED + +/* Define this if your time.h defines altzone. */ +#undef Py_HAVE_ALTZONE + +/* Define if you have the 'bind' function. */ +#undef Py_HAVE_BIND + +/* Define if mbstowcs(NULL, "text", 0) does not return the number of wide + chars that would be converted. */ +#undef Py_HAVE_BROKEN_MBSTOWCS + +/* Define if nice() returns success/failure instead of the new priority. */ +#undef Py_HAVE_BROKEN_NICE + +/* Define if the system reports an invalid PIPE_BUF value. */ +#undef Py_HAVE_BROKEN_PIPE_BUF + +/* Define if poll() sets errno on invalid file descriptors. */ +#undef Py_HAVE_BROKEN_POLL + +/* Define if the Posix semaphores do not work on your system */ +#undef Py_HAVE_BROKEN_POSIX_SEMAPHORES + +/* Define if pthread_sigmask() does not work on your system. */ +#undef Py_HAVE_BROKEN_PTHREAD_SIGMASK + +/* define to 1 if your sem_getvalue is broken. */ +#undef Py_HAVE_BROKEN_SEM_GETVALUE + +/* Define if 'unsetenv' does not return an int. */ +#undef Py_HAVE_BROKEN_UNSETENV + +/* Has builtin __atomic_load_n() and __atomic_store_n() functions */ +#undef Py_HAVE_BUILTIN_ATOMIC + +/* Define to 1 if you have the 'chflags' function. */ +#undef Py_HAVE_CHFLAGS + +/* Define if you have the 'chroot' function. */ +#undef Py_HAVE_CHROOT + +/* Define if the C compiler supports computed gotos. */ +#undef Py_HAVE_COMPUTED_GOTOS + +/* Define if you have the 'connect' function. */ +#undef Py_HAVE_CONNECT + +/* Define if you have the 'ctermid_r' function. */ +#undef Py_HAVE_CTERMID_R + +/* Define if you have the 'filter' function. */ +#undef Py_HAVE_CURSES_FILTER + +/* Define if you have the 'has_key' function. */ +#undef Py_HAVE_CURSES_HAS_KEY + +/* Define if you have the 'immedok' function. */ +#undef Py_HAVE_CURSES_IMMEDOK + +/* Define if you have the 'is_pad' function. */ +#undef Py_HAVE_CURSES_IS_PAD + +/* Define if you have the 'is_term_resized' function. */ +#undef Py_HAVE_CURSES_IS_TERM_RESIZED + +/* Define if you have the 'resizeterm' function. */ +#undef Py_HAVE_CURSES_RESIZETERM + +/* Define if you have the 'resize_term' function. */ +#undef Py_HAVE_CURSES_RESIZE_TERM + +/* Define if you have the 'syncok' function. */ +#undef Py_HAVE_CURSES_SYNCOK + +/* Define if you have the 'typeahead' function. */ +#undef Py_HAVE_CURSES_TYPEAHEAD + +/* Define if you have the 'use_env' function. */ +#undef Py_HAVE_CURSES_USE_ENV + +/* Define if you have the 'wchgat' function. */ +#undef Py_HAVE_CURSES_WCHGAT + /* Defined if _Complex C type is available. */ #undef Py_HAVE_C_COMPLEX +/* Define to 1 if you have the device macros. */ +#undef Py_HAVE_DEVICE_MACROS + +/* Define to 1 if you have the /dev/ptc device file. */ +#undef Py_HAVE_DEV_PTC + +/* Define to 1 if you have the /dev/ptmx device file. */ +#undef Py_HAVE_DEV_PTMX + +/* Define to 1 if the dirent structure has a d_type field */ +#undef Py_HAVE_DIRENT_D_TYPE + +/* Define if you have the 'dirfd' function or macro. */ +#undef Py_HAVE_DIRFD + +/* Define if you have the '_dyld_shared_cache_contains_path' function. */ +#undef Py_HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH + +/* Defined when any dynamic module loading is enabled. */ +#undef Py_HAVE_DYNAMIC_LOADING + +/* Define if you have the 'epoll_create' function. */ +#undef Py_HAVE_EPOLL + +/* Define if you have the 'epoll_create1' function. */ +#undef Py_HAVE_EPOLL_CREATE1 + +/* Define if you have the 'eventfd' function. */ +#undef Py_HAVE_EVENTFD + +/* Define if you have the 'fchdir' function. */ +#undef Py_HAVE_FCHDIR + +/* Define if you have the 'fdatasync' function. */ +#undef Py_HAVE_FDATASYNC + +/* Define if you have the 'ffi_closure_alloc' function. */ +#undef Py_HAVE_FFI_CLOSURE_ALLOC + +/* Define if you have the 'ffi_prep_cif_var' function. */ +#undef Py_HAVE_FFI_PREP_CIF_VAR + +/* Define if you have the 'ffi_prep_closure_loc' function. */ +#undef Py_HAVE_FFI_PREP_CLOSURE_LOC + +/* Define if you have the 'fsync' function. */ +#undef Py_HAVE_FSYNC + +/* Define if we can use gcc inline assembler to get and set mc68881 fpcr */ +#undef Py_HAVE_GCC_ASM_FOR_MC68881 + +/* Define if we can use x64 gcc inline assembler */ +#undef Py_HAVE_GCC_ASM_FOR_X64 + +/* Define if we can use gcc inline assembler to get and set x87 control word + */ +#undef Py_HAVE_GCC_ASM_FOR_X87 + +/* Define if your compiler provides __uint128_t */ +#undef Py_HAVE_GCC_UINT128_T + +/* Define to 1 if you have the header file. */ +#undef Py_HAVE_GDBM_DASH_NDBM_H + +/* Define to 1 if you have the header file. */ +#undef Py_HAVE_GDBM_NDBM_H + +/* Define if you have the getaddrinfo function. */ +#undef Py_HAVE_GETADDRINFO + +/* Define this if you have flockfile(), getc_unlocked(), and funlockfile() */ +#undef Py_HAVE_GETC_UNLOCKED + +/* Define if you have the 'gethostbyaddr' function. */ +#undef Py_HAVE_GETHOSTBYADDR + +/* Define if you have the 'gethostbyname' function. */ +#undef Py_HAVE_GETHOSTBYNAME + +/* Define if you have the 'getpagesize' function. */ +#undef Py_HAVE_GETPAGESIZE + +/* Define if you have the 'getpeername' function. */ +#undef Py_HAVE_GETPEERNAME + +/* Define if you have the 'getprotobyname' function. */ +#undef Py_HAVE_GETPROTOBYNAME + +/* Define to 1 if the getrandom() function is available */ +#undef Py_HAVE_GETRANDOM + +/* Define to 1 if the Linux getrandom() syscall is available */ +#undef Py_HAVE_GETRANDOM_SYSCALL + +/* Define if you have the 'getservbyname' function. */ +#undef Py_HAVE_GETSERVBYNAME + +/* Define if you have the 'getservbyport' function. */ +#undef Py_HAVE_GETSERVBYPORT + +/* Define if you have the 'getsockname' function. */ +#undef Py_HAVE_GETSOCKNAME + +/* Define if glibc has incorrect _FORTIFY_SOURCE wrappers for memmove and + bcopy. */ +#undef Py_HAVE_GLIBC_MEMMOVE_BUG + +/* Define if you have the 'hstrerror' function. */ +#undef Py_HAVE_HSTRERROR + +/* Define this if you have le64toh() */ +#undef Py_HAVE_HTOLE64 + +/* Define if you have the 'inet_aton' function. */ +#undef Py_HAVE_INET_ATON + +/* Define if you have the 'inet_ntoa' function. */ +#undef Py_HAVE_INET_NTOA + +/* Define if you have the 'inet_pton' function. */ +#undef Py_HAVE_INET_PTON + +/* Define if gcc has the ipa-pure-const bug. */ +#undef Py_HAVE_IPA_PURE_CONST_BUG + +/* Define if you have the 'kqueue' function. */ +#undef Py_HAVE_KQUEUE + +/* Defined to enable large file support when an off_t is bigger than a long + and long long is at least as big as an off_t. You may need to add some + flags for configuration and compilation to enable this mode. (For Solaris + and Linux, the necessary defines are already defined.) */ +#undef Py_HAVE_LARGEFILE_SUPPORT + +/* Define to 1 if you have the 'lchflags' function. */ +#undef Py_HAVE_LCHFLAGS + +/* Define to 1 if you have the `db' library (-ldb). */ +#undef Py_HAVE_LIBDB + +/* Define if you have the 'link' function. */ +#undef Py_HAVE_LINK + +/* Define if compiling using Linux 3.6 or later. */ +#undef Py_HAVE_LINUX_CAN_RAW_FD_FRAMES + +/* Define if compiling using Linux 4.1 or later. */ +#undef Py_HAVE_LINUX_CAN_RAW_JOIN_FILTERS + +/* Define if you have the 'listen' function. */ +#undef Py_HAVE_LISTEN + +/* Define to 1 if you have the `login_tty' function. */ +#undef Py_HAVE_LOGIN_TTY + +/* Define this if you have the makedev macro. */ +#undef Py_HAVE_MAKEDEV + +/* Define if you have the 'memfd_create' function. */ +#undef Py_HAVE_MEMFD_CREATE + +/* Define if you have the 'ncurses' library */ +#undef Py_HAVE_NCURSES + +/* Define if you have the 'ncursesw' library */ +#undef Py_HAVE_NCURSESW + +/* Define if the internal form of wchar_t in non-Unicode locales is not + Unicode. */ +#undef Py_HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION + +/* Define if you have the 'panel' library */ +#undef Py_HAVE_PANEL + +/* Define if you have the 'panelw' library */ +#undef Py_HAVE_PANELW + +/* Define if you have the 'prlimit' function. */ +#undef Py_HAVE_PRLIMIT + +/* Define if your compiler supports function prototype */ +#undef Py_HAVE_PROTOTYPES + +/* Defined for Solaris 2.6 bug in pthread header. */ +#undef Py_HAVE_PTHREAD_DESTRUCTOR + +/* Define if platform requires stubbed pthreads support */ +#undef Py_HAVE_PTHREAD_STUBS + +/* Define if you have the 'recvfrom' function. */ +#undef Py_HAVE_RECVFROM + +/* Define if readline supports append_history */ +#undef Py_HAVE_RL_APPEND_HISTORY + +/* Define if you can turn off readline's signal handling. */ +#undef Py_HAVE_RL_CATCH_SIGNAL + +/* Define if you have readline 2.2 */ +#undef Py_HAVE_RL_COMPLETION_APPEND_CHARACTER + +/* Define if you have readline 4.0 */ +#undef Py_HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK + +/* Define if you have readline 4.2 */ +#undef Py_HAVE_RL_COMPLETION_MATCHES + +/* Define if you have rl_completion_suppress_append */ +#undef Py_HAVE_RL_COMPLETION_SUPPRESS_APPEND + +/* Define if you have readline 4.0 */ +#undef Py_HAVE_RL_PRE_INPUT_HOOK + +/* Define if you have readline 4.0 */ +#undef Py_HAVE_RL_RESIZE_TERMINAL + +/* Define if you have the 'sendto' function. */ +#undef Py_HAVE_SENDTO + +/* Define if you have the 'setgroups' function. */ +#undef Py_HAVE_SETGROUPS + +/* Define if you have the 'setsockopt' function. */ +#undef Py_HAVE_SETSOCKOPT + +/* struct sockaddr_alg (linux/if_alg.h) */ +#undef Py_HAVE_SOCKADDR_ALG + +/* Define if sockaddr has sa_len member */ +#undef Py_HAVE_SOCKADDR_SA_LEN + +/* struct sockaddr_storage (sys/socket.h) */ +#undef Py_HAVE_SOCKADDR_STORAGE + +/* Define if you have the 'socket' function. */ +#undef Py_HAVE_SOCKET + +/* Define if you have the 'socketpair' function. */ +#undef Py_HAVE_SOCKETPAIR + +/* Define if you have struct stat.st_mtim.tv_nsec */ +#undef Py_HAVE_STAT_TV_NSEC + +/* Define if you have struct stat.st_mtimensec */ +#undef Py_HAVE_STAT_TV_NSEC2 + +/* Has stdatomic.h with atomic_int and atomic_uintptr_t */ +#undef Py_HAVE_STD_ATOMIC + +/* Define if you have the 'symlink' function. */ +#undef Py_HAVE_SYMLINK + +/* Define if you have the 'timerfd_create' function. */ +#undef Py_HAVE_TIMERFD_CREATE + +/* Define if you have a useable wchar_t type defined in wchar.h; useable means + wchar_t must be an unsigned type with at least 16 bits. (see + Include/unicodeobject.h). */ +#undef Py_HAVE_USABLE_WCHAR_T + +/* Define if the compiler provides a wchar.h header file. */ +#undef Py_HAVE_WCHAR_H + +/* Define if tzset() actually switches the local timezone in a meaningful way. + */ +#undef Py_HAVE_WORKING_TZSET + +/* Define if mvwdelch in curses.h is an expression. */ +#undef Py_MVWDELCH_IS_EXPRESSION + /* Define if year with century should be normalized for strftime. */ #undef Py_NORMALIZE_CENTURY +/* Define if POSIX semaphores aren't enabled on your system */ +#undef Py_POSIX_SEMAPHORES_NOT_ENABLED + /* Define if rl_startup_hook takes arguments */ #undef Py_RL_STARTUP_HOOK_TAKES_ARGS +/* Define if setpgrp() must be called as setpgrp(0, 0). */ +#undef Py_SETPGRP_HAVE_ARG + +/* Define if i>>j for signed int i does not extend the sign bit when i < 0 */ +#undef Py_SIGNED_RIGHT_SHIFT_ZERO_FILLS + /* Define if you want to enable internal statistics gathering. */ #undef Py_STATS @@ -1721,6 +2115,30 @@ /* Define if you want to enable tracing references for debugging purpose */ #undef Py_TRACE_REFS +/* Define if you want to use computed gotos in ceval.c. */ +#undef Py_USE_COMPUTED_GOTOS + +/* Define if WINDOW in curses.h offers a field _flags. */ +#undef Py_WINDOW_HAS_FLAGS + +/* Define if you want documentation strings in extension modules */ +#undef Py_WITH_DOC_STRINGS + +/* Define if you want to compile in DTrace support */ +#undef Py_WITH_DTRACE + +/* Define if you want to compile in mimalloc memory allocator. */ +#undef Py_WITH_MIMALLOC + +/* Define if you want to compile in Python-specific mallocs */ +#undef Py_WITH_PYMALLOC + +/* Define if you want pymalloc to be disabled when running under valgrind */ +#undef Py_WITH_VALGRIND + +/* Define if arithmetic is subject to x87-style double rounding issue */ +#undef Py_X87_DOUBLE_ROUNDING + /* assume C89 semantics that RETSIGTYPE is always void */ #undef RETSIGTYPE