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 AC_ARG_ENABLE(wayland, AC_HELP_STRING([--enable-wayland], [enable wayland]),
44 case "${enableval}" in
45 yes) WAYLAND_SUPPORT=yes ;;
46 no) WAYLAND_SUPPORT=no ;;
47 *) AC_MSG_ERROR(bad value ${enableval} for --enable-wayland) ;;
49 ],[WAYLAND_SUPPORT=no])
50 if test "x$WAYLAND_SUPPORT" = "xyes"; then
51 PKG_CHECK_MODULES(GST_WAYLAND, gstreamer-wayland-1.0 >= 1.2.0)
52 AC_SUBST(GST_WAYLAND_CFLAGS)
53 AC_SUBST(GST_WAYLAND_LIBS)
55 AM_CONDITIONAL([WAYLAND_SUPPORT], [test "x$WAYLAND_SUPPORT" = "xyes"])
57 PKG_CHECK_MODULES(MM_COMMON, mm-common)
58 AC_SUBST(MM_COMMON_CFLAGS)
59 AC_SUBST(MM_COMMON_LIBS)
61 PKG_CHECK_MODULES(MM_SOUND, mm-sound)
62 AC_SUBST(MM_SOUND_CFLAGS)
63 AC_SUBST(MM_SOUND_LIBS)
65 PKG_CHECK_MODULES(EXIF, libexif)
69 PKG_CHECK_MODULES(GLIB, glib-2.0)
73 PKG_CHECK_MODULES(GIO, gio-2.0)
77 PKG_CHECK_MODULES(MMSOUND, mm-sound)
78 AC_SUBST(MMSOUND_CFLAGS)
79 AC_SUBST(MMSOUND_LIBS)
81 PKG_CHECK_MODULES(MMUTIL_IMGP, mmutil-imgp)
82 AC_SUBST(MMUTIL_IMGP_CFLAGS)
83 AC_SUBST(MMUTIL_IMGP_LIBS)
85 PKG_CHECK_MODULES(MMUTIL_JPEG, mmutil-jpeg)
86 AC_SUBST(MMUTIL_JPEG_CFLAGS)
87 AC_SUBST(MMUTIL_JPEG_LIBS)
89 PKG_CHECK_MODULES(SNDFILE, sndfile)
90 AC_SUBST(SNDFILE_CFLAGS)
91 AC_SUBST(SNDFILE_LIBS)
93 PKG_CHECK_MODULES(VCONF, vconf)
94 AC_SUBST(VCONF_CFLAGS)
97 PKG_CHECK_MODULES(SYSTEMINFO, capi-system-info)
98 AC_SUBST(SYSTEMINFO_CFLAGS)
99 AC_SUBST(SYSTEMINFO_LIBS)
101 PKG_CHECK_MODULES(TBM, libtbm)
105 PKG_CHECK_MODULES(STORAGE, storage)
106 AC_SUBST(STORAGE_CFLAGS)
107 AC_SUBST(STORAGE_LIBS)
109 # Checks for header files.
111 AC_CHECK_HEADERS([fcntl.h memory.h stdlib.h string.h sys/time.h unistd.h])
113 # Checks for typedefs, structures, and compiler characteristics.
118 # Checks for library functions.
123 AC_FUNC_SELECT_ARGTYPES
125 AC_CHECK_FUNCS([memset select])