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