Update AC_PREREQ as suggested by autoupdate
[gst-am7xxxsink.git] / configure.ac
index dd33f76..cd4c9d4 100644 (file)
@@ -1,5 +1,5 @@
 dnl required version of autoconf
 dnl required version of autoconf
-AC_PREREQ([2.53])
+AC_PREREQ([2.69])
 
 AC_INIT([gst-am7xxxsink],[0.1.0],[http://ao2.it],[gst-am7xxxsink])
 
 
 AC_INIT([gst-am7xxxsink],[0.1.0],[http://ao2.it],[gst-am7xxxsink])
 
@@ -37,6 +37,7 @@ PKG_CHECK_MODULES(GST, [
   gstreamer-1.0 >= $GST_REQUIRED
   gstreamer-base-1.0 >= $GST_REQUIRED
   gstreamer-controller-1.0 >= $GST_REQUIRED
   gstreamer-1.0 >= $GST_REQUIRED
   gstreamer-base-1.0 >= $GST_REQUIRED
   gstreamer-controller-1.0 >= $GST_REQUIRED
+  gstreamer-video-1.0 >= $GST_REQUIRED
 ], [
   AC_SUBST(GST_CFLAGS)
   AC_SUBST(GST_LIBS)
 ], [
   AC_SUBST(GST_CFLAGS)
   AC_SUBST(GST_LIBS)
@@ -50,6 +51,17 @@ PKG_CHECK_MODULES(GST, [
   ])
 ])
 
   ])
 ])
 
+PKG_CHECK_MODULES(LIBAM7XXX, [
+  libam7xxx >= 0.1
+], [
+  AC_SUBST(LIBAM7XXX_CFLAGS)
+  AC_SUBST(LIBAM7XXX_LIBS)
+], [
+  AC_MSG_ERROR([
+      libam7xxx not found.
+  ])
+])
+
 dnl check if compiler understands -Wall (if yes, add -Wall to GST_CFLAGS)
 AC_MSG_CHECKING([to see if compiler understands -Wall])
 save_CFLAGS="$CFLAGS"
 dnl check if compiler understands -Wall (if yes, add -Wall to GST_CFLAGS)
 AC_MSG_CHECKING([to see if compiler understands -Wall])
 save_CFLAGS="$CFLAGS"