Fix fetching cover art and fetch art for different releases.
[gmpc-discogs.git] / configure.ac
blobbc4323cabc2f5827eefe2b0e25b6282e6bd39440
1 AC_INIT([gmpc-discogs], [0.20.95], [qball@sarine.nl])
2 m4_define([package_major_version], [0])
3 m4_define([package_minor_version], [20])
4 m4_define([package_micro_version], [95])
5 m4_define([package_version],[package_major_version.package_minor_version.package_micro_version])
7 AC_PREREQ(2.58)
8 # so in metapackage it builds standalone
9 AC_CONFIG_AUX_DIR([.])
10 AM_CONFIG_HEADER([config.h])
11 AM_INIT_AUTOMAKE
13 AC_DEFINE(PLUGIN_MAJOR_VERSION, package_major_version, ["Major version of plugin"])
14 AC_DEFINE(PLUGIN_MINOR_VERSION, package_minor_version, ["Minor version of plugin"])
15 AC_DEFINE(PLUGIN_MICRO_VERSION, package_micro_version, ["Micro version of plugin"])
17 #intltool, libtool. Check for CC compiler
18 AC_PROG_INTLTOOL([0.21])
20 # i18n support
21 dnl please keep them in alphabetical order
22 ALL_LINGUAS="bs de es fr hu nb nl pl ro ru sq sv zh_CN"
24 GETTEXT_PACKAGE=gmpc-discogs
25 AC_SUBST(GETTEXT_PACKAGE)
26 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",[GMPC_DISCOGS gettext package])
27 AM_GLIB_GNU_GETTEXT
30 if test "x${prefix}" = "xNONE"; then
31         PACKAGE_PREFIX="${ac_default_prefix}"
32 else
33         PACKAGE_PREFIX="${prefix}"
35 AC_MSG_RESULT($PACKAGE_PREFIX)
36 PACKAGE_LOCALE_DIR="${PACKAGE_PREFIX}/${DATADIRNAME}/locale"
37 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR,"$PACKAGE_LOCALE_DIR",[The package's locale path for gettext])
40 AC_PROG_CC
41 AM_DISABLE_STATIC
42 AC_LIBTOOL_DLOPEN
43 AC_PROG_LIBTOOL
45 PKG_CHECK_MODULES([gmpcdiscogs],[       glib-2.0 >= 2.16
46         gobject-2.0 >= 2.4
47         gtk+-2.0 >= 2.8
48         gmodule-2.0
49         libxml-2.0
50         gthread-2.0
51         libmpd >= 0.15.98
52         gmpc    >= 0.16.2
55 AC_SUBST(gmpcdiscogs_LIBS)
56 AC_SUBST(gmpcdiscogs_CFLAGS)
59 AC_OUTPUT([Makefile src/Makefile po/Makefile.in])