RIC:1060: Change in PTL
[ric-plt/dbaas.git] / redismodule / configure.ac
1 AC_INIT([redismodule], [0.0.0], [], [], [https://gerrit.oran-osc.org/r/#/admin/projects/ric-plt/dbaas])
2 AC_CONFIG_AUX_DIR([build-aux])
3 AC_CONFIG_MACRO_DIRS([m4])
4 AC_CONFIG_HEADERS([config.h])
5
6
7 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-pax])
8
9 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
10 LT_INIT([disable-static])
11
12 # Checks for programs.
13 AC_PROG_CXX
14 AC_PROG_CC
15 AC_PROG_INSTALL
16 AC_PROG_MAKE_SET
17
18 AC_ARG_ENABLE([unit-test],
19   [--disable-unit-test], [Disable unit tests]
20 )
21
22 AS_IF([test x"$enable_unit_test" != x"no"],
23   [
24     PKG_CHECK_MODULES([LIBCPPUTEST],[cpputest])
25     AM_CONDITIONAL([UNIT_TEST_ENABLED], [true])
26   ],
27   [
28     AM_CONDITIONAL([UNIT_TEST_ENABLED], [false])
29   ]
30 )
31
32 AC_ARG_ENABLE([unit-test-memcheck],
33   [AS_HELP_STRING([--disable-unit-test-memcheck], [Do not run unit tests with valgrind])]
34 )
35
36 AS_IF([test x"$enable_unit_test_memcheck" != x"no"],
37   [
38     AC_CHECK_PROG(VALGRIND_CHECK, valgrind, yes)
39     AM_CONDITIONAL([UNIT_TEST_MEMCHECK_ENABLED], [true])
40   ],
41   [
42     AM_CONDITIONAL([UNIT_TEST_MEMCHECK_ENABLED], [false])
43   ]
44 )
45
46
47 # Checks for header files.
48
49 # Checks for typedefs, structures, and compiler characteristics.
50 AC_HEADER_STDBOOL
51
52 AC_CONFIG_FILES([Makefile])
53
54 AC_OUTPUT