python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / rtorrent / 0001-cross_compile.patch
bloba8ad696e6db72cf122500f2aa34380efaf9f920a
1 From d62f7474289970d5be3fd658dd6ace4489408bdf Mon Sep 17 00:00:00 2001
2 From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
3 Date: Mon, 5 Oct 2015 00:52:26 +0100
4 Subject: [PATCH] Fix cross compilation, based on OpenWRT patch.
6 [Vincent: tweak the patch for version 0.9.6]
8 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
9 Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
10 ---
11 configure.ac | 1 -
12 scripts/checks.m4 | 2 +-
13 scripts/common.m4 | 4 ++--
14 3 files changed, 3 insertions(+), 4 deletions(-)
16 diff --git a/configure.ac b/configure.ac
17 index ba5bbf2..0821d4e 100644
18 --- a/configure.ac
19 +++ b/configure.ac
20 @@ -4,7 +4,6 @@ AC_DEFINE(API_VERSION, 9, api version)
22 AM_INIT_AUTOMAKE
23 AC_CONFIG_HEADERS(config.h)
24 -AM_PATH_CPPUNIT(1.9.6)
26 AC_PROG_CXX
27 AC_PROG_LIBTOOL
28 diff --git a/scripts/checks.m4 b/scripts/checks.m4
29 index 598f39b..0e5abe0 100644
30 --- a/scripts/checks.m4
31 +++ b/scripts/checks.m4
32 @@ -96,7 +96,7 @@ AC_DEFUN([TORRENT_CHECK_KQUEUE], [
33 AC_DEFUN([TORRENT_CHECK_KQUEUE_SOCKET_ONLY], [
34 AC_MSG_CHECKING(whether kqueue supports pipes and ptys)
36 - AC_RUN_IFELSE([AC_LANG_SOURCE([
37 + AC_LINK_IFELSE([AC_LANG_SOURCE([
38 #include <fcntl.h>
39 #include <stdlib.h>
40 #include <unistd.h>
41 diff --git a/scripts/common.m4 b/scripts/common.m4
42 index 5127624..cc68269 100644
43 --- a/scripts/common.m4
44 +++ b/scripts/common.m4
45 @@ -223,7 +223,7 @@ dnl Need to fix this so that it uses the stuff defined by the system.
46 AC_DEFUN([TORRENT_CHECK_EXECINFO], [
47 AC_MSG_CHECKING(for execinfo.h)
49 - AC_RUN_IFELSE([AC_LANG_SOURCE([
50 + AC_LINK_IFELSE([AC_LANG_SOURCE([
51 #include <execinfo.h>
52 int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}
53 ])],
54 @@ -238,7 +238,7 @@ AC_DEFUN([TORRENT_CHECK_EXECINFO], [
55 AC_DEFUN([TORRENT_CHECK_ALIGNED], [
56 AC_MSG_CHECKING(the byte alignment)
58 - AC_RUN_IFELSE([AC_LANG_SOURCE([
59 + AC_LINK_IFELSE([AC_LANG_SOURCE([
60 #include <inttypes.h>
61 int main() {
62 char buf@<:@8@:>@ = { 0, 0, 0, 0, 1, 0, 0, 0 };
63 --
64 1.7.1