Merge branch 'vuplus-1.6' of 192.168.102.66:/var/ikseong/repo/openembedded into test_0921
[vuplus_openembedded] / recipes / python / python-2.6.7 / 02-remove-test-for-cross.patch
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.
4 #
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)
12  )
13  
14 -# On Tru64, chflags seems to be present, but calling it will
15 -# exit Python
16 -AC_CACHE_CHECK([for chflags], [ac_cv_have_chflags], [dnl
17 -AC_TRY_RUN([[
18 -#include <sys/stat.h>
19 -#include <unistd.h>
20 -int main(int argc, char*argv[])
21 -{
22 -  if(chflags(argv[0], 0) != 0)
23 -    return 1;
24 -  return 0;
25 -}
26 -]], ac_cv_have_chflags=yes,
27 -   ac_cv_have_chflags=no,
28 -   ac_cv_have_chflags=cross)
29 -])
30 -if test "$ac_cv_have_chflags" = cross ; then
31 -  AC_CHECK_FUNC([chflags], [ac_cv_have_chflags="yes"], [ac_cv_have_chflags="no"])
32 -fi
33 -if test "$ac_cv_have_chflags" = yes ; then
34 -  AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the `chflags' function.)
35 -fi
36 -
37 -AC_CACHE_CHECK([for lchflags], [ac_cv_have_lchflags], [dnl
38 -AC_TRY_RUN([[
39 -#include <sys/stat.h>
40 -#include <unistd.h>
41 -int main(int argc, char*argv[])
42 -{
43 -  if(lchflags(argv[0], 0) != 0)
44 -    return 1;
45 -  return 0;
46 -}
47 -]], ac_cv_have_lchflags=yes,
48 -   ac_cv_have_lchflags=no,
49 -   ac_cv_have_lchflags=cross)
50 -])
51 -if test "$ac_cv_have_lchflags" = cross ; then
52 -  AC_CHECK_FUNC([lchflags], [ac_cv_have_lchflags="yes"], [ac_cv_have_lchflags="no"])
53 -fi
54 -if test "$ac_cv_have_lchflags" = yes ; then
55 -  AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the `lchflags' function.)
56 -fi
57 -
58  dnl Check if system zlib has *Copy() functions
59  dnl
60  dnl On MacOSX the linker will search for dylibs on the entire linker path
61 @@ -3844,45 +3800,6 @@
62    AC_MSG_RESULT(no)
63  fi
64  
65 -AC_MSG_CHECKING(for %zd printf() format support)
66 -AC_TRY_RUN([#include <stdio.h>
67 -#include <stddef.h>
68 -#include <string.h>
69 -
70 -#ifdef HAVE_SYS_TYPES_H
71 -#include <sys/types.h>
72 -#endif
73 -
74 -#ifdef HAVE_SSIZE_T
75 -typedef ssize_t Py_ssize_t;
76 -#elif SIZEOF_VOID_P == SIZEOF_LONG
77 -typedef long Py_ssize_t;
78 -#else
79 -typedef int Py_ssize_t;
80 -#endif
81 -
82 -int main()
83 -{
84 -    char buffer[256];
85 -
86 -    if(sprintf(buffer, "%zd", (size_t)123) < 0)
87 -               return 1;
88 -
89 -    if (strcmp(buffer, "123"))
90 -       return 1;
91 -
92 -    if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
93 -               return 1;
94 -
95 -    if (strcmp(buffer, "-123"))
96 -       return 1;
97 -
98 -    return 0;
99 -}],
100 -[AC_MSG_RESULT(yes)
101 - AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])],
102 - AC_MSG_RESULT(no))
103 -
104  AC_CHECK_TYPE(socklen_t,,
105    AC_DEFINE(socklen_t,int,
106              Define to `int' if <sys/socket.h> does not define.),[