From: Tim-Philipp Müller Date: Sun, 9 Sep 2007 18:08:36 +0000 (+0000) Subject: configure.ac: Use AC_TRY_COMPILE instead of AC_TRY_RUN to check for old flac versions... X-Git-Tag: 1.19.3~509^2~11739 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1187f71207f4adfc6df1cec1bf4ed5fc09fc8c2;p=platform%2Fupstream%2Fgstreamer.git configure.ac: Use AC_TRY_COMPILE instead of AC_TRY_RUN to check for old flac versions, 's good for cross-compilation ... Original commit message from CVS: * configure.ac: Use AC_TRY_COMPILE instead of AC_TRY_RUN to check for old flac versions, 's good for cross-compilation karma. --- diff --git a/ChangeLog b/ChangeLog index a3d78f2..0ece598 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-09-09 Tim-Philipp Müller + + * configure.ac: + Use AC_TRY_COMPILE instead of AC_TRY_RUN to check for old + flac versions, 's good for cross-compilation karma. + 2007-09-07 Tim-Philipp Müller Patch by: Haakon Sporsheim diff --git a/configure.ac b/configure.ac index 01e62d9..dcfcb0c 100644 --- a/configure.ac +++ b/configure.ac @@ -667,10 +667,11 @@ AG_GST_CHECK_FEATURE(ESD, [ESounD sound daemon], esdsink, [ dnl *** FLAC *** translit(dnm, m, l) AM_CONDITIONAL(USE_FLAC, true) -AC_TRY_RUN([ -#include -int main () { return FLAC_API_VERSION_CURRENT<8; } -],legacy_flac=no,legacy_flac=yes,legacy_flac=no) +AC_TRY_COMPILE([#include ], [ + #if FLAC_API_VERSION_CURRENT < 8 + #error "legacy flac API" + #endif + ], [ legacy_flac=no ], [ legacy_flac=yes ], [ legacy_flac=no ]) if test "x$legacy_flac" = "xyes"; then AG_GST_CHECK_FEATURE(FLAC, [FLAC lossless audio], flac, [