3af39c469157784760746a6eb19b78e00aa74480
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / thrift / 0003-zlib-cross.patch
1 Make zlib version detection cross-compile happy.
2
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
4
5 diff -Nura thrift-0.9.1.orig/aclocal/ax_lib_zlib.m4 thrift-0.9.1/aclocal/ax_lib_zlib.m4
6 --- thrift-0.9.1.orig/aclocal/ax_lib_zlib.m4    2013-08-15 11:04:29.000000000 -0300
7 +++ thrift-0.9.1/aclocal/ax_lib_zlib.m4 2013-10-07 20:47:44.523177973 -0300
8 @@ -73,7 +73,7 @@
9            #   (defined in the library).
10            AC_LANG_PUSH([C])
11            dnl This can be changed to AC_LINK_IFELSE if you are cross-compiling.
12 -          AC_RUN_IFELSE([AC_LANG_PROGRAM([[
13 +          AC_LINK_IFELSE([AC_LANG_PROGRAM([[
14            #include <zlib.h>
15            #if ZLIB_VERNUM >= 0x$WANT_ZLIB_VERSION
16            #else