Source: transmission Version: 2.92-2 Tags: patch upstream User: helm...@debian.org Usertags: rebootstrap
transmission fails to cross build from source, because it uses AC_RUN_IFELSE. Fortunately, the use is unnecessary and can simply be filled with AC_COMPILE_IFELSE. The attached patch implements that. After applying the patch, transmission still fails to cross build with a qmake error. I'll have to discuss that with the qt maintainers, so please close this bug anyway when fixing the just the AC_RUN_IFELSE issue. Helmut
Index: transmission-2.92/configure.ac =================================================================== --- transmission-2.92.orig/configure.ac +++ transmission-2.92/configure.ac @@ -386,14 +386,12 @@ dnl MINIUPNPC_API_VERSION and we won't have to figure dnl it out on our own if test "x$upnp_version" = "xunknown" ; then - AC_RUN_IFELSE( + AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [#include <stdlib.h> #include <miniupnpc/miniupnpc.h>], - [#ifdef MINIUPNPC_API_VERSION - return EXIT_SUCCESS; - #else - return EXIT_FAILURE; + [#ifndef MINIUPNPC_API_VERSION + #error MINIUPNPC_API_VERSION undefined #endif] )], [upnp_version=">= 1.7"]