blob: aca3abe50ece0a8df62f408efabd158d87539a09 [file] [log] [blame]
Rolf Badorekef2bf512019-08-20 11:17:15 +03001# SDL version
2#
3# 1. If no interface changes has been made, increment SDL_MICRO.
4# 2. Else, if new interfaces have been added but existing interfaces have not
5# been changed, increment SDL_MINOR and zero SDL_MICRO. (Backward compatible
6# interface change.)
7# 3. Else, increment SDL_MAJOR and zero both SDL_MINOR and SDL_MICRO. (Backward
8# incompatible interface change.)
9#
10# Change the numbers just before release.
11
12m4_define([SDL_MAJOR], [1])
13m4_define([SDL_MINOR], [0])
Rolf Badorekd2a70182019-11-08 11:44:00 +020014m4_define([SDL_MICRO], [3])
Rolf Badorekef2bf512019-08-20 11:17:15 +030015
16# SDL ABI version with libtool
17#
18# 1. Always increase the revision value.
19# 2. Increase the current value whenever an interface has been added, removed
20# or changed.
21# 3. Increase the age value only if the changes made to the ABI are backward
22# compatible.
23#
Rolf Badorekd2a70182019-11-08 11:44:00 +020024# Never zero or decrease any of the ABI version number values.
25#
Rolf Badorekef2bf512019-08-20 11:17:15 +030026# See https://autotools.io/libtool/version.html
27#
28# Change the numbers just before release.
29
30m4_define([SDL_CURRENT], [1])
Rolf Badorekd2a70182019-11-08 11:44:00 +020031m4_define([SDL_REVISION], [3])
Rolf Badorekef2bf512019-08-20 11:17:15 +030032m4_define([SDL_AGE], [0])
33
34AC_INIT([shareddatalayer], [SDL_MAJOR.SDL_MINOR.SDL_MICRO], [], [], [https://gerrit.o-ran-sc.org/r/admin/repos/ric-plt/sdl])
35AC_CONFIG_HEADERS([include/config.h])
36AC_CONFIG_AUX_DIR([build-aux])
37AC_CONFIG_FILES([Makefile])
38AC_CONFIG_FILES([Doxyfile])
39AC_CONFIG_FILES([run-tests.sh], [chmod +x run-tests.sh])
40AC_CONFIG_MACRO_DIR([m4])
41AM_INIT_AUTOMAKE([subdir-objects foreign 1.13 tar-pax -Wall -Werror])
42AM_PROG_AR
43LT_INIT
44AM_SILENT_RULES([yes])
45AC_PROG_CXX
46AC_LANG([C++])
47AC_PROG_MKDIR_P
48AM_PROG_LIBTOOL
49AC_CONFIG_MACRO_DIR([m4])
50AX_CXX_COMPILE_STDCXX([11], [noext], [mandatory])
Rolf Badorekef2bf512019-08-20 11:17:15 +030051AX_BOOST_BASE([1.53], [], [AC_MSG_ERROR(Unable to detect suitable boost library)])
52AX_BOOST_PROGRAM_OPTIONS
53AX_BOOST_SYSTEM
54AX_BOOST_FILESYSTEM
55PKG_PROG_PKG_CONFIG
56
Rolf Badorek65fb3b12019-10-02 17:22:45 +030057AC_DEFINE([HAVE_SYSTEMLOGGER], [0], [Have systemlogger])
58AM_CONDITIONAL([SYSTEMLOGGER], [test "xyes" = "xno"])
Rolf Badorekef2bf512019-08-20 11:17:15 +030059
60SDL_CONF_DIR=$sysconfdir/$PACKAGE_NAME.d
61AC_SUBST(SDL_CONF_DIR)
62
63AC_DEFINE(HAVE_REDIS, [1], [Have redis])
64AM_CONDITIONAL([REDIS], [test xtrue])
Rolf Badorek8324d022019-09-17 16:47:20 +030065
Rolf Badorekef2bf512019-08-20 11:17:15 +030066PKG_CHECK_MODULES([HIREDIS], [hiredis])
67AC_DEFINE(HAVE_HIREDIS, [1], [Have hiredis])
68AM_CONDITIONAL([HIREDIS], [test xtrue])
69# Redis cluster configuration is not supported in RIC currently (implementation is not compatible with current hiredis-vip version)
70AC_DEFINE(HAVE_HIREDIS_VIP, [0], [Have hiredis-vip])
71AM_CONDITIONAL([HIREDIS_VIP], [test "xyes" = "xno"])
72
73DX_DOT_FEATURE(ON)
74DX_INIT_DOXYGEN([shareddatalayer], [Doxyfile], [doxygen-doc])
75SDL_LT_VERSION=m4_format("%d:%d:%d", SDL_CURRENT, SDL_REVISION, SDL_AGE)
76AC_SUBST(SDL_LT_VERSION)
77AC_OUTPUT