3 AC_INIT([libmm-camcorder], [0.8.0])
4 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
5 AC_CONFIG_HEADERS([config.h:config.hin])
6 AC_CONFIG_MACRO_DIR([m4])
9 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
16 AC_FUNC_SELECT_ARGTYPES
22 AC_PROG_GCC_TRADITIONAL
25 # Checks for libraries.
26 PKG_CHECK_MODULES(GST, gstreamer-1.0 >= 1.2.0)
30 PKG_CHECK_MODULES(GST_PLUGIN_BASE, gstreamer-base-1.0 >= 1.2.0)
31 AC_SUBST(GST_PLUGIN_BASE_CFLAGS)
32 AC_SUBST(GST_PLUGIN_BASE_LIBS)
34 PKG_CHECK_MODULES(GST_VIDEO, gstreamer-video-1.0 >= 1.2.0)
35 AC_SUBST(GST_VIDEO_CFLAGS)
36 AC_SUBST(GST_VIDEO_LIBS)
38 PKG_CHECK_MODULES(GST_APP, gstreamer-app-1.0 >= 1.2.0)
39 AC_SUBST(GST_APP_CFLAGS)
40 AC_SUBST(GST_APP_LIBS)
42 PKG_CHECK_MODULES(MM_COMMON, mm-common)
43 AC_SUBST(MM_COMMON_CFLAGS)
44 AC_SUBST(MM_COMMON_LIBS)
46 PKG_CHECK_MODULES(MM_LOG, mm-log)
47 AC_SUBST(MM_LOG_CFLAGS)
50 PKG_CHECK_MODULES(MM_SOUND, mm-sound)
51 AC_SUBST(MM_SOUND_CFLAGS)
52 AC_SUBST(MM_SOUND_LIBS)
54 PKG_CHECK_MODULES(EXIF, libexif)
58 PKG_CHECK_MODULES(GLIB, glib-2.0)
62 PKG_CHECK_MODULES(MMSOUND, mm-sound)
63 AC_SUBST(MMSOUND_CFLAGS)
64 AC_SUBST(MMSOUND_LIBS)
66 PKG_CHECK_MODULES(MMUTIL_IMGP, mmutil-imgp)
67 AC_SUBST(MMUTIL_IMGP_CFLAGS)
68 AC_SUBST(MMUTIL_IMGP_LIBS)
70 PKG_CHECK_MODULES(SNDFILE, sndfile)
71 AC_SUBST(SNDFILE_CFLAGS)
72 AC_SUBST(SNDFILE_LIBS)
74 PKG_CHECK_MODULES(CAMSRCJPEGENC, camsrcjpegenc)
75 AC_SUBST(CAMSRCJPEGENC_CFLAGS)
76 AC_SUBST(CAMSRCJPEGENC_LIBS)
78 PKG_CHECK_MODULES(VCONF, vconf)
79 AC_SUBST(VCONF_CFLAGS)
82 PKG_CHECK_MODULES(SYSTEMINFO, capi-system-info)
83 AC_SUBST(SYSTEMINFO_CFLAGS)
84 AC_SUBST(SYSTEMINFO_LIBS)
86 # Checks for header files.
88 AC_CHECK_HEADERS([fcntl.h memory.h stdlib.h string.h sys/time.h unistd.h])
90 # Checks for typedefs, structures, and compiler characteristics.
95 # Checks for library functions.
100 AC_FUNC_SELECT_ARGTYPES
102 AC_CHECK_FUNCS([memset select])