# OpenEmbedded prepopulates the autotools site cache, so if this # would be using AC_TRY_CACHE, we could patch it in a more sane way # Alas, I don't have enough autotalent to do that. # # Signed-Off: Michael 'Mickey' Lauer Index: Python-2.7.1/configure.in =================================================================== --- Python-2.7.1.orig/configure.in 2010-12-26 10:02:03.222663593 -0500 +++ Python-2.7.1/configure.in 2010-12-26 10:02:19.891414484 -0500 @@ -2822,49 +2822,6 @@ AC_CHECK_LIB(resolv, inet_aton) ) -# On Tru64, chflags seems to be present, but calling it will -# exit Python -AC_CACHE_CHECK([for chflags], [ac_cv_have_chflags], [dnl -AC_RUN_IFELSE([AC_LANG_SOURCE([[[ -#include -#include -int main(int argc, char*argv[]) -{ - if(chflags(argv[0], 0) != 0) - return 1; - return 0; -} -]]])], -[ac_cv_have_chflags=yes], -[ac_cv_have_chflags=no], -[ac_cv_have_chflags=cross]) -]) -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, [Define to 1 if you have the `chflags' function.]) -fi - -AC_CACHE_CHECK([for lchflags], [ac_cv_have_lchflags], [dnl -AC_RUN_IFELSE([AC_LANG_SOURCE([[[ -#include -#include -int main(int argc, char*argv[]) -{ - if(lchflags(argv[0], 0) != 0) - return 1; - return 0; -} -]]])],[ac_cv_have_lchflags=yes],[ac_cv_have_lchflags=no],[ac_cv_have_lchflags=cross]) -]) -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, [Define to 1 if you have the `lchflags' function.]) -fi - dnl Check if system zlib has *Copy() functions dnl dnl On MacOSX the linker will search for dylibs on the entire linker path @@ -4210,48 +4167,6 @@ LIBS="$LIBS -framework CoreFoundation" fi - -AC_CACHE_CHECK([for %zd printf() format support], ac_cv_have_size_t_format, [dnl -AC_RUN_IFELSE([AC_LANG_SOURCE([[ -#include -#include -#include - -#ifdef HAVE_SYS_TYPES_H -#include -#endif - -#ifdef HAVE_SSIZE_T -typedef ssize_t Py_ssize_t; -#elif SIZEOF_VOID_P == SIZEOF_LONG -typedef long Py_ssize_t; -#else -typedef int Py_ssize_t; -#endif - -int main() -{ - char buffer[256]; - - if(sprintf(buffer, "%zd", (size_t)123) < 0) - return 1; - - if (strcmp(buffer, "123")) - return 1; - - if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) - return 1; - - if (strcmp(buffer, "-123")) - return 1; - - return 0; -} -]])], -[ac_cv_have_size_t_format=yes], -[ac_cv_have_size_t_format=no], -[ac_cv_have_size_t_format="cross -- assuming yes" -])]) if test "$ac_cv_have_size_t_format" != no ; then AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])