Check build warning
[platform/core/multimedia/libmm-streamrecorder.git] / configure.ac
1 AC_PREREQ(2.52)
2
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])
7
8 m4_pattern_allow([AM_PROG_AR])
9 AM_PROG_AR
10
11 # Checks for programs.
12 AC_PROG_CC
13 AC_C_CONST
14 dnl AC_FUNC_MALLOC
15 AC_FUNC_MMAP
16 AC_FUNC_REALLOC
17 AC_FUNC_SELECT_ARGTYPES
18 AC_FUNC_STAT
19 AC_FUNC_VPRINTF
20 AC_HEADER_STDBOOL
21 AC_HEADER_STDC
22 AC_HEADER_TIME
23 AC_PROG_GCC_TRADITIONAL
24 AC_PROG_LIBTOOL
25
26 # Checks for libraries.
27 PKG_CHECK_MODULES(GST, gstreamer-1.0 >= 1.2.0)
28 AC_SUBST(GST_CFLAGS)
29 AC_SUBST(GST_LIBS)
30
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)
34
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)
38
39 PKG_CHECK_MODULES(MM_COMMON, mm-common)
40 AC_SUBST(MM_COMMON_CFLAGS)
41 AC_SUBST(MM_COMMON_LIBS)
42
43 PKG_CHECK_MODULES(MM_LOG, mm-log)
44 AC_SUBST(MM_LOG_CFLAGS)
45 AC_SUBST(MM_LOG_LIBS)
46
47 PKG_CHECK_MODULES(GLIB, glib-2.0)
48 AC_SUBST(GLIB_CFLAGS)
49 AC_SUBST(GLIB_LIBS)
50
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)
54
55 PKG_CHECK_MODULES(INIPARSER, iniparser)
56 AC_SUBST(INIPARSER_CFLAGS)
57 AC_SUBST(INIPARSER_LIBS)
58
59 # Checks for header files.
60 AC_HEADER_STDC
61 AC_CHECK_HEADERS([fcntl.h memory.h stdlib.h string.h sys/time.h unistd.h])
62
63 # Checks for typedefs, structures, and compiler characteristics.
64 AC_C_CONST
65 AC_TYPE_PID_T
66 AC_TYPE_SIZE_T
67
68 # Checks for library functions.
69 AC_FUNC_ALLOCA
70 AC_FUNC_FORK
71 AC_FUNC_MALLOC
72 AC_FUNC_MEMCMP
73 AC_FUNC_SELECT_ARGTYPES
74 AC_TYPE_SIGNAL
75 AC_CHECK_FUNCS([memset select])
76 AC_CONFIG_FILES([
77 Makefile
78 src/Makefile
79 test/Makefile
80 mm-streamrecorder.pc
81 ])
82 AC_OUTPUT