From 4519ae92e7a35d7e481088f593b24b5b0381d776 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 29 Sep 2012 09:34:13 +0200 Subject: Bump version to 3.4.0 alpha 0. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e3f5b9696d..df0b0048d7 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ dnl * Please run autoreconf to test your changes! * dnl *********************************************** # Set VERSION so we only need to edit in one place (i.e., here) -m4_define(PYTHON_VERSION, 3.3) +m4_define(PYTHON_VERSION, 3.4) AC_PREREQ(2.65) -- cgit v1.2.1 From 11fe8f4ceb269a847ee476e23c28610d0565d8e0 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Sun, 2 Dec 2012 12:11:38 +0000 Subject: Issue 10052: fix failed uint32_t / uint64_t / int32_t / int64_t detection on some platforms. --- configure.ac | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 12d698d265..bc49debc87 100644 --- a/configure.ac +++ b/configure.ac @@ -1638,10 +1638,30 @@ AC_TYPE_PID_T AC_DEFINE_UNQUOTED([RETSIGTYPE],[void],[assume C89 semantics that RETSIGTYPE is always void]) AC_TYPE_SIZE_T AC_TYPE_UID_T + +# There are two separate checks for each of the exact-width integer types we +# need. First we check whether the type is available using the usual +# AC_CHECK_TYPE macro with the default includes (which includes +# and where available). We then also use the special type checks of +# the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available +# directly, #define's uint32_t to be a suitable type. + +AC_CHECK_TYPE(uint32_t, + AC_DEFINE(HAVE_UINT32_T, 1, [Define if your compiler provides uint32_t.]),,) AC_TYPE_UINT32_T + +AC_CHECK_TYPE(uint64_t, + AC_DEFINE(HAVE_UINT64_T, 1, [Define if your compiler provides uint64_t.]),,) AC_TYPE_UINT64_T + +AC_CHECK_TYPE(int32_t, + AC_DEFINE(HAVE_INT32_T, 1, [Define if your compiler provides int32_t.]),,) AC_TYPE_INT32_T + +AC_CHECK_TYPE(int64_t, + AC_DEFINE(HAVE_INT64_T, 1, [Define if your compiler provides int64_t.]),,) AC_TYPE_INT64_T + AC_CHECK_TYPE(ssize_t, AC_DEFINE(HAVE_SSIZE_T, 1, [Define if your compiler provides ssize_t]),,) AC_CHECK_TYPE(__uint128_t, -- cgit v1.2.1 From f8121c9b9960cf01e5eb36db91945f6839d74e35 Mon Sep 17 00:00:00 2001 From: doko Date: Sat, 26 Jan 2013 11:39:31 +0100 Subject: - Issue #16235: Implement python-config as a shell script. --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 969b05217f..1432ada002 100644 --- a/configure.ac +++ b/configure.ac @@ -917,6 +917,7 @@ fi # Other platforms follow if test $enable_shared = "yes"; then + PY_ENABLE_SHARED=1 AC_DEFINE(Py_ENABLE_SHARED, 1, [Defined if Python is built as a shared library.]) case $ac_sys_system in CYGWIN*) @@ -972,6 +973,7 @@ if test $enable_shared = "yes"; then esac else # shared is disabled + PY_ENABLE_SHARED=0 case $ac_sys_system in CYGWIN*) BLDLIBRARY='$(LIBRARY)' @@ -3929,6 +3931,11 @@ AC_MSG_CHECKING(LDVERSION) LDVERSION='$(VERSION)$(ABIFLAGS)' AC_MSG_RESULT($LDVERSION) +dnl define LIBPL after ABIFLAGS and LDVERSION is defined. +AC_SUBST(PY_ENABLE_SHARED) +LIBPL="${prefix}/lib/python${VERSION}/config-${LDVERSION}" +AC_SUBST(LIBPL) + # SO is the extension of shared libraries `(including the dot!) # -- usually .so, .sl on HP-UX, .dll on Cygwin AC_MSG_CHECKING(SO) @@ -4641,7 +4648,7 @@ if test "$have_gcc_asm_for_x87" = yes; then fi # generate output files -AC_CONFIG_FILES(Makefile.pre Modules/Setup.config Misc/python.pc) +AC_CONFIG_FILES(Makefile.pre Modules/Setup.config Misc/python.pc Misc/python-config.sh) AC_CONFIG_FILES([Modules/ld_so_aix], [chmod +x Modules/ld_so_aix]) AC_OUTPUT -- cgit v1.2.1 From 9219ff2b55b62a4c1144892671e23eb66c570db9 Mon Sep 17 00:00:00 2001 From: Charles-Fran?ois Natali Date: Tue, 5 Feb 2013 19:42:01 +0100 Subject: Issue #15359: Add CAN_BCM protocol support to the socket module. Patch by Brian Thorne. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ec1abb4d31..34f19f3bd9 100644 --- a/configure.ac +++ b/configure.ac @@ -1568,7 +1568,7 @@ AC_CHECK_HEADERS(linux/netlink.h,,,[ ]) # On Linux, can.h and can/raw.h require sys/socket.h -AC_CHECK_HEADERS(linux/can.h linux/can/raw.h,,,[ +AC_CHECK_HEADERS(linux/can.h linux/can/raw.h linux/can/bcm.h,,,[ #ifdef HAVE_SYS_SOCKET_H #include #endif -- cgit v1.2.1 From 53f1420ba040714b0fe870d7040990a2179c7ef3 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 8 Apr 2013 22:43:44 +0200 Subject: Issue #17615: Comparing two Unicode strings now uses wmemcmp() when possible wmemcmp() is twice faster than a dummy loop (342 usec vs 744 usec) on Fedora 18/x86_64, GCC 4.7.2. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index caef808348..053e4a46b4 100644 --- a/configure.ac +++ b/configure.ac @@ -2816,7 +2816,7 @@ AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy symlinkat sync \ sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ - wcscoll wcsftime wcsxfrm writev _getpty) + wcscoll wcsftime wcsxfrm wmemcmp writev _getpty) AC_CHECK_DECL(dirfd, AC_DEFINE(HAVE_DIRFD, 1, -- cgit v1.2.1 From dffbc72bef48d87269a30ff0b8d74b1b8a337bb3 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 12 May 2013 23:08:28 -0500 Subject: remove support GCC PyArg_ParseTuple format patch, last seen in 2006 --- configure.ac | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a70a752891..03f90729bd 100644 --- a/configure.ac +++ b/configure.ac @@ -1328,24 +1328,6 @@ then BASECFLAGS="$BASECFLAGS $ac_arch_flags" fi -# Check whether GCC supports PyArg_ParseTuple format -if test "$GCC" = "yes" -then - AC_MSG_CHECKING(whether gcc supports ParseTuple __format__) - save_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -Werror -Wformat" - AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([[void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2)));]], [[]]) - ],[ - AC_DEFINE(HAVE_ATTRIBUTE_FORMAT_PARSETUPLE, 1, - [Define if GCC supports __attribute__((format(PyArg_ParseTuple, 2, 3)))]) - AC_MSG_RESULT(yes) - ],[ - AC_MSG_RESULT(no) - ]) - CFLAGS=$save_CFLAGS -fi - # On some compilers, pthreads are available without further options # (e.g. MacOS X). On some of these systems, the compiler will not # complain if unaccepted options are passed (e.g. gcc on Mac OS X). -- cgit v1.2.1 From 55b9dc8a1ba0620c66d3672b605497df37444639 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 16 May 2013 15:33:00 -0500 Subject: make GCC complain about declarations not at the top of blocks --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 03f90729bd..647de88600 100644 --- a/configure.ac +++ b/configure.ac @@ -1127,6 +1127,8 @@ AC_SUBST(UNIVERSAL_ARCH_FLAGS) # tweak BASECFLAGS based on compiler and platform case $GCC in yes) + BASECFLAGS="$BASECFLAGS -Werror=declaration-after-statement" + # Python doesn't violate C99 aliasing rules, but older versions of # GCC produce warnings for legal Python code. Enable # -fno-strict-aliasing on versions of GCC that support but produce -- cgit v1.2.1 From 3a038e80e4f8da626393fb4e71b43f9244d95629 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 20 May 2013 08:22:04 -0700 Subject: test that the compiler support -Werror=statement-after-declaration before using it --- configure.ac | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 647de88600..c9f54ddf47 100644 --- a/configure.ac +++ b/configure.ac @@ -1127,8 +1127,6 @@ AC_SUBST(UNIVERSAL_ARCH_FLAGS) # tweak BASECFLAGS based on compiler and platform case $GCC in yes) - BASECFLAGS="$BASECFLAGS -Werror=declaration-after-statement" - # Python doesn't violate C99 aliasing rules, but older versions of # GCC produce warnings for legal Python code. Enable # -fno-strict-aliasing on versions of GCC that support but produce @@ -1186,6 +1184,28 @@ yes) BASECFLAGS="$BASECFLAGS -Wno-unused-result" fi + AC_MSG_CHECKING(for -Werror=declaration-after-statement) + ac_save_cc="$CC" + CC="$CC -Werror=declaration-after-statement" + save_CFLAGS="$CFLAGS" + AC_CACHE_VAL(ac_cv_declaration_after_statement_warning, + AC_COMPILE_IFELSE( + [ + AC_LANG_PROGRAM([[]], [[]]) + ],[ + ac_cv_declaration_after_statement_warning=yes + ],[ + ac_cv_declaration_after_statement_warning=no + ])) + CFLAGS="$save_CFLAGS" + CC="$ac_save_cc" + AC_MSG_RESULT($ac_cv_declaration_after_statement_warning) + + if test $ac_cv_declaration_after_statement_warning = yes + then + BASECFLAGS="$BASECFLAGS -Werror=declaration-after-statement" + fi + # if using gcc on alpha, use -mieee to get (near) full IEEE 754 # support. Without this, treatment of subnormals doesn't follow # the standard. -- cgit v1.2.1 From 028ff6457fed5a9b73a3afe647b21f84158e16c0 Mon Sep 17 00:00:00 2001 From: ?ukasz Langa Date: Thu, 30 May 2013 20:58:53 +0200 Subject: Fixed #18075 - Infinite recursion tests triggering a segfault on Mac OS X Patch by Ronald Oussoren --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c9f54ddf47..37e0488234 100644 --- a/configure.ac +++ b/configure.ac @@ -2114,6 +2114,12 @@ then # -u libsys_s pulls in all symbols in libsys Darwin/*) LINKFORSHARED="$extra_undefs -framework CoreFoundation" + + # Issue #18075: the default maximum stack size (8MBytes) is too + # small for the default recursion limit. Increase the stack size + # to ensure that tests don't crash + LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" + if test "$enable_framework" then LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' -- cgit v1.2.1