dnl ***************************
m4_define([boot_manager_version_api_major], [1])
m4_define([boot_manager_version_major], [0])
-m4_define([boot_manager_version_minor], [0])
+m4_define([boot_manager_version_minor], [1])
m4_define([boot_manager_version_micro], [0])
m4_define([boot_manager_version], [boot_manager_version_major().boot_manager_version_minor().boot_manager_version_micro()])
dnl *** Check for standard header files ***
dnl ***************************************
AC_HEADER_STDC()
-AC_CHECK_HEADERS([])
+AC_CHECK_HEADERS([stdlib.h])
dnl ************************************
dnl *** Check for standard functions ***
dnl ***********************************
PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.30.0])
PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.30.0])
+PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.30.0])
PKG_CHECK_MODULES([SYSTEMD_DAEMON], [libsystemd-daemon >= 37])
+PKG_CHECK_MODULES([DLT], [automotive-dlt >= 2.2.0])
+
+dnl *********************************************
+dnl *** Include GLib/GSettings specific stuff ***
+dnl *********************************************
+GLIB_GSETTINGS
+
+dnl ***********************************
+dnl *** Check for debugging support ***
+dnl ***********************************
+AC_ARG_ENABLE([debug],
+ AC_HELP_STRING([--enable-debug@:@=no|yes@:>@],
+ [Build with debugging support @<:@default=m4_default([$1], [no])@:>@]),
+ [enable_debug=$enableval], [enable_debug=m4_default([$1], [no])])
+AC_MSG_CHECKING([whether to build with debugging support])
+if test x"$enable_debug" = x"yes"; then
+ AC_DEFINE([DEBUG], [1], [Define for debugging support])
+
+ CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
+ CFLAGS="$CFLAGS -Werror -Wall -Wextra \
+ -Wno-missing-field-initializers \
+ -Wno-unused-parameter -Wold-style-definition \
+ -Wdeclaration-after-statement \
+ -Wmissing-declarations \
+ -Wmissing-noreturn -Wpointer-arith \
+ -Wcast-align -Wformat-security \
+ -Winit-self -Wmissing-include-dirs -Wundef \
+ -Wmissing-format-attribute -Wnested-externs \
+ -fstack-protector"
+
+ AC_MSG_RESULT([yes])
+else
+ AC_MSG_RESULT([no])
+fi
+
+dnl ***************************************************
+dnl *** Configure option for prioritising LUC types ***
+dnl ***************************************************
+AC_ARG_WITH([prioritised-luc-types],
+ [AS_HELP_STRING([--with-prioritised-luc-types=LIST],
+ [Comma-separated list of LUC types to be prioritised during start-up])],
+ [with_prioritised_luc_types=$withval], [with_prioritised_luc_types=])
+AC_DEFINE_UNQUOTED([PRIORITISED_LUC_TYPES],
+ ["$with_prioritised_luc_types"],
+ [Prioritised LUC types])
AC_OUTPUT([
Makefile
-luc-handler/Makefile
+common/Makefile
+boot-manager/busconf/Makefile
+boot-manager/Makefile
+legacy-app-handler/Makefile
+nsm-dummy/busconf/Makefile
+nsm-dummy/dbus/Makefile
+nsm-dummy/systemd/Makefile
+nsm-dummy/Makefile
+tests/Makefile
+tests/boot-manager/Makefile
+tests/legacy-app-handler/Makefile
])