beecrypt-icu-check-cross-compile.patch 1003 B

12345678910111213141516171819202122232425262728293031
  1. configure: Use AC_COMPILE_IFELSE for ICU check for cross compilation compat
  2. AC_RUN_IFELSE doesn't work when cross compiling, but we can do the
  3. check in the preprocessor instead, so use AC_COMPILE_IFELSE instead.
  4. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  5. ---
  6. configure.ac | 6 +++---
  7. 1 file changed, 3 insertions(+), 3 deletions(-)
  8. Index: beecrypt-4.2.1/configure.ac
  9. ===================================================================
  10. --- beecrypt-4.2.1.orig/configure.ac
  11. +++ beecrypt-4.2.1/configure.ac
  12. @@ -295,13 +295,13 @@
  13. if test "$ac_with_cplusplus" = yes; then
  14. AC_MSG_CHECKING([for IBM's ICU library version >= 2.8])
  15. AC_LANG_PUSH(C)
  16. - AC_RUN_IFELSE([
  17. + AC_COMPILE_IFELSE([
  18. AC_LANG_PROGRAM([[#include <unicode/uversion.h>]],[[
  19. #if U_ICU_VERSION_MAJOR_NUM < 2
  20. - exit(1);
  21. + #error too old
  22. #elif U_ICU_VERSION_MAJOR_NUM == 2
  23. # if U_ICU_VERSION_MINOR_NUM < 8
  24. - exit(1);
  25. + #error too old
  26. # else
  27. exit(0);
  28. # endif