sid: Fix cross-compilation by using AC_TRY_LINK instead of AC_TRY_RUN
authorHelmut Grohne <helmut@subdivi.de>
Thu, 17 Jan 2019 15:29:38 +0000 (17:29 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 17 Jan 2019 15:29:38 +0000 (17:29 +0200)
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917899

m4/gst-sid.m4

index 8ae2877..3ba8a38 100644 (file)
@@ -16,13 +16,9 @@ if test $HAVE_SIDPLAY = "yes"; then
 
   LIBS="-lsidplay"
 
-  AC_TRY_RUN([
-    #include <sidplay/player.h>
-    int main()
-    { sidTune tune = sidTune(0);  }
-    ],
+  AC_TRY_LINK([#include <sidplay/player.h>],
+    [sidTune tune = sidTune(0);],
     HAVE_SIDPLAY="yes",
-    HAVE_SIDPLAY="no",
     HAVE_SIDPLAY="no")
 
   LIBS="$ac_libs_safe"