2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([dlog], [1.0], yk.yun@samsung.com)
6 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
7 AC_CONFIG_HEADERS([config.h:config.hin])
9 AC_CONFIG_MACRO_DIR([m4])
13 PKG_CHECK_MODULES([TZPLATFORM_CONFIG], [libtzplatform-config])
15 # Checks for programs.
17 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
19 AC_PROG_GCC_TRADITIONAL
23 AM_CONDITIONAL(DEVELOP_VER, test $DEVELOP_VER = yes)
25 # check for libsystemd-journal
26 AC_ARG_WITH([systemd-journal],
27 AS_HELP_STRING([--with-systemd-journal], [check for systemd-journal]),
28 [], [with_systemd_journal=check])
29 have_systemd_journal=no
30 if test "x$with_systemd_journal" != "xno"; then
31 PKG_CHECK_MODULES(systemd_journal, [libsystemd-journal],
32 [AC_DEFINE(HAVE_SYSTEMD_JOURNAL, 1, [Define if systemd journal is available])
33 have_systemd_journal=yes],
34 have_systemd_journal=no)
35 if test "x$have_systemd_journal" = "xno" -a "x$with_systemd_journal" = "xyes"; then
36 AC_MSG_ERROR([systemd journal requested but libraries not found])
39 AM_CONDITIONAL(HAVE_SYSTEMD_JOURNAL, [test "x$have_systemd_journal" = "xyes"])
41 #AM_CONDITIONAL([ARCH_IS_ARM], [test "x$ARCH" = "xarm"])
42 if test "x$ARCH" = "xarm" ; then
43 DLOG_CFLAGS="-D__arm__"
51 dnl AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
52 # Checks for libraries.
53 # Checks for header files.
55 AC_CHECK_HEADERS([stdlib.h unistd.h ])
57 # Checks for typedefs, structures, and compiler characteristics.
66 # Checks for library functions.
69 AC_CHECK_FUNCS([memset])
72 AC_CONFIG_FILES([Makefile dlog.pc])