Source: timidity
Version: 2.13.2-40.5
Tags: patch upstream
User: helm...@debian.org
Usertags: rebootstrap

timidity fails to cross build from source, because ./configure assumes
availability of libOggFLAC during cross compilation. During the Debian
build, this library is not available however.

The relevant check is an AC_TRY_RUN check and the part being tested can
easily be turned into AC_COMPILE_IFELSE without loss of information.
That change makes the check work for cross compilation and removes the
need to assume a result.

After doing so timidity still fails to cross build executing some host
tool. I didn't investigate that part yet. Please close this bug when
fixing the libOggFLAC part.

Helmut
--- timidity-2.13.2.orig/autoconf/libOggFLAC.m4
+++ timidity-2.13.2/autoconf/libOggFLAC.m4
@@ -46,7 +46,7 @@
 dnl Now check if the installed libOggFLAC is sufficiently new.
 dnl
       rm -f conf.libOggFLACtest
-      AC_TRY_RUN([
+      AC_COMPILE_IFELSE([
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -58,7 +58,7 @@
   return 0;
 }
 
-],, no_libOggFLAC=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
+],, no_libOggFLAC=yes)
        CFLAGS="$ac_save_CFLAGS"
        LIBS="$ac_save_LIBS"
   fi

Reply via email to