configure.ac: Use AC_TRY_COMPILE instead of AC_TRY_RUN as the result of the linking...
authorSebastian Dröge <slomo@circular-chaos.org>
Fri, 31 Oct 2008 18:39:37 +0000 (18:39 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 31 Oct 2008 18:39:37 +0000 (18:39 +0000)
Original commit message from CVS:
* configure.ac:
Use AC_TRY_COMPILE instead of AC_TRY_RUN as the result of the linking
is what is interesting, not that it actually runs.
Fixes cross-compilation and fixes bug #558639.

ChangeLog
configure.ac

index 6eb7d25..04a9e64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-10-31  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
+
+       * configure.ac:
+       Use AC_TRY_COMPILE instead of AC_TRY_RUN as the result of the linking
+       is what is interesting, not that it actually runs.
+       Fixes cross-compilation and fixes bug #558639.
+
 2008-10-30  Michael Smith <msmith@songbirdnest.com>
 
        * sys/qtwrapper/audiodecoders.c:
index 7c983ad..732ae31 100644 (file)
@@ -392,10 +392,11 @@ AG_GST_CHECK_FEATURE(APEXSINK, [AirPort Express Wireless sink], apexsink, [
 
                   # Basic test to check for compatible version and correct linking
                   # *does not* test for RSA - that comes later.
-                  AC_TRY_RUN(
+                  AC_TRY_COMPILE(
                           [
 #include <string.h>
 #include <openssl/rand.h>
+],[
 int main(void)
 {
         char a[2048];