AC_PREREQ(2.52) AC_INIT([libmm-camcorder], [1.0]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_CONFIG_HEADERS([config.h:config.hin]) AC_CONFIG_MACRO_DIR([m4]) # Checks for programs. AC_PROG_CC AC_C_CONST dnl AC_FUNC_MALLOC AC_FUNC_MMAP AC_FUNC_REALLOC AC_FUNC_SELECT_ARGTYPES AC_FUNC_STAT AC_FUNC_VPRINTF AC_HEADER_STDBOOL AC_HEADER_STDC AC_HEADER_TIME AC_PROG_GCC_TRADITIONAL AC_PROG_LIBTOOL # Checks for libraries. PKG_CHECK_MODULES(GST, gstreamer-0.10 >= 0.10) AC_SUBST(GST_CFLAGS) AC_SUBST(GST_LIBS) PKG_CHECK_MODULES(GST_PLUGIN_BASE, gstreamer-base-0.10 >= 0.10) AC_SUBST(GST_PLUGIN_BASE_CFLAGS) AC_SUBST(GST_PLUGIN_BASE_LIBS) PKG_CHECK_MODULES(GST_INTERFACES, gstreamer-interfaces-0.10 >= 0.10) AC_SUBST(GST_INTERFACES_CFLAGS) AC_SUBST(GST_INTERFACES_LIBS) #PKG_CHECK_MODULES(GTK, gtk+-2.0) #AC_SUBST(GTK_CFLAGS) #AC_SUBST(GTK_LIBS) PKG_CHECK_MODULES(MM_COMMON, mm-common) AC_SUBST(MM_COMMON_CFLAGS) AC_SUBST(MM_COMMON_LIBS) PKG_CHECK_MODULES(MM_LOG, mm-log) AC_SUBST(MM_LOG_CFLAGS) AC_SUBST(MM_LOG_LIBS) PKG_CHECK_MODULES(MMTA, mm-ta) AC_SUBST(MMTA_CFLAGS) AC_SUBST(MMTA_LIBS) PKG_CHECK_MODULES(MM_SOUND, mm-sound) AC_SUBST(MM_SOUND_CFLAGS) AC_SUBST(MM_SOUND_LIBS) #PKG_CHECK_MODULES(INIPARSER, iniparser) #AC_SUBST(INIPARSER_CFLAGS) #AC_SUBST(INIPARSER_LIBS) PKG_CHECK_MODULES(EXIF, libexif) AC_SUBST(EXIF_CFLAGS) AC_SUBST(EXIF_LIBS) PKG_CHECK_MODULES(GLIB, glib-2.0) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) PKG_CHECK_MODULES(MMSESSION, mm-session) AC_SUBST(MMSESSION_CFLAGS) AC_SUBST(MMSESSION_LIBS) PKG_CHECK_MODULES(AUDIOSESSIONMGR, audio-session-mgr) AC_SUBST(AUDIOSESSIONMGR_CFLAGS) AC_SUBST(AUDIOSESSIONMGR_LIBS) PKG_CHECK_MODULES(MMSOUND, mm-sound) AC_SUBST(MMSOUND_CFLAGS) AC_SUBST(MMSOUND_LIBS) PKG_CHECK_MODULES(SNDFILE, sndfile) AC_SUBST(SNDFILE_CFLAGS) AC_SUBST(SNDFILE_LIBS) PKG_CHECK_MODULES(CAMSRCJPEGENC, camsrcjpegenc) AC_SUBST(CAMSRCJPEGENC_CFLAGS) AC_SUBST(CAMSRCJPEGENC_LIBS) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h memory.h stdlib.h string.h sys/time.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_PID_T AC_TYPE_SIZE_T # Checks for library functions. AC_FUNC_ALLOCA AC_FUNC_FORK AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_FUNC_SELECT_ARGTYPES AC_TYPE_SIGNAL AC_CHECK_FUNCS([memset select]) AC_CONFIG_FILES([ Makefile src/Makefile test/Makefile mm-camcorder.pc ]) AC_OUTPUT