1 # OpenEmbedded prepopulates the autotools site cache, so if this
2 # would be using AC_TRY_CACHE, we could patch it in a more sane way
3 # Alas, I don't have enough autotalent to do that.
5 # Signed-Off: Michael 'Mickey' Lauer <mickey@vanille-media.de>
6 Index: Python-2.6.1/configure.in
7 ===================================================================
8 --- Python-2.6.5.orig/configure.in 2010-07-06 04:37:09.000000000 -0700
9 +++ Python-2.6.5/configure.in 2010-07-06 04:40:18.000000000 -0700
10 @@ -2697,50 +2697,6 @@
11 AC_CHECK_LIB(resolv, inet_aton)
14 -# On Tru64, chflags seems to be present, but calling it will
16 -AC_CACHE_CHECK([for chflags], [ac_cv_have_chflags], [dnl
18 -#include <sys/stat.h>
20 -int main(int argc, char*argv[])
22 - if(chflags(argv[0], 0) != 0)
26 -]], ac_cv_have_chflags=yes,
27 - ac_cv_have_chflags=no,
28 - ac_cv_have_chflags=cross)
30 -if test "$ac_cv_have_chflags" = cross ; then
31 - AC_CHECK_FUNC([chflags], [ac_cv_have_chflags="yes"], [ac_cv_have_chflags="no"])
33 -if test "$ac_cv_have_chflags" = yes ; then
34 - AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the `chflags' function.)
37 -AC_CACHE_CHECK([for lchflags], [ac_cv_have_lchflags], [dnl
39 -#include <sys/stat.h>
41 -int main(int argc, char*argv[])
43 - if(lchflags(argv[0], 0) != 0)
47 -]], ac_cv_have_lchflags=yes,
48 - ac_cv_have_lchflags=no,
49 - ac_cv_have_lchflags=cross)
51 -if test "$ac_cv_have_lchflags" = cross ; then
52 - AC_CHECK_FUNC([lchflags], [ac_cv_have_lchflags="yes"], [ac_cv_have_lchflags="no"])
54 -if test "$ac_cv_have_lchflags" = yes ; then
55 - AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the `lchflags' function.)
58 dnl Check if system zlib has *Copy() functions
60 dnl On MacOSX the linker will search for dylibs on the entire linker path
61 @@ -3844,45 +3800,6 @@
65 -AC_MSG_CHECKING(for %zd printf() format support)
66 -AC_TRY_RUN([#include <stdio.h>
70 -#ifdef HAVE_SYS_TYPES_H
71 -#include <sys/types.h>
75 -typedef ssize_t Py_ssize_t;
76 -#elif SIZEOF_VOID_P == SIZEOF_LONG
77 -typedef long Py_ssize_t;
79 -typedef int Py_ssize_t;
86 - if(sprintf(buffer, "%zd", (size_t)123) < 0)
89 - if (strcmp(buffer, "123"))
92 - if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
95 - if (strcmp(buffer, "-123"))
101 - AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])],
104 AC_CHECK_TYPE(socklen_t,,
105 AC_DEFINE(socklen_t,int,
106 Define to `int' if <sys/socket.h> does not define.),[