mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
amr: Use opencore-amr pkg-config files if possible
This makes it possible to build the plugins when the libraries are installed at non-standard locations. Fixes bug #591348.
This commit is contained in:
parent
52f6764e4c
commit
bd8df13ab0
1 changed files with 16 additions and 10 deletions
26
configure.ac
26
configure.ac
|
@ -234,21 +234,27 @@ AG_GST_CHECK_FEATURE(A52DEC, [a52dec], a52dec, [
|
|||
dnl *** amr-nb ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_AMRNB, true)
|
||||
AG_GST_CHECK_FEATURE(AMRNB, [amrnb library], amrnb, [
|
||||
AG_GST_CHECK_LIBHEADER(AMRNB, opencore-amrnb,
|
||||
Decoder_Interface_init, -lm,
|
||||
opencore-amrnb/interf_dec.h,
|
||||
AMRNB_LIBS="-lopencore-amrnb -lm"
|
||||
AC_SUBST(AMRNB_LIBS))
|
||||
PKG_CHECK_MODULES(AMRNB, opencore-amrnb, HAVE_AMRNB="yes",
|
||||
[ AG_GST_CHECK_LIBHEADER(AMRNB, opencore-amrnb,
|
||||
Decoder_Interface_init, -lm,
|
||||
opencore-amrnb/interf_dec.h,
|
||||
AMRNB_LIBS="-lopencore-amrnb")
|
||||
])
|
||||
AC_SUBST(AMRNB_CFLAGS)
|
||||
AC_SUBST(AMRNB_LIBS)
|
||||
])
|
||||
|
||||
dnl *** amr-wb dec ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_AMRWB, true)
|
||||
AG_GST_CHECK_FEATURE(AMRWB, [amrwb library], amrwbdec, [
|
||||
AG_GST_CHECK_LIBHEADER(AMRWB, opencore-amrwb,
|
||||
D_IF_decode, ,
|
||||
opencore-amrwb/dec_if.h,
|
||||
AMRWB_LIBS="-lopencore-amrwb"
|
||||
AC_SUBST(AMRWB_LIBS))
|
||||
PKG_CHECK_MODULES(AMRWB, opencore-amrwb, HAVE_AMRWB="yes",
|
||||
[ AG_GST_CHECK_LIBHEADER(AMRWB, opencore-amrwb,
|
||||
D_IF_decode, ,
|
||||
opencore-amrwb/dec_if.h,
|
||||
AMRWB_LIBS="-lopencore-amrwb")
|
||||
])
|
||||
AC_SUBST(AMRWB_CFLAGS)
|
||||
AC_SUBST(AMRWB_LIBS)
|
||||
])
|
||||
|
||||
dnl *** cdio ***
|
||||
|
|
Loading…
Reference in a new issue