mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
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.
This commit is contained in:
parent
5e39863fca
commit
d1187f7120
2 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-09-09 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* 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 <tim at centricular dot net>
|
2007-09-07 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
Patch by: Haakon Sporsheim <haakon.sporsheim at tandberg com>
|
Patch by: Haakon Sporsheim <haakon.sporsheim at tandberg com>
|
||||||
|
|
|
@ -667,10 +667,11 @@ AG_GST_CHECK_FEATURE(ESD, [ESounD sound daemon], esdsink, [
|
||||||
|
|
||||||
dnl *** FLAC ***
|
dnl *** FLAC ***
|
||||||
translit(dnm, m, l) AM_CONDITIONAL(USE_FLAC, true)
|
translit(dnm, m, l) AM_CONDITIONAL(USE_FLAC, true)
|
||||||
AC_TRY_RUN([
|
AC_TRY_COMPILE([#include <FLAC/export.h>], [
|
||||||
#include <FLAC/export.h>
|
#if FLAC_API_VERSION_CURRENT < 8
|
||||||
int main () { return FLAC_API_VERSION_CURRENT<8; }
|
#error "legacy flac API"
|
||||||
],legacy_flac=no,legacy_flac=yes,legacy_flac=no)
|
#endif
|
||||||
|
], [ legacy_flac=no ], [ legacy_flac=yes ], [ legacy_flac=no ])
|
||||||
|
|
||||||
if test "x$legacy_flac" = "xyes"; then
|
if test "x$legacy_flac" = "xyes"; then
|
||||||
AG_GST_CHECK_FEATURE(FLAC, [FLAC lossless audio], flac, [
|
AG_GST_CHECK_FEATURE(FLAC, [FLAC lossless audio], flac, [
|
||||||
|
|
Loading…
Reference in a new issue