# Prepare libtool
LT_INIT([disable-static])
+#----------------------------------------
+# Get the version to apply to the parser shared library
+AC_SUBST(
+ [KCONFIGPARSER_LIB_VERSION],
+ [m4_esyscmd_s([./scripts/version.sh --plain])])
+
#----------------------------------------
# Finalise
AC_CONFIG_FILES([
AS_IF([test "$enable_qconf" = "yes"],
[AC_MSG_NOTICE([ - qconf: yes])],
[AC_MSG_NOTICE([ - qconf: no])])
+AS_IF([test "$enable_shared" = "yes"],
+ [AC_MSG_NOTICE([ - parser shared library: yes, $KCONFIGPARSER_LIB_VERSION])],
+ [AC_MSG_NOTICE([ - parser shared library: no])])
+AS_IF([test "$enable_static" = "yes"],
+ [AC_MSG_NOTICE([ - parser static library: yes])],
+ [AC_MSG_NOTICE([ - parser static library: no])])
hconf.gperf lconf.l \
confdata.c menu.c symbol.c util.c \
expr.c expr.h lkc.h lkc_proto.h
+libkconfigparser_la_LDFLAGS = -release $(KCONFIGPARSER_LIB_VERSION)
include_HEADERS = expr.h lkc.h lkc_proto.h