summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-11-29 22:43:23 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2003-11-29 22:43:23 +0000
commit0b56bcf40cabff2df2e0959499ab746ada8c9566 (patch)
tree6b70ab121bbd175999ae0bd0d6b95dc4d21e3ada
parent502d87b8b4b80553baab65f3ecf523c498e29150 (diff)
downloadgst-plugins-bad-0b56bcf40cabff2df2e0959499ab746ada8c9566.tar.gz
gst-plugins-bad-0b56bcf40cabff2df2e0959499ab746ada8c9566.tar.bz2
gst-plugins-bad-0b56bcf40cabff2df2e0959499ab746ada8c9566.zip
Add check for faad2 (faad1 was detected, too, but we don't want that)
Original commit message from CVS: Add check for faad2 (faad1 was detected, too, but we don't want that)
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1f71f019..02a8cbc1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -781,6 +781,15 @@ dnl **** Free AAC Decoder (FAAD) ****
translit(dnm, m, l) AM_CONDITIONAL(USE_FAAD, true)
GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [
GST_CHECK_LIBHEADER(FAAD, faad, faacDecOpen, -lm, faad.h, FAAD_LIBS="-lfaad -lm")
+ AC_MSG_CHECKING([Checking for FAAD >= 2])
+ AC_TRY_COMPILE([
+#include <faad.h>
+#if !defined(FAAD2_VERSION)
+#error Not faad2
+#endif
+ ], [ return 0; ],
+ [ HAVE_FAAD="yes" && AC_MSG_RESULT(yes)],
+ [ HAVE_FAAD="no" && AC_MSG_RESULT(no)])
AS_SCRUB_INCLUDE(FAAD_CFLAGS)
AC_SUBST(FAAD_LIBS)
])