1 Fix cross compilation, based on OpenWRT patch.
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
5 diff -Nura libtorrent-0.13.3.orig/configure.ac libtorrent-0.13.3/configure.ac
6 --- libtorrent-0.13.3.orig/configure.ac 2012-10-31 07:38:59.345752076 -0300
7 +++ libtorrent-0.13.3/configure.ac 2012-10-31 07:39:06.454799361 -0300
11 AM_CONFIG_HEADER(config.h)
12 -AM_PATH_CPPUNIT(1.9.6)
16 diff -Nura libtorrent-0.13.3.orig/scripts/checks.m4 libtorrent-0.13.3/scripts/checks.m4
17 --- libtorrent-0.13.3.orig/scripts/checks.m4 2012-10-31 07:38:59.342752057 -0300
18 +++ libtorrent-0.13.3/scripts/checks.m4 2012-10-31 07:39:06.454799361 -0300
20 AC_DEFUN([TORRENT_CHECK_KQUEUE_SOCKET_ONLY], [
21 AC_MSG_CHECKING(whether kqueue supports pipes and ptys)
23 - AC_RUN_IFELSE([AC_LANG_SOURCE([
24 + AC_LINK_IFELSE([AC_LANG_SOURCE([
28 diff -Nura libtorrent-0.13.3.orig/scripts/common.m4 libtorrent-0.13.3/scripts/common.m4
29 --- libtorrent-0.13.3.orig/scripts/common.m4 2012-10-31 07:38:59.342752057 -0300
30 +++ libtorrent-0.13.3/scripts/common.m4 2012-10-31 07:39:32.550972826 -0300
32 AC_DEFUN([TORRENT_CHECK_EXECINFO], [
33 AC_MSG_CHECKING(for execinfo.h)
35 - AC_RUN_IFELSE([AC_LANG_SOURCE([
36 + AC_LINK_IFELSE([AC_LANG_SOURCE([
38 int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;}