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])
8 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-pax])
10 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
11 LT_INIT([disable-static])
13 # Checks for programs.
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
26 [ UNIT_TEST_ENABLED=false ])
27 AM_CONDITIONAL([UNIT_TEST_ENABLED], [$UNIT_TEST_ENABLED])
29 # Checks for header files.
31 # Checks for typedefs, structures, and compiler characteristics.
34 AC_CONFIG_FILES([Makefile])