X-Git-Url: https://git.ao2.it/gst-am7xxxsink.git/blobdiff_plain/f1a3a5249f8787af26802c4272571a46b4fa1079..HEAD:/configure.ac diff --git a/configure.ac b/configure.ac index ecd1a85..cd4c9d4 100644 --- a/configure.ac +++ b/configure.ac @@ -1,13 +1,13 @@ dnl required version of autoconf -AC_PREREQ([2.53]) +AC_PREREQ([2.69]) -AC_INIT([gst-fbdevsink],[0.1.0],[http://ao2.it],[gst-fbdevsink]) +AC_INIT([gst-am7xxxsink],[0.1.0],[http://ao2.it],[gst-am7xxxsink]) dnl required versions of gstreamer and plugins-base GST_REQUIRED=1.0.0 GSTPB_REQUIRED=1.0.0 -AC_CONFIG_SRCDIR([src/gstfbdevsink.c]) +AC_CONFIG_SRCDIR([src/gstam7xxxsink.c]) AC_CONFIG_HEADERS([config.h]) dnl required version of automake @@ -16,6 +16,11 @@ AM_INIT_AUTOMAKE([1.10]) dnl enable mainainer mode by default AM_MAINTAINER_MODE([enable]) +dnl use pretty build output with automake >= 1.11 +m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])], + [AM_DEFAULT_VERBOSITY=1 + AC_SUBST(AM_DEFAULT_VERBOSITY)]) + dnl check for tools (compiler etc.) AC_PROG_CC @@ -32,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-video-1.0 >= $GST_REQUIRED ], [ AC_SUBST(GST_CFLAGS) AC_SUBST(GST_LIBS) @@ -45,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"