The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / screen / 0003-cross-compilation-AC_TRY_RUN.patch
1 From: Maarten ter Huurne <maarten@treewalker.org>
2 Date: Sat, 13 Sep 2014 12:04:41 +0200
3 Subject: Provide cross compilation alternatives for all AC_TRY_RUN uses
4
5 Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
6 ---
7  configure.in | 30 +++++++++++++++++++-----------
8  1 file changed, 19 insertions(+), 11 deletions(-)
9
10 diff --git a/configure.in b/configure.in
11 index ff9606d..d53a079 100644
12 --- a/configure.in
13 +++ b/configure.in
14 @@ -347,7 +347,8 @@ main()
15    exit(0);
16  }
17  ], AC_NOTE(- your fifos are usable) fifo=1,
18 -AC_NOTE(- your fifos are not usable))
19 +AC_NOTE(- your fifos are not usable),
20 +AC_NOTE(- skipping check because we are cross compiling; assuming fifos are usable) fifo=1)
21  rm -f /tmp/conftest*
22  
23  if test -n "$fifo"; then
24 @@ -395,7 +396,8 @@ main()
25    exit(0);
26  }
27  ], AC_NOTE(- your implementation is ok), 
28 -AC_NOTE(- you have a broken implementation) AC_DEFINE(BROKEN_PIPE) fifobr=1)
29 +AC_NOTE(- you have a broken implementation) AC_DEFINE(BROKEN_PIPE) fifobr=1,
30 +AC_NOTE(- skipping check because we are cross compiling; assuming fifo implementation is ok))
31  rm -f /tmp/conftest*
32  fi
33  
34 @@ -457,7 +459,8 @@ main()
35    exit(0);
36  }
37  ], AC_NOTE(- your sockets are usable) sock=1,
38 -AC_NOTE(- your sockets are not usable))
39 +AC_NOTE(- your sockets are not usable),
40 +AC_NOTE(- skipping check because we are cross compiling; assuming sockets are usable) sock=1)
41  rm -f /tmp/conftest*
42  
43  if test -n "$sock"; then
44 @@ -496,7 +499,8 @@ main()
45  }
46  ],AC_NOTE(- you are normal),
47  AC_NOTE(- unix domain sockets are not kept in the filesystem)
48 -AC_DEFINE(SOCK_NOT_IN_FS) socknofs=1)
49 +AC_DEFINE(SOCK_NOT_IN_FS) socknofs=1,
50 +AC_NOTE(- skipping check because we are cross compiling; assuming sockets are normal))
51  rm -f /tmp/conftest*
52  fi
53  
54 @@ -623,7 +627,8 @@ main()
55    exit(0);
56  }
57  ],AC_NOTE(- select is ok),
58 -AC_NOTE(- select can't count) AC_DEFINE(SELECT_BROKEN))
59 +AC_NOTE(- select can't count) AC_DEFINE(SELECT_BROKEN),
60 +AC_NOTE(- skipping check because we are cross compiling; assuming select is ok))
61  
62  dnl
63  dnl    ****  termcap or terminfo  ****
64 @@ -665,7 +670,8 @@ main()
65  {
66   exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
67  }], AC_NOTE(- you use the termcap database),
68 -AC_NOTE(- you use the terminfo database) AC_DEFINE(TERMINFO))
69 +AC_NOTE(- you use the terminfo database) AC_DEFINE(TERMINFO),
70 +AC_NOTE(- skipping check because we are cross compiling; assuming terminfo database is used) AC_DEFINE(TERMINFO))
71  AC_CHECKING(ospeed)
72  AC_TRY_LINK(extern short ospeed;,ospeed=5;,,AC_DEFINE(NEED_OSPEED))
73  
74 @@ -800,7 +806,8 @@ main()
75      else
76        AC_NOTE(- can't determine - assume ptys are world accessable)
77      fi
78 -  ]
79 +  ],
80 +  AC_NOTE(- skipping check because we are cross compiling; assuming ptys are world accessable)
81  )
82  rm -f conftest_grp
83  fi
84 @@ -884,7 +891,7 @@ AC_EGREP_CPP(yes,
85  #endif
86  ], load=1)
87  fi
88 -if test -z "$load" ; then
89 +if test -z "$load" && test "$cross_compiling" = no ; then
90  AC_CHECKING(for kernelfile)
91  for core in /unix /vmunix /dynix /hp-ux /xelos /dev/ksyms /kernel/unix /kernel/genunix /unicos /mach /netbsd /386bsd /dgux /bsd /stand/vmunix; do
92    if test -f $core || test -c $core; then
93 @@ -1077,7 +1084,7 @@ main()
94  #endif
95    exit(0);
96  }
97 -],,AC_DEFINE(SYSVSIGS))
98 +],,AC_DEFINE(SYSVSIGS),:)
99  
100  fi
101  
102 @@ -1157,7 +1164,7 @@ main() {
103    if (strncmp(buf, "cdedef", 6))
104      exit(1);
105    exit(0); /* libc version works properly.  */
106 -}], AC_DEFINE(USEBCOPY))
107 +}], AC_DEFINE(USEBCOPY),,:)
108  
109  AC_TRY_RUN([
110  #define bcopy(s,d,l) memmove(d,s,l)
111 @@ -1172,7 +1179,8 @@ main() {
112    if (strncmp(buf, "cdedef", 6))
113      exit(1);
114    exit(0); /* libc version works properly.  */
115 -}], AC_DEFINE(USEMEMMOVE))
116 +}], AC_DEFINE(USEMEMMOVE),,
117 +  AC_NOTE(- skipping check because we are cross compiling; use memmove) AC_DEFINE(USEMEMMOVE))
118  
119  AC_SYS_LONG_FILE_NAMES
120  
121 -- 
122 1.8.4.5
123