meson: Fix osxaudio build on iOS
[platform/upstream/gst-plugins-good.git] / m4 / a52.m4
index c7396cb..0065dee 100644 (file)
--- a/m4/a52.m4
+++ b/m4/a52.m4
@@ -15,7 +15,7 @@ dnl EXTRA-CPPFLAGS      - extra C preprocessor flags, i.e. -I/usr/X11R6/include
 dnl
 dnl Based on GST_CHECK_LIBHEADER from gstreamer plugins 0.3.1.
 dnl
-AC_DEFUN(A52_CHECK_LIBHEADER,
+AC_DEFUN([A52_CHECK_LIBHEADER],
 [
   AC_CHECK_LIB([$2], [$3], HAVE_[$1]=yes, HAVE_[$1]=no, [$7])
   check_libheader_feature_name=translit([$1], A-Z, a-z)
@@ -49,7 +49,7 @@ dnl
 dnl Based on GST_CHECK_A52DEC from gstreamer plugins 0.3.3.1
 dnl Thomas Vander Stichele <thomas@apestaart.org>, Andy Wingo <wingo@pobox.com>
 dnl
-AC_DEFUN(AC_CHECK_A52DEC
+AC_DEFUN([AC_CHECK_A52DEC]
 [dnl
 AC_ARG_WITH(a52dec-prefix,
     AC_HELP_STRING([--with-a52dec-prefix=PFX],
@@ -79,12 +79,14 @@ int
 main ()
 {
   a52_state_t *state;
+  state = a52_init (0);
+  a52_free (state);
   return 0;
 }
         ],, HAVE_A52DEC=no, [echo $ac_n "cross compiling; assumed OK... $ac_c"])
 
     if test HAVE_A52DEC = "no"; then
-        echo "*** Your a52dec is borked somehow. Please update to 0.7.3."
+        echo "*** Your a52dec is borked somehow. Please update to 0.7.4."
     else
         AC_TRY_RUN([
 #include <inttypes.h>
@@ -94,12 +96,13 @@ int
 main ()
 {
   int i = sizeof (a52_state_t);
-  return 0;
+  if ( i )
+    return 0;
 }
             ], HAVE_A52DEC=no,, [echo $ac_n "cross compiling; assumed OK... $ac_c"])
 
         if test HAVE_A52DEC = "no"; then
-            echo "*** Your a52dec is too old. Please update to 0.7.3."
+            echo "*** Your a52dec is too old. Please update to 0.7.4."
         fi
     fi
     CFLAGS="$ac_save_CFLAGS"