19d13c6fabc8599c3261724968ed580c7d0a5b44
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / screen / 0001-compiler-sanity-checks.patch
1 From: Maarten ter Huurne <maarten@treewalker.org>
2 Date: Sat, 13 Sep 2014 10:27:27 +0200
3 Subject: Removed redundant compiler sanity checks
4
5 AC_PROG_CC already performs sanity checks. And unlike the removed
6 checks, it does so in a way that supports cross compilation.
7
8 Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
9 ---
10  configure.in | 27 ---------------------------
11  1 file changed, 27 deletions(-)
12
13 diff --git a/configure.in b/configure.in
14 index 87fd43b..572c2a3 100644
15 --- a/configure.in
16 +++ b/configure.in
17 @@ -47,31 +47,6 @@ AC_PROG_GCC_TRADITIONAL
18  AC_ISC_POSIX
19  AC_USE_SYSTEM_EXTENSIONS
20  
21 -AC_TRY_RUN(main(){exit(0);},,[
22 -if test $CC != cc ; then
23 -AC_NOTE(Your $CC failed - restarting with CC=cc)
24 -AC_NOTE()
25 -CC=cc
26 -export CC
27 -exec $0 $configure_args
28 -fi
29 -])
30 -
31 -AC_TRY_RUN(main(){exit(0);},,
32 -exec 5>&2
33 -eval $ac_link
34 -AC_NOTE(CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;)
35 -AC_NOTE($ac_compile)
36 -AC_MSG_ERROR(Can't run the compiler - sorry))
37 -
38 -AC_TRY_RUN([
39 -main()
40 -{
41 -  int __something_strange_();
42 -  __something_strange_(0);
43 -}
44 -],AC_MSG_ERROR(Your compiler does not set the exit status - sorry))
45 -
46  AC_PROG_AWK
47  
48  AC_PROG_INSTALL
49 @@ -1299,8 +1274,6 @@ fi
50  dnl Ptx bug workaround -- insert -lc after -ltermcap
51  test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
52  
53 -AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.))
54 -
55  ETCSCREENRC=
56  AC_MSG_CHECKING(for the global screenrc file)
57  AC_ARG_WITH(sys-screenrc, [  --with-sys-screenrc=path to the global screenrc file], [ ETCSCREENRC="${withval}" ])
58 -- 
59 1.8.4.5
60