1 AC_INIT([libmpd], [0.19.97], [qball@sarine.nl])
2 AM_CONFIG_HEADER(config.h)
3 m4_define([package_major_version], [0])
4 m4_define([package_minor_version], [19])
5 m4_define([package_micro_version], [97])
6 m4_define([package_version], [package_major_version.package_minor_version.package_micro_version])
8 AC_CONFIG_MACRO_DIR([m4])
11 # This makes sure the right substitution is done
12 [LIBMPD_MAJOR_VERSION]=package_major_version
13 [LIBMPD_MINOR_VERSION]=package_minor_version
14 [LIBMPD_MICRO_VERSION]=package_micro_version
15 AC_SUBST([LIBMPD_MAJOR_VERSION])
16 AC_SUBST([LIBMPD_MINOR_VERSION])
17 AC_SUBST([LIBMPD_MICRO_VERSION])
19 # C is updated on abi break
20 # R is on changed source code.
21 # A is age (added interfaces)
23 LIBMPD_LIBTOOL_VERSION=2:0:1
24 AC_SUBST(LIBMPD_LIBTOOL_VERSION)
30 AC_REPLACE_FUNCS(strndup)
35 *-*-mingw32* | *-*-windows)
36 EXTRA_CFLAGS="-mno-cygwin -mwindows -mms-bitfields -fno-strict-aliasing -DMPD_NO_GAI"
37 EXTRA_LDFLAGS="-export-all-symbols -mwindows -no-undefined -lws2_32 -mms-bitfields" ;;
39 EXTRA_CFLAGS="-fno-strict-aliasing"
40 EXTRA_LDFLAGS="-export-all-symbols -mms-bitfields";;
42 AC_SUBST(EXTRA_CFLAGS)
43 AC_SUBST(EXTRA_LDFLAGS)
45 PKG_CHECK_MODULES([glib], glib-2.0 >= 2.16)
49 # Checks for header files.
51 AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
58 example/testcase/Makefile