translit(dnm, m, l) AM_CONDITIONAL(USE_AMRNB, true)
AG_GST_CHECK_FEATURE(AMRNB, [amrnb library], amrnb, [
PKG_CHECK_MODULES(AMRNB, opencore-amrnb, [
+ if $PKG_CONFIG --atleast-version=0.1.3 opencore-amrnb; then
+ AC_DEFINE(HAVE_OPENCORE_AMRNB_0_1_3_OR_LATER, 1, [Defined for newer opencore-amrnb])
+ fi
HAVE_AMRNB="yes"
], [
HAVE_AMRNB="no"
translit(dnm, m, l) AM_CONDITIONAL(USE_AMRWB, true)
AG_GST_CHECK_FEATURE(AMRWB, [amrwb library], amrwbdec, [
PKG_CHECK_MODULES(AMRWB, opencore-amrwb, [
+ if $PKG_CONFIG --atleast-version=0.1.3 opencore-amrwb; then
+ AC_DEFINE(HAVE_OPENCORE_AMRWB_0_1_3_OR_LATER, 1, [Defined for newer opencore-amrwb])
+ fi
HAVE_AMRWB="yes"
], [
HAVE_AMRWB="no"
#include <gst/gst.h>
#include <gst/audio/gstaudiodecoder.h>
+
+#ifdef HAVE_OPENCORE_AMRNB_0_1_3_OR_LATER
+#include <opencore-amrnb/interf_dec.h>
+#else
#include <interf_dec.h>
+#endif
G_BEGIN_DECLS
#define __GST_AMRNBENC_H__
#include <gst/gst.h>
-#include <interf_enc.h>
#include <gst/audio/gstaudioencoder.h>
+#ifdef HAVE_OPENCORE_AMRNB_0_1_3_OR_LATER
+#include <opencore-amrnb/interf_enc.h>
+#else
+#include <interf_enc.h>
+#endif
+
G_BEGIN_DECLS
#define GST_TYPE_AMRNBENC \
#include <gst/gst.h>
#include <gst/audio/gstaudiodecoder.h>
+
+#ifdef HAVE_OPENCORE_AMRWB_0_1_3_OR_LATER
+#include <opencore-amrwb/dec_if.h>
+#include <opencore-amrwb/if_rom.h>
+#else
#include <dec_if.h>
#include <if_rom.h>
+#endif
G_BEGIN_DECLS