add packages_10.03.2 in preparation for the 10.03.2 interim release
[10.03/packages.git] / libs / libtorrent / patches / 100-fix_cross_compile.patch
1 Index: libtorrent-0.12.6/scripts/checks.m4
2 ===================================================================
3 --- libtorrent-0.12.6.orig/scripts/checks.m4
4 +++ libtorrent-0.12.6/scripts/checks.m4
5 @@ -96,7 +96,7 @@ AC_DEFUN([TORRENT_CHECK_KQUEUE], [
6  AC_DEFUN([TORRENT_CHECK_KQUEUE_SOCKET_ONLY], [
7    AC_MSG_CHECKING(whether kqueue supports pipes and ptys)
8  
9 -  AC_RUN_IFELSE(
10 +  AC_LINK_IFELSE(
11      [[#include <fcntl.h>
12        #include <stdlib.h>
13        #include <unistd.h>
14 Index: libtorrent-0.12.6/scripts/common.m4
15 ===================================================================
16 --- libtorrent-0.12.6.orig/scripts/common.m4
17 +++ libtorrent-0.12.6/scripts/common.m4
18 @@ -184,7 +184,7 @@ AC_DEFUN([TORRENT_CHECK_MADVISE], [
19  AC_DEFUN([TORRENT_CHECK_EXECINFO], [
20    AC_MSG_CHECKING(for execinfo.h)
21  
22 -  AC_RUN_IFELSE(
23 +  AC_LINK_IFELSE(
24      [[#include <execinfo.h>
25        int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
26      ]],
27 @@ -199,7 +199,7 @@ AC_DEFUN([TORRENT_CHECK_EXECINFO], [
28  AC_DEFUN([TORRENT_CHECK_ALIGNED], [
29    AC_MSG_CHECKING(the byte alignment)
30  
31 -  AC_RUN_IFELSE(
32 +  AC_LINK_IFELSE(
33      [[#include <inttypes.h>
34        int main() {
35          char buf[8] = { 0, 0, 0, 0, 1, 0, 0, 0 };