This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes
Date 2021-11-05.10:05:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The autoconf-based build system has room for improvements. The script can be simplified in several places by using AS and AC macros or by defining new custom macros.

For example we have a lot of blocks that look like this:

AC_MSG_CHECKING(for chroot)
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], [[void x=chroot]])],
  [AC_DEFINE(HAVE_CHROOT, 1, Define if you have the 'chroot' function.)

The block has an issue, too. It does not use AC_CACHE to cache the result. The entire block can be replaced by a custom macro that takes care of everything and implements correct caching:

  PY_CHECK_FUNC([chroot], [#include <unistd.h>])

We can also move several library and header checks from into, e.g. check for soundcard.h or gdbm libs and headers.
Date User Action Args
2021-11-05 10:05:47christian.heimessetrecipients: + christian.heimes
2021-11-05 10:05:47christian.heimessetmessageid: <>
2021-11-05 10:05:47christian.heimeslinkissue45723 messages
2021-11-05 10:05:46christian.heimescreate