1 dnl ***************************
2 dnl *** Version information ***
3 dnl ***************************
4 m4_define([boot_manager_version_api_major], [1])
5 m4_define([boot_manager_version_major], [0])
6 m4_define([boot_manager_version_minor], [0])
7 m4_define([boot_manager_version_micro], [0])
8 m4_define([boot_manager_version], [boot_manager_version_major().boot_manager_version_minor().boot_manager_version_micro()])
10 dnl ***************************
11 dnl *** Initialize autoconf ***
12 dnl ***************************
13 AC_COPYRIGHT([Copyright (c) 2012 GENIVI <genivi-dev@mail.genivi.org>])
14 AC_INIT([boot-manager], [boot_manager_version], [genivi-dev@mail.genivi.org])
18 dnl ***************************
19 dnl *** Initialize automake ***
20 dnl ***************************
21 AM_INIT_AUTOMAKE([1.8 dist-bzip2 tar-ustar])
22 AC_CONFIG_MACRO_DIR([m4])
23 AC_SUBST([ACLOCAL_AMFLAGS], ["$ACLOCAL_FLAGS -I m4"])
24 AM_CONFIG_HEADER([config.h])
26 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
28 dnl **********************************
29 dnl *** Subst boot-manager version ***
30 dnl **********************************
31 BOOT_MANAGER_VERSION_MAJOR=boot_manager_version_major()
32 BOOT_MANAGER_VERSION_MINOR=boot_manager_version_minor()
33 BOOT_MANAGER_VERSION_MICRO=boot_manager_version_micro()
34 BOOT_MANAGER_VERSION_API_MAJOR=boot_manager_version_api_major()
35 BOOT_MANAGER_VERSION_API=$BOOT_MANAGER_VERSION_API_MAJOR
36 AC_SUBST([BOOT_MANAGER_VERSION_MAJOR])
37 AC_SUBST([BOOT_MANAGER_VERSION_MINOR])
38 AC_SUBST([BOOT_MANAGER_VERSION_MICRO])
39 AC_SUBST([BOOT_MANAGER_VERSION_API_MAJOR])
40 AC_SUBST([BOOT_MANAGER_VERSION_API])
42 dnl ********************************
43 dnl *** Check for basic programs ***
44 dnl ********************************
50 dnl ***********************
51 dnl *** Prepare libtool ***
52 dnl ***********************
54 LT_INIT([disable-static])
56 dnl ***************************************
57 dnl *** Check for standard header files ***
58 dnl ***************************************
62 dnl ************************************
63 dnl *** Check for standard functions ***
64 dnl ************************************
67 dnl *************************
68 dnl *** Check for GTK-Doc ***
69 dnl *************************
72 dnl *******************************
73 dnl *** Check for gdbus-codegen ***
74 dnl *******************************
75 AC_ARG_VAR([GDBUS_CODEGEN], [Tool to generate C bindings from XML D-Bus interface definitions])
76 AC_PATH_PROG([GDBUS_CODEGEN], [gdbus-codegen], [no])
77 if test x"$GDBUS_CODEGEN" = x"no"; then
78 AC_MSG_ERROR([could not find gdbus-codegen in \$PATH. You can run
79 ./configure GDBUS_CODEGEN=/path/to/gdbus-codegen to define
80 a custom location for it.])
83 dnl ***********************************
84 dnl *** Check for required packages ***
85 dnl ***********************************
86 PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.30.0])
87 PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.30.0])
88 PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd-daemon >= 37])