Merge "KMSG handling more robust." into tizen
[platform/core/system/dlog.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ(2.61)
5 AC_INIT([dlog], [1.0], yk.yun@samsung.com)
6 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
7
8 # Init XO
9 PLATFORM_INIT
10
11 # Checks for programs.
12 dnl AC_PROG_CXX
13 AC_PROG_CC
14 AC_PROG_GCC_TRADITIONAL
15 AC_PROG_LIBTOOL
16
17 # check binary type for dlog debug mode
18 AC_ARG_ENABLE([debug_mode],
19         AS_HELP_STRING([--enable-debug_mode Turn on debug_mode]),
20                 [debug_mode=yes],
21                 debug_mode=no)
22 if test "x$debug_mode" = "xyes" ; then
23         DEBUG_CFLAGS+=" -DDLOG_DEBUG_ENABLE"
24 fi
25 AC_ARG_ENABLE([debug_enable],
26         AS_HELP_STRING([--enable-debug_enable Turn on debug_enable]),
27                 [debug_enable=yes],
28             debug_enable=no)
29 AC_SUBST(DEBUG_CFLAGS)
30 # Checks for libraries.
31 # Checks for header files.
32 AC_HEADER_STDC
33 AC_CHECK_HEADERS([stdlib.h unistd.h ])
34
35 # Checks for typedefs, structures, and compiler characteristics.
36 AC_HEADER_STDBOOL
37 AC_C_CONST
38 AC_C_INLINE
39 AC_STRUCT_TM
40 AC_TYPE_PID_T
41 AC_TYPE_SIZE_T
42 AC_TYPE_SSIZE_T
43
44 # Checks for library functions.
45 AC_FUNC_MALLOC
46 AC_FUNC_STAT
47 AC_CHECK_FUNCS([memset])
48
49 PKG_PROG_PKG_CONFIG
50 PKG_CHECK_MODULES([CAPI_BASE_COMMON], [capi-base-common])
51
52 AC_SUBST(TZ_SYS_ETC)
53
54 # output files
55 AC_CONFIG_FILES([Makefile dlog.pc])
56 AC_OUTPUT