Bump version and fix build system
[gmpc-magnatune.git] / configure.ac
blobb8b059f2a6ecfc08712d646b143226a98c9672db
1 m4_define([plugin_major_version], [0])
2 m4_define([plugin_minor_version], [15])
3 m4_define([plugin_micro_version], [98])
4 m4_define([plugin_version],[plugin_major_version.plugin_minor_version.plugin_micro_version])
6 AC_INIT(src)
7 AM_CONFIG_HEADER([config.h])
8 AM_INIT_AUTOMAKE([gmpc-magnatune], [plugin_version],qball@sarine.nl)
10 AC_DEFINE(PLUGIN_MAJOR_VERSION, plugin_major_version, ["Major version of plugin"])
11 AC_DEFINE(PLUGIN_MINOR_VERSION, plugin_minor_version, ["Minor version of plugin"])
12 AC_DEFINE(PLUGIN_MICRO_VERSION, plugin_micro_version, ["Micro version of plugin"])
15 AC_PROG_CC
16 AM_DISABLE_STATIC
17 AC_LIBTOOL_DLOPEN
18 AC_PROG_LIBTOOL
20 PKG_CHECK_MODULES([gmpcmagnatune],
22         glib-2.0 >= 2.4
23         gobject-2.0 >= 2.4
24         gtk+-2.0 >= 2.4
25         gmodule-2.0
26         libmpd >= 0.15.98
27         gmpc >= 0.15.98
28         libglade-2.0
30 AC_SUBST(gmpcmagnatune_LIBS)
31 AC_SUBST(gmpcmagnatune_CFLAGS)
33 PKG_CHECK_MODULES([gmpcmagnatune2],[ axl ],[ axl=yes],[ axl=no])
35 AM_CONDITIONAL(WITHOUTH_AXL, test $axl = no)
37 AC_SUBST(gmpcmagnatune2_LIBS)
38 AC_SUBST(gmpcmagnatune2_CFLAGS)
41 AC_OUTPUT([Makefile src/Makefile data/Makefile ])