202ee00334c08674b8304c1c4c64d5ced1983302
[feed/packages.git] / libs / libtorrent / patches / 100-fix_cross_compile.patch
1 --- a/configure.ac
2 +++ b/configure.ac
3 @@ -19,7 +19,6 @@ AC_SUBST(LIBTORRENT_INTERFACE_VERSION_NO
4
5 AM_INIT_AUTOMAKE
6 AC_CONFIG_HEADERS(config.h)
7 -AM_PATH_CPPUNIT(1.9.6)
8
9 AC_PROG_CXX
10
11 --- a/scripts/checks.m4
12 +++ b/scripts/checks.m4
13 @@ -96,7 +96,7 @@ AC_DEFUN([TORRENT_CHECK_KQUEUE], [
14 AC_DEFUN([TORRENT_CHECK_KQUEUE_SOCKET_ONLY], [
15 AC_MSG_CHECKING(whether kqueue supports pipes and ptys)
16
17 - AC_RUN_IFELSE([AC_LANG_SOURCE([
18 + AC_LINK_IFELSE([AC_LANG_SOURCE([
19 #include <fcntl.h>
20 #include <stdlib.h>
21 #include <unistd.h>
22 --- a/scripts/common.m4
23 +++ b/scripts/common.m4
24 @@ -223,7 +223,7 @@ dnl Need to fix this so that it uses t
25 AC_DEFUN([TORRENT_CHECK_EXECINFO], [
26 AC_MSG_CHECKING(for execinfo.h)
27
28 - AC_RUN_IFELSE([AC_LANG_SOURCE([
29 + AC_LINK_IFELSE([AC_LANG_SOURCE([
30 #include <execinfo.h>
31 int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
32 ])],
33 @@ -238,7 +238,7 @@ AC_DEFUN([TORRENT_CHECK_EXECINFO], [
34 AC_DEFUN([TORRENT_CHECK_ALIGNED], [
35 AC_MSG_CHECKING(the byte alignment)
36
37 - AC_RUN_IFELSE([AC_LANG_SOURCE([
38 + AC_LINK_IFELSE([AC_LANG_SOURCE([
39 #include <inttypes.h>
40 int main() {
41 char buf@<:@8@:>@ = { 0, 0, 0, 0, 1, 0, 0, 0 };