[depends] native_ds_store 1.1.2
[bitcoinplatinum.git] / src / univalue / configure.ac
blob93d3ba945d143ba9c00cf29e804ce63260d61d8d
1 m4_define([libunivalue_major_version], [1])
2 m4_define([libunivalue_minor_version], [1])
3 m4_define([libunivalue_micro_version], [2])
4 m4_define([libunivalue_interface_age], [2])
5 # If you need a modifier for the version number. 
6 # Normally empty, but can be used to make "fixup" releases.
7 m4_define([libunivalue_extraversion], [])
9 dnl libtool versioning from libunivalue
10 m4_define([libunivalue_current], [m4_eval(100 * libunivalue_minor_version + libunivalue_micro_version - libunivalue_interface_age)])
11 m4_define([libunivalue_binary_age], [m4_eval(100 * libunivalue_minor_version + libunivalue_micro_version)])
12 m4_define([libunivalue_revision], [libunivalue_interface_age])
13 m4_define([libunivalue_age], [m4_eval(libunivalue_binary_age - libunivalue_interface_age)])
14 m4_define([libunivalue_version], [libunivalue_major_version().libunivalue_minor_version().libunivalue_micro_version()libunivalue_extraversion()])
17 AC_INIT([univalue], [1.0.2],
18         [http://github.com/jgarzik/univalue/])
20 dnl make the compilation flags quiet unless V=1 is used
21 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
23 AC_PREREQ(2.60)
24 AC_CONFIG_SRCDIR([lib/univalue.cpp])
25 AC_CONFIG_AUX_DIR([build-aux])
26 AC_CONFIG_MACRO_DIR([build-aux/m4])
27 AC_CONFIG_HEADERS([univalue-config.h])
28 AM_INIT_AUTOMAKE([subdir-objects foreign])
30 LIBUNIVALUE_MAJOR_VERSION=libunivalue_major_version
31 LIBUNIVALUE_MINOR_VERSION=libunivalue_minor_version
32 LIBUNIVALUE_MICRO_VERSION=libunivalue_micro_version
33 LIBUNIVALUE_INTERFACE_AGE=libunivalue_interface_age
35 # ABI version
36 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
37 LIBUNIVALUE_CURRENT=libunivalue_current
38 LIBUNIVALUE_REVISION=libunivalue_revision
39 LIBUNIVALUE_AGE=libunivalue_age
41 AC_SUBST(LIBUNIVALUE_CURRENT)
42 AC_SUBST(LIBUNIVALUE_REVISION)
43 AC_SUBST(LIBUNIVALUE_AGE)
45 LT_INIT
46 LT_LANG([C++])
48 case $host in
49   *mingw*)
50     LIBTOOL_APP_LDFLAGS="$LIBTOOL_APP_LDFLAGS -all-static"
51   ;;
52 esac
54 BUILD_EXEEXT=
55 case $build in
56   *mingw*)
57     BUILD_EXEEXT=".exe"
58   ;;
59 esac
61 AC_CONFIG_FILES([
62     Makefile
63     pc/libunivalue.pc
64     pc/libunivalue-uninstalled.pc])
66 AC_SUBST(LIBTOOL_APP_LDFLAGS)
67 AC_SUBST(BUILD_EXEEXT)
68 AC_OUTPUT