Modify version string to post-release version 0.17.97-git
[libmpd.git] / configure.ac
blob52c708507c287c2498f37afd2bdd133da14dcdb6
1 AC_INIT([libmpd], [0.17.97-git], [qball@sarine.nl])
2 AM_CONFIG_HEADER(config.h)
3 m4_define([package_major_version], [0])
4 m4_define([package_minor_version], [17])
5 m4_define([package_micro_version], [97-git])
6 m4_define([package_version], [package_major_version.package_minor_version.package_micro_version])
7 AM_INIT_AUTOMAKE
9 #  C:R:A
10 #  C is updated on abi break 
11 #  R is on changed source code.
12 #  A is age (added interfaces)
14 LIBMPD_LIBTOOL_VERSION=1:0:0
15 AC_SUBST(LIBMPD_LIBTOOL_VERSION)
17 AC_PROG_CC
18 AC_LIBTOOL_WIN32_DLL
19 AM_PROG_LIBTOOL
21 AC_REPLACE_FUNCS(strndup)
23 EXTRA_CFLAGS=
24 EXTRA_LDFLAGS=
25 case $host in
26   *-*-mingw32* | *-*-windows)
27     EXTRA_CFLAGS="-mno-cygwin -mwindows -mms-bitfields -fno-strict-aliasing -DMPD_NO_GAI"
28     EXTRA_LDFLAGS="-export-all-symbols -mwindows -no-undefined -lws2_32 -mms-bitfields" ;;
29   *-*-cygwin*)
30     EXTRA_CFLAGS="-fno-strict-aliasing"
31     EXTRA_LDFLAGS="-export-all-symbols -mms-bitfields";;
32 esac
33 AC_SUBST(EXTRA_CFLAGS)
34 AC_SUBST(EXTRA_LDFLAGS)   
36 PKG_CHECK_MODULES([glib], glib-2.0 >= 2.16)
37 AC_SUBST(glib_LIBS)
38 AC_SUBST(glib_CFLAGS)
40 # Checks for header files.
41 AC_HEADER_STDC
42 AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
44 AC_OUTPUT([
45 Makefile
46 src/Makefile
47 doc/Makefile
48 example/Makefile
49 example/testcase/Makefile
50 libmpd.pc
51 src/libmpd-version.h
52 doc/libmpd.doxy