daemon: extract reader start-up to a function
[platform/core/system/dlog.git] / configure.ac
index fdfff75..20fcb45 100644 (file)
@@ -2,23 +2,15 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.61)
-AC_INIT([dlog], [6.0], [hyotaek.shim@samsung.com, k.lewandowsk@samsung.com])
+AC_INIT([dlog], [8.0], [cw00.choi@samsung.com, k.lewandowsk@samsung.com, m.bloch@samsung.com])
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+LT_INIT
 
-# Init XO
-PLATFORM_INIT
-
-# Checks for programs.
-AC_PROG_CXX
 AC_PROG_CC
-AC_PROG_GCC_TRADITIONAL
-AC_PROG_LIBTOOL
+AC_PROG_CXX
 
 AC_SUBST(DEBUG_CFLAGS)
-# Checks for libraries.
-# Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS([stdlib.h unistd.h ])
+AC_CHECK_HEADERS([stdlib.h unistd.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_HEADER_STDBOOL
@@ -75,24 +67,36 @@ if test x$android_monotonic = xtrue; then
        AC_DEFINE_UNQUOTED([USE_ANDROID_MONOTONIC])
 fi
 
-AC_ARG_ENABLE([dynamic-filters],
-        AS_HELP_STRING([--disable-dynamic-filters], [remove dynamic frontend filters feature and dlogctl tool]),
-        [dynamic-filters=false],
-        [dynamic-filters=true])
-if test "${enable_dynamic_filters}" = "yes"; then
-       AC_SUBST(DYNAMIC_FILTERS, "true")
+AC_ARG_ENABLE([lowmem-notification],
+       AS_HELP_STRING([--enable-lowmem-notification], [enable low memory notification feature in dlog_logger]),
+       [lowmem_notification=true],
+       [lowmem_notification=false])
+if test "${lowmem_notification}" = "true"; then
+       PKG_CHECK_MODULES([VCONF], [vconf])
+       PKG_CHECK_MODULES([GIO], [gio-2.0])
+
+       AC_SUBST(LOWMEM_NOTIFICATION, "true")
+       AC_DEFINE_UNQUOTED([LOWMEM_NOTIFICATION])
 else
-       AC_SUBST(DYNAMIC_FILTERS, "false")
+       AC_SUBST(LOWMEM_NOTIFICATION, "false")
 fi
 
 # output files
 AC_SUBST([datadir])
 AC_SUBST([libexecdir])
-AC_CONFIG_FILES([Makefile dlog.pc dlogutil.pc]
+AC_CONFIG_FILES([Makefile dlog.pc dlogutil.pc dlog-redirect-stdout.pc]
                 [dlog_test:tests/dlog_test.in]
+                [run-unittest.sh:tests/dlog_coverage.in]
+                [dlog_test_header:tests/dlog_test_header.in]
+                [dlog_test_daemon_early_quit:tests/dlog_test_daemon_early_quit.in]
+                [dlog_test_stdout_redirect:tests/dlog_test_stdout_redirect.in]
+                [dlog_test_tid_filtering_secure_logging:tests/dlog_test_tid_filtering_secure_logging.in]
+                [dlog_test_backend_autodetection:tests/dlog_test_backend_autodetection.in]
+                [dlog_test_logger_buffering_logging:tests/dlog_test_logger_buffering_logging.in]
+                [dlog_cpu:tests/dlog_cpu.in]
                 [README.testsuite:tests/README.testsuite.in]
-                [configs/dlog_logger.service]
-                [configs/dlog_cleanup.service])
+                [units/dlog_logger.service]
+                [units/dlog_cleanup.service])
 
 AC_OUTPUT