X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=configure.ac;h=cbe239691fea17330fda29575fac30e8d6be9dfd;hb=161239e0409832d65cb773a08d364b29945b18a7;hp=1f3cb33f8279720e6e35c5d53d85b583c1029aee;hpb=2699970af0f4b62631da85616cbaa2252ff45756;p=ust.git diff --git a/configure.ac b/configure.ac index 1f3cb33..cbe2396 100644 --- a/configure.ac +++ b/configure.ac @@ -1,7 +1,7 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -AC_INIT([ust], [0.12], [nils dot carlson at ericsson dot com]) +AC_INIT([ust], [0.13], [nils dot carlson at ericsson dot com]) AC_CONFIG_AUX_DIR([config]) AC_CANONICAL_TARGET AC_CANONICAL_HOST @@ -11,6 +11,14 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_CONFIG_SRCDIR([ustctl/ustctl.c]) AC_CONFIG_HEADERS([config.h include/ust/config.h]) AH_TEMPLATE([HAVE_EFFICIENT_UNALIGNED_ACCESS], [Use efficient unaligned access.]) +# Compute minor/major version numbers +major_version=`echo AC_PACKAGE_VERSION | sed 's/\..*//'` +minor_version=`echo AC_PACKAGE_VERSION | sed 's/.*\.//' | sed 's/^0//'` +AC_SUBST([MAJOR_VERSION], [$major_version]) +AC_SUBST([MINOR_VERSION], [$minor_version]) +AC_DEFINE_UNQUOTED([VERSION_MAJOR], $major_version, [UST major version number]) +AC_DEFINE_UNQUOTED([VERSION_MINOR], $minor_version, [UST minor version number]) + # Checks for programs. AC_PROG_CC @@ -165,6 +173,7 @@ AC_CONFIG_FILES([ tests/tracepoint/benchmark/Makefile tests/register_test/Makefile tests/libustctl_function_tests/Makefile + tests/exit-fast/Makefile libustinstr-malloc/Makefile libustfork/Makefile libustconsumer/Makefile @@ -173,5 +182,7 @@ AC_CONFIG_FILES([ libustcomm/Makefile libustctl/Makefile snprintf/Makefile + ust.pc + include/ust/version.h ]) AC_OUTPUT