Replacement of the hard coded version of the library with
a dynamic version computed from pkg-config.
Change-Id: Ic89537ed70c537cb13bfe12dc37f27817594f353
Signed-off-by: José Bollo <jose.bollo@open.eurogiciel.org>
log.c \
log-common.c
-libdlog_la_LIBADD = -ltzplatform-config-1.0 -lsystemd-journal
+libdlog_la_LIBADD = $(TZPLATFORM_CONFIG_LIBS) -lsystemd-journal
bin_PROGRAMS= dlogctrl
logctrl.c \
log-common.c
-dlogctrl_LDADD = -ltzplatform-config-1.0
+dlogctrl_LDADD = $(TZPLATFORM_CONFIG_LIBS)
dlogctrl_CFLAGS = $(AM_CFLAGS)
AC_CONFIG_SRCDIR([log.c])
AC_CONFIG_HEADERS([config.h])
+PKG_CHECK_MODULES([TZPLATFORM_CONFIG], [libtzplatform-config])
+
# Checks for programs.
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_PROG_CC