lua-bit32: new package
[buildroot-gz.git] / package / beecrypt / 0002-icu-check-cross-compile.patch
blobcc02116506ad2b4b738add29c725acf6bc8f61f8
1 configure: Use AC_COMPILE_IFELSE for ICU check for cross compilation compat
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.
6 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
7 ---
8 configure.ac | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
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