at-3.1.12-0001-configure.ac-remove-manual-compiler-check-with-AC_TR.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From a182f18fa3b9fb3dd817b601b51c758f9a77f407 Mon Sep 17 00:00:00 2001
  2. From: Marc Kleine-Budde <mkl@pengutronix.de>
  3. Date: Tue, 1 Dec 2009 17:08:14 +0100
  4. Subject: [PATCH 1/5] configure.ac: remove manual compiler check with AC_TRY_RUN
  5. AC_TRY_RUN breaks cross compilation, so remove it. autotools will take
  6. care about a working (cross-) compiler.
  7. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  8. ---
  9. configure.ac | 6 ------
  10. 1 files changed, 0 insertions(+), 6 deletions(-)
  11. diff --git a/configure.ac b/configure.ac
  12. index a8c2a14..997a37f 100644
  13. --- a/configure.ac
  14. +++ b/configure.ac
  15. @@ -38,12 +38,6 @@ case "$host" in
  16. AC_MSG_RESULT(no)
  17. ;;
  18. esac
  19. -AC_MSG_CHECKING(Trying to compile a trivial ANSI C program)
  20. -AC_TRY_RUN([ main(int ac, char **av) { return 0; } ],
  21. - AC_MSG_RESULT(yes),
  22. - AC_MSG_RESULT(no)
  23. - AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC.),
  24. - AC_MSG_ERROR(Could not compile and run even a trivial ANSI C program - check CC.))
  25. AC_MSG_CHECKING(__attribute__((noreturn)))
  26. AC_TRY_COMPILE([], [void __attribute__((noreturn)) panic(void);],
  27. --
  28. 1.6.5.3