mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
configure.ac: Use AC_TRY_COMPILE instead of AC_TRY_RUN for the faad and the xvid configure checks, so they still work...
Original commit message from CVS: * configure.ac: Use AC_TRY_COMPILE instead of AC_TRY_RUN for the faad and the xvid configure checks, so they still work when cross-compiling. Fixes #452009.
This commit is contained in:
parent
3d856bb379
commit
30e7dc80a2
2 changed files with 20 additions and 25 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-09-09 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* configure.ac:
|
||||||
|
Use AC_TRY_COMPILE instead of AC_TRY_RUN for the faad and the
|
||||||
|
xvid configure checks, so they still work when cross-compiling.
|
||||||
|
Fixes #452009.
|
||||||
|
|
||||||
2007-09-07 Sebastian Dröge <slomo@circular-chaos.org>
|
2007-09-07 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* gst/spectrum/gstspectrum.c: (gst_spectrum_start),
|
* gst/spectrum/gstspectrum.c: (gst_spectrum_start),
|
||||||
|
|
38
configure.ac
38
configure.ac
|
@ -509,25 +509,15 @@ AG_GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [
|
||||||
HAVE_FAAD="no",)
|
HAVE_FAAD="no",)
|
||||||
fi
|
fi
|
||||||
if test $HAVE_FAAD = "yes"; then
|
if test $HAVE_FAAD = "yes"; then
|
||||||
AC_MSG_CHECKING([Checking for FAAD >= 2])
|
AC_MSG_CHECKING([Checking for FAAD >= 2.0])
|
||||||
AC_TRY_RUN([
|
AC_TRY_COMPILE([#include <faad.h>], [
|
||||||
|
#if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE)
|
||||||
#include <faad.h>
|
#error Not faad2
|
||||||
#if !defined(FAAD2_VERSION) || !defined(FAAD_FMT_DOUBLE)
|
#else
|
||||||
#error Not faad2
|
/* Release candidate of 2.0 is not good enough for us. This field
|
||||||
#else
|
* was added only in 2.0 final and does not exist in 2.0-RC3 */
|
||||||
#include <string.h>
|
faacDecConfiguration conf; conf.dontUpSampleImplicitSBR = 1;
|
||||||
|
#endif
|
||||||
int main()
|
|
||||||
{
|
|
||||||
char version[9] = FAAD2_VERSION;
|
|
||||||
// a release candidate of 2.0 is not enought for us
|
|
||||||
if ( strstr( version, "2.0 RC" ) ) { return 1; }
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
], [
|
], [
|
||||||
HAVE_FAAD="yes"
|
HAVE_FAAD="yes"
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
|
@ -869,12 +859,10 @@ AG_GST_CHECK_FEATURE(XVID, [xvid plugins], xvid, [
|
||||||
AC_CHECK_LIB(xvidcore, xvid_decore, [
|
AC_CHECK_LIB(xvidcore, xvid_decore, [
|
||||||
AC_CHECK_LIB(xvidcore, xvid_global, [
|
AC_CHECK_LIB(xvidcore, xvid_global, [
|
||||||
AC_MSG_CHECKING([for uptodate XviD API version])
|
AC_MSG_CHECKING([for uptodate XviD API version])
|
||||||
AC_TRY_RUN([
|
AC_TRY_COMPILE([#include <xvid.h>], [
|
||||||
#include <xvid.h>
|
#if XVID_API_MAJOR(XVID_API) != 4
|
||||||
#if XVID_API_MAJOR(XVID_API) != 4
|
#error "Incompatible XviD API version"
|
||||||
#error "Incompatible XviD API version"
|
#endif
|
||||||
#endif
|
|
||||||
int main () { return 0; }
|
|
||||||
],[ AC_MSG_RESULT(yes)
|
],[ AC_MSG_RESULT(yes)
|
||||||
XVID_LIBS="-lxvidcore -lm"
|
XVID_LIBS="-lxvidcore -lm"
|
||||||
AC_SUBST(XVID_LIBS)
|
AC_SUBST(XVID_LIBS)
|
||||||
|
|
Loading…
Reference in a new issue