3 AC_INIT([libmm-streamrecorder], [1.0])
4 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
5 AC_CONFIG_HEADERS([config.h:config.hin])
6 AC_CONFIG_MACRO_DIR([m4])
8 m4_pattern_allow([AM_PROG_AR])
11 # Checks for programs.
17 AC_FUNC_SELECT_ARGTYPES
23 AC_PROG_GCC_TRADITIONAL
26 # Checks for libraries.
27 PKG_CHECK_MODULES(GST, gstreamer-1.0 >= 1.2.0)
31 PKG_CHECK_MODULES(GST_PLUGIN_BASE, gstreamer-base-1.0 >= 1.2.0)
32 AC_SUBST(GST_PLUGIN_BASE_CFLAGS)
33 AC_SUBST(GST_PLUGIN_BASE_LIBS)
35 PKG_CHECK_MODULES(GST_VIDEO, gstreamer-video-1.0 >= 1.2.0)
36 AC_SUBST(GST_VIDEO_CFLAGS)
37 AC_SUBST(GST_VIDEO_LIBS)
39 PKG_CHECK_MODULES(MM_COMMON, mm-common)
40 AC_SUBST(MM_COMMON_CFLAGS)
41 AC_SUBST(MM_COMMON_LIBS)
43 PKG_CHECK_MODULES(MM_LOG, mm-log)
44 AC_SUBST(MM_LOG_CFLAGS)
47 PKG_CHECK_MODULES(GLIB, glib-2.0)
51 PKG_CHECK_MODULES(GST_APP, gstreamer-app-1.0 >= 1.2.0)
52 AC_SUBST(GST_APP_CFLAGS)
53 AC_SUBST(GST_APP_LIBS)
55 PKG_CHECK_MODULES(INIPARSER, iniparser)
56 AC_SUBST(INIPARSER_CFLAGS)
57 AC_SUBST(INIPARSER_LIBS)
59 # Checks for header files.
61 AC_CHECK_HEADERS([fcntl.h memory.h stdlib.h string.h sys/time.h unistd.h])
63 # Checks for typedefs, structures, and compiler characteristics.
68 # Checks for library functions.
73 AC_FUNC_SELECT_ARGTYPES
75 AC_CHECK_FUNCS([memset select])