2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([libmm-scmirroring-common],[0.0.1])
6 AC_CONFIG_HEADER([config.h])
7 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
10 +m4_pattern_allow([AM_PROG_AR])
17 AC_FUNC_SELECT_ARGTYPES
22 AC_PROG_GCC_TRADITIONAL
24 PKG_CHECK_MODULES(MMCOMMON,mm-common)
25 AC_SUBST(MMCOMMON_CFLAGS)
26 AC_SUBST(MMCOMMON_LIBS)
28 PKG_CHECK_MODULES(GLIB, glib-2.0)
34 AC_ARG_ENABLE(context-manager, AC_HELP_STRING([--enable-context-manager], [context manager]),
36 case "${enableval}" in
37 yes) ENABLE_CONTEXT_MANAGER=yes ;;
38 no) ENABLE_CONTEXT_MANAGER=no ;;
39 *) AC_MSG_ERROR(bad value ${enableval} for --enable-context-manager) ;;
42 [ENABLE_CONTEXT_MANAGER=no])
43 AM_CONDITIONAL(ENABLE_CONTEXT_MANAGER, test "x$ENABLE_CONTEXT_MANAGER" = "xyes")
45 if [test "x$ENABLE_CONTEXT_MANAGER" = "xyes"]
47 PKG_CHECK_MODULES(CONTEXT_MANAGER, capi-context-manager)
48 AC_SUBST(CONTEXT_MANAGER_CFLAGS)
49 AC_SUBST(CONTEXT_MANAGER_LIBS)
52 AC_CONFIG_FILES([Makefile
53 mm-scmirroring-common.pc