Add updated version of Redis modules
[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 AC_CONFIG_FILES([run-tests.sh], [chmod +x run-tests.sh])
6
7
8 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-pax])
9
10 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
11 LT_INIT([disable-static])
12
13 # Checks for programs.
14 AC_PROG_CXX
15 AC_PROG_CC
16 AC_PROG_INSTALL
17 AC_PROG_MAKE_SET
18
19 AC_ARG_ENABLE([unit-test],
20 [  --enable-unit-test    Check for UT dependencies],
21 [  PKG_CHECK_MODULES([LIBCPPUTEST],[cpputest])
22    AC_CHECK_PROG(VALGRIND_CHECK, valgrind, yes)
23    AS_IF([test x"$VALGRIND_CHECK" != x"yes"], [AC_MSG_ERROR([Install valgrind to run UT.])])
24    UNIT_TEST_ENABLED=true
25 ],
26 [  UNIT_TEST_ENABLED=false  ])
27 AM_CONDITIONAL([UNIT_TEST_ENABLED], [$UNIT_TEST_ENABLED])
28
29 # Checks for header files.
30
31 # Checks for typedefs, structures, and compiler characteristics.
32 AC_HEADER_STDBOOL
33
34 AC_CONFIG_FILES([Makefile])
35
36 AC_OUTPUT