You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.7 KiB

  1. From 6b320186db7df1e58fdd2c836af54c86cc596981 Mon Sep 17 00:00:00 2001
  2. From: Jussi Kukkonen <jussi.kukkonen@intel.com>
  3. Date: Sat, 24 Feb 2018 15:09:10 +0100
  4. Subject: [PATCH] [PATCH 1/4] Remove redundant compiler sanity checks
  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. Modified from patch by Maarten ter Huurne.
  8. Upstream-Status: Submitted [http://savannah.gnu.org/bugs/?43223]
  9. Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
  10. ---
  11. configure.ac | 27 ---------------------------
  12. 1 file changed, 27 deletions(-)
  13. diff --git a/src/configure.ac b/src/configure.ac
  14. index d1bc42c..a8208ea 100644
  15. --- a/configure.ac
  16. +++ b/configure.ac
  17. @@ -48,31 +48,6 @@ AC_PROG_GCC_TRADITIONAL
  18. AC_ISC_POSIX
  19. AC_USE_SYSTEM_EXTENSIONS
  20. -AC_TRY_RUN(main(){exit(0);},,[
  21. -if test $CC != cc ; then
  22. -AC_NOTE(Your $CC failed - restarting with CC=cc)
  23. -AC_NOTE()
  24. -CC=cc
  25. -export CC
  26. -exec $0 $configure_args
  27. -fi
  28. -])
  29. -
  30. -AC_TRY_RUN(main(){exit(0);},,
  31. -exec 5>&2
  32. -eval $ac_link
  33. -AC_NOTE(CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;)
  34. -AC_NOTE($ac_compile)
  35. -AC_MSG_ERROR(Can't run the compiler - sorry))
  36. -
  37. -AC_TRY_RUN([
  38. -main()
  39. -{
  40. - int __something_strange_();
  41. - __something_strange_(0);
  42. -}
  43. -],AC_MSG_ERROR(Your compiler does not set the exit status - sorry))
  44. -
  45. AC_PROG_AWK
  46. AC_PROG_INSTALL
  47. @@ -1278,8 +1253,6 @@ fi
  48. dnl Ptx bug workaround -- insert -lc after -ltermcap
  49. test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
  50. -AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.))
  51. -
  52. ETCSCREENRC=
  53. AC_MSG_CHECKING(for the global screenrc file)
  54. AC_ARG_WITH(sys-screenrc, [ --with-sys-screenrc=path to the global screenrc file], [ ETCSCREENRC="${withval}" ])
  55. --
  56. 2.17.1