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 haubi
Recipients darkside, drj, haubi, inkblotter, pitrou, sable
Date 2010-09-08.13:29:13
SpamBayes Score 1.7706e-07
Marked as misclassified No
Message-id <>
Sébastien, while this gives expected results on the AIX box here, it still has one subtle problem:
AC_TRY_LINK may fail due to missing declaration in <sys/file.h> _or_ due to missing implementation in libc.
The subsequent AC_CHECK_LIB won't fail when the implementation is in libbsd but the declaration is missing - this is the case on not-so-recent AIX5.3 (and the reason python worked there before).

Another minor nit is configure's output when libbsd is needed:
> checking for flock... checking for flock in -lbsd... yes
> yes

Anyway - I've hacked up another variant (with recent autoconf manual at hand), which really should cover all known situations now (additionally using cache-checks):

AC_CACHE_CHECK([for flock declaration], [ac_cv_flock_decl],
      [#include <sys/file.h>],
      [void* p = flock]
if test "x${ac_cv_flock_decl}" = xyes; then
       AC_DEFINE(FLOCK_NEEDS_LIBBSD, 1, Define if flock needs to be linked with bsd library.)

Thank you anyway!
Date User Action Args
2010-09-08 13:29:17haubisetrecipients: + haubi, pitrou, sable, drj, inkblotter, darkside
2010-09-08 13:29:17haubisetmessageid: <>
2010-09-08 13:29:14haubilinkissue4026 messages
2010-09-08 13:29:13haubicreate