homepage

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.7706024e-07
Marked as misclassified No
Message-id <1283952557.33.0.996373834711.issue4026@psf.upfronthosting.co.za>
In-reply-to
Content
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],
 [AC_COMPILE_IFELSE(
 [AC_LANG_PROGRAM(
 [#include <sys/file.h>],
 [void* p = flock]
 )],
 [ac_cv_flock_decl=yes],
 [ac_cv_flock_decl=no]
 )
])
if test "x${ac_cv_flock_decl}" = xyes; then
 AC_CHECK_FUNCS(flock,,
 AC_CHECK_LIB(bsd,flock,
 [AC_DEFINE(HAVE_FLOCK)
 AC_DEFINE(FLOCK_NEEDS_LIBBSD, 1, Define if flock needs to be linked with bsd library.)
 ])
 )
fi
Thank you anyway!
History
Date User Action Args
2010年09月08日 13:29:17haubisetrecipients: + haubi, pitrou, sable, drj, inkblotter, darkside
2010年09月08日 13:29:17haubisetmessageid: <1283952557.33.0.996373834711.issue4026@psf.upfronthosting.co.za>
2010年09月08日 13:29:14haubilinkissue4026 messages
2010年09月08日 13:29:13haubicreate

AltStyle によって変換されたページ (->オリジナル) /